com.aliyun.sdk.service.emr20210320.models.GetDoctorJobResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-emr20210320 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.emr20210320.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link GetDoctorJobResponseBody} extends {@link TeaModel}
*
* GetDoctorJobResponseBody
*/
public class GetDoctorJobResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetDoctorJobResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetDoctorJobResponseBody create() {
return builder().build();
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
/**
* The information about the job.
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* The request ID.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetDoctorJobResponseBody build() {
return new GetDoctorJobResponseBody(this);
}
}
public static class MemSeconds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Unit")
private String unit;
@com.aliyun.core.annotation.NameInMap("Value")
private Long value;
private MemSeconds(Builder builder) {
this.description = builder.description;
this.name = builder.name;
this.unit = builder.unit;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static MemSeconds create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return unit
*/
public String getUnit() {
return this.unit;
}
/**
* @return value
*/
public Long getValue() {
return this.value;
}
public static final class Builder {
private String description;
private String name;
private String unit;
private Long value;
/**
* The description of the metric.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* The name of the metric.
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* The unit of the metric.
*/
public Builder unit(String unit) {
this.unit = unit;
return this;
}
/**
* The value of the metric.
*/
public Builder value(Long value) {
this.value = value;
return this;
}
public MemSeconds build() {
return new MemSeconds(this);
}
}
}
public static class VcoreSeconds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Unit")
private String unit;
@com.aliyun.core.annotation.NameInMap("Value")
private Long value;
private VcoreSeconds(Builder builder) {
this.description = builder.description;
this.name = builder.name;
this.unit = builder.unit;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static VcoreSeconds create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return unit
*/
public String getUnit() {
return this.unit;
}
/**
* @return value
*/
public Long getValue() {
return this.value;
}
public static final class Builder {
private String description;
private String name;
private String unit;
private Long value;
/**
* The description of the metric.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* The name of the metric.
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* The unit of the metric.
*/
public Builder unit(String unit) {
this.unit = unit;
return this;
}
/**
* The value of the metric.
*/
public Builder value(Long value) {
this.value = value;
return this;
}
public VcoreSeconds build() {
return new VcoreSeconds(this);
}
}
}
public static class Metrics extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MemSeconds")
private MemSeconds memSeconds;
@com.aliyun.core.annotation.NameInMap("VcoreSeconds")
private VcoreSeconds vcoreSeconds;
private Metrics(Builder builder) {
this.memSeconds = builder.memSeconds;
this.vcoreSeconds = builder.vcoreSeconds;
}
public static Builder builder() {
return new Builder();
}
public static Metrics create() {
return builder().build();
}
/**
* @return memSeconds
*/
public MemSeconds getMemSeconds() {
return this.memSeconds;
}
/**
* @return vcoreSeconds
*/
public VcoreSeconds getVcoreSeconds() {
return this.vcoreSeconds;
}
public static final class Builder {
private MemSeconds memSeconds;
private VcoreSeconds vcoreSeconds;
/**
* The amount of memory consumed.
*/
public Builder memSeconds(MemSeconds memSeconds) {
this.memSeconds = memSeconds;
return this;
}
/**
* The CPU usage.
*/
public Builder vcoreSeconds(VcoreSeconds vcoreSeconds) {
this.vcoreSeconds = vcoreSeconds;
return this;
}
public Metrics build() {
return new Metrics(this);
}
}
}
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("ElapsedTime")
private Long elapsedTime;
@com.aliyun.core.annotation.NameInMap("FinalStatus")
private String finalStatus;
@com.aliyun.core.annotation.NameInMap("FinishTime")
private Long finishTime;
@com.aliyun.core.annotation.NameInMap("LaunchTime")
private Long launchTime;
@com.aliyun.core.annotation.NameInMap("Metrics")
private Metrics metrics;
@com.aliyun.core.annotation.NameInMap("Queue")
private String queue;
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.NameInMap("State")
private String state;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("User")
private String user;
private Data(Builder builder) {
this.appId = builder.appId;
this.appName = builder.appName;
this.elapsedTime = builder.elapsedTime;
this.finalStatus = builder.finalStatus;
this.finishTime = builder.finishTime;
this.launchTime = builder.launchTime;
this.metrics = builder.metrics;
this.queue = builder.queue;
this.startTime = builder.startTime;
this.state = builder.state;
this.type = builder.type;
this.user = builder.user;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return elapsedTime
*/
public Long getElapsedTime() {
return this.elapsedTime;
}
/**
* @return finalStatus
*/
public String getFinalStatus() {
return this.finalStatus;
}
/**
* @return finishTime
*/
public Long getFinishTime() {
return this.finishTime;
}
/**
* @return launchTime
*/
public Long getLaunchTime() {
return this.launchTime;
}
/**
* @return metrics
*/
public Metrics getMetrics() {
return this.metrics;
}
/**
* @return queue
*/
public String getQueue() {
return this.queue;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return state
*/
public String getState() {
return this.state;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return user
*/
public String getUser() {
return this.user;
}
public static final class Builder {
private String appId;
private String appName;
private Long elapsedTime;
private String finalStatus;
private Long finishTime;
private Long launchTime;
private Metrics metrics;
private String queue;
private Long startTime;
private String state;
private String type;
private String user;
/**
* The ID of the job that was submitted to YARN.
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* The name of the job.
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* The total running time of the job. Unit: milliseconds.
*/
public Builder elapsedTime(Long elapsedTime) {
this.elapsedTime = elapsedTime;
return this;
}
/**
* The final state of the job. Valid values:
*
*
* * SUCCEEDED
* * FAILED
* * KILLED
* * ENDED
* * UNDEFINED
*/
public Builder finalStatus(String finalStatus) {
this.finalStatus = finalStatus;
return this;
}
/**
* The time when the job ended. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. Unit: milliseconds.
*/
public Builder finishTime(Long finishTime) {
this.finishTime = finishTime;
return this;
}
/**
* The time when the job was started. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. Unit: milliseconds.
*/
public Builder launchTime(Long launchTime) {
this.launchTime = launchTime;
return this;
}
/**
* The data about metrics.
*/
public Builder metrics(Metrics metrics) {
this.metrics = metrics;
return this;
}
/**
* The YARN queue to which the job was submitted.
*/
public Builder queue(String queue) {
this.queue = queue;
return this;
}
/**
* The time when the job was submitted. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. Unit: milliseconds.
*/
public Builder startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* The running state of the job. Valid values:
*
*
* * FINISHED
* * FAILED
* * KILLED
*/
public Builder state(String state) {
this.state = state;
return this;
}
/**
* The type of the compute engine.
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* The username that was used to submit the job.
*/
public Builder user(String user) {
this.user = user;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}