This repository has been archived by the owner on Oct 11, 2023. It is now read-only.
/
TaskContainerExecutionInformation.java
99 lines (87 loc) · 2.91 KB
/
TaskContainerExecutionInformation.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.batch.protocol.models;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Contains information about the container which a task is executing.
*/
public class TaskContainerExecutionInformation {
/**
* The ID of the container.
*/
@JsonProperty(value = "containerId")
private String containerId;
/**
* The state of the container.
* This is the state of the container according to the Docker service. It
* is equivalent to the status field returned by "docker inspect".
*/
@JsonProperty(value = "state")
private String state;
/**
* Detailed error information about the container.
* This is the detailed error string from the Docker service, if available.
* It is equivalent to the error field returned by "docker inspect".
*/
@JsonProperty(value = "error")
private String error;
/**
* Get the containerId value.
*
* @return the containerId value
*/
public String containerId() {
return this.containerId;
}
/**
* Set the containerId value.
*
* @param containerId the containerId value to set
* @return the TaskContainerExecutionInformation object itself.
*/
public TaskContainerExecutionInformation withContainerId(String containerId) {
this.containerId = containerId;
return this;
}
/**
* Get this is the state of the container according to the Docker service. It is equivalent to the status field returned by "docker inspect".
*
* @return the state value
*/
public String state() {
return this.state;
}
/**
* Set this is the state of the container according to the Docker service. It is equivalent to the status field returned by "docker inspect".
*
* @param state the state value to set
* @return the TaskContainerExecutionInformation object itself.
*/
public TaskContainerExecutionInformation withState(String state) {
this.state = state;
return this;
}
/**
* Get this is the detailed error string from the Docker service, if available. It is equivalent to the error field returned by "docker inspect".
*
* @return the error value
*/
public String error() {
return this.error;
}
/**
* Set this is the detailed error string from the Docker service, if available. It is equivalent to the error field returned by "docker inspect".
*
* @param error the error value to set
* @return the TaskContainerExecutionInformation object itself.
*/
public TaskContainerExecutionInformation withError(String error) {
this.error = error;
return this;
}
}