com.aliyun.sdk.service.ecs20140526.models.DescribeCloudAssistantStatusResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-ecs20140526 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCloudAssistantStatusResponseBody} extends {@link TeaModel}
*
* DescribeCloudAssistantStatusResponseBody
*/
public class DescribeCloudAssistantStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceCloudAssistantStatusSet")
private InstanceCloudAssistantStatusSet instanceCloudAssistantStatusSet;
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Long pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Long pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private DescribeCloudAssistantStatusResponseBody(Builder builder) {
this.instanceCloudAssistantStatusSet = builder.instanceCloudAssistantStatusSet;
this.nextToken = builder.nextToken;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCloudAssistantStatusResponseBody create() {
return builder().build();
}
/**
* @return instanceCloudAssistantStatusSet
*/
public InstanceCloudAssistantStatusSet getInstanceCloudAssistantStatusSet() {
return this.instanceCloudAssistantStatusSet;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return pageNumber
*/
public Long getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Long getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Long getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private InstanceCloudAssistantStatusSet instanceCloudAssistantStatusSet;
private String nextToken;
private Long pageNumber;
private Long pageSize;
private String requestId;
private Long totalCount;
/**
* Details about the installation status of Cloud Assistant on the instances.
*/
public Builder instanceCloudAssistantStatusSet(InstanceCloudAssistantStatusSet instanceCloudAssistantStatusSet) {
this.instanceCloudAssistantStatusSet = instanceCloudAssistantStatusSet;
return this;
}
/**
* A pagination token. It can be used in the next request to retrieve a new page of results.
*
* example:
* AAAAAdDWBF2
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* The page number.
*
* example:
* 1
*/
public Builder pageNumber(Long pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries per page.
*
* example:
* 1
*/
public Builder pageSize(Long pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* The request ID.
*
* example:
* 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The total number of instances.
*
* example:
* 1
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeCloudAssistantStatusResponseBody build() {
return new DescribeCloudAssistantStatusResponseBody(this);
}
}
/**
*
* {@link DescribeCloudAssistantStatusResponseBody} extends {@link TeaModel}
*
* DescribeCloudAssistantStatusResponseBody
*/
public static class InstanceCloudAssistantStatus extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ActiveTaskCount")
private Long activeTaskCount;
@com.aliyun.core.annotation.NameInMap("CloudAssistantStatus")
private String cloudAssistantStatus;
@com.aliyun.core.annotation.NameInMap("CloudAssistantVersion")
private String cloudAssistantVersion;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InvocationCount")
private Long invocationCount;
@com.aliyun.core.annotation.NameInMap("LastHeartbeatTime")
private String lastHeartbeatTime;
@com.aliyun.core.annotation.NameInMap("LastInvokedTime")
private String lastInvokedTime;
@com.aliyun.core.annotation.NameInMap("OSType")
private String OSType;
@com.aliyun.core.annotation.NameInMap("SupportSessionManager")
private Boolean supportSessionManager;
private InstanceCloudAssistantStatus(Builder builder) {
this.activeTaskCount = builder.activeTaskCount;
this.cloudAssistantStatus = builder.cloudAssistantStatus;
this.cloudAssistantVersion = builder.cloudAssistantVersion;
this.instanceId = builder.instanceId;
this.invocationCount = builder.invocationCount;
this.lastHeartbeatTime = builder.lastHeartbeatTime;
this.lastInvokedTime = builder.lastInvokedTime;
this.OSType = builder.OSType;
this.supportSessionManager = builder.supportSessionManager;
}
public static Builder builder() {
return new Builder();
}
public static InstanceCloudAssistantStatus create() {
return builder().build();
}
/**
* @return activeTaskCount
*/
public Long getActiveTaskCount() {
return this.activeTaskCount;
}
/**
* @return cloudAssistantStatus
*/
public String getCloudAssistantStatus() {
return this.cloudAssistantStatus;
}
/**
* @return cloudAssistantVersion
*/
public String getCloudAssistantVersion() {
return this.cloudAssistantVersion;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return invocationCount
*/
public Long getInvocationCount() {
return this.invocationCount;
}
/**
* @return lastHeartbeatTime
*/
public String getLastHeartbeatTime() {
return this.lastHeartbeatTime;
}
/**
* @return lastInvokedTime
*/
public String getLastInvokedTime() {
return this.lastInvokedTime;
}
/**
* @return OSType
*/
public String getOSType() {
return this.OSType;
}
/**
* @return supportSessionManager
*/
public Boolean getSupportSessionManager() {
return this.supportSessionManager;
}
public static final class Builder {
private Long activeTaskCount;
private String cloudAssistantStatus;
private String cloudAssistantVersion;
private String instanceId;
private Long invocationCount;
private String lastHeartbeatTime;
private String lastInvokedTime;
private String OSType;
private Boolean supportSessionManager;
/**
* The number of tasks that Cloud Assistant was running on the instance.
*
* example:
* 0
*/
public Builder activeTaskCount(Long activeTaskCount) {
this.activeTaskCount = activeTaskCount;
return this;
}
/**
* Indicates whether Cloud Assistant is running on the instance. Valid values:
*
* - true: Heartbeats are detected in the last 2 minutes.
* - false: No heartbeats are detected in the last 2 minutes.
*
*
* example:
* true
*/
public Builder cloudAssistantStatus(String cloudAssistantStatus) {
this.cloudAssistantStatus = cloudAssistantStatus;
return this;
}
/**
* The version number of Cloud Assistant Agent. This parameter is empty if Cloud Assistant Agent is not installed or is not running on the instance.
*
* example:
* 2.2.0.106
*/
public Builder cloudAssistantVersion(String cloudAssistantVersion) {
this.cloudAssistantVersion = cloudAssistantVersion;
return this;
}
/**
* The ID of the instance.
*
* example:
* i-bp1iudwa5b1tqa****
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* The number of tasks that Cloud Assistant completed on the instance.
*
* example:
* 2
*/
public Builder invocationCount(Long invocationCount) {
this.invocationCount = invocationCount;
return this;
}
/**
* The last heartbeat time of Cloud Assistant. The value is updated every minute on average. The interval can be 55, 60, or 65 seconds.
*
* example:
* 2021-03-15T09:00:00Z
*/
public Builder lastHeartbeatTime(String lastHeartbeatTime) {
this.lastHeartbeatTime = lastHeartbeatTime;
return this;
}
/**
* The time when commands were last run.
*
* example:
* 2021-03-15T08:00:00Z
*/
public Builder lastInvokedTime(String lastInvokedTime) {
this.lastInvokedTime = lastInvokedTime;
return this;
}
/**
* The operating system type of the instance. Valid values:
*
* - Windows
* - Linux
* - FreeBSD
*
*
* example:
* Linux
*/
public Builder OSType(String OSType) {
this.OSType = OSType;
return this;
}
/**
* Indicates whether Cloud Assistant supports Session Manager on the instance. If Session Manager is not supported, the version of Cloud Assistant Agent is outdated. Update Cloud Assistant Agent to the latest version.
* To support Session Manager, the version of Cloud Assistant Agent cannot be earlier than the following versions:
*
* - Linux: 2.2.3.189
* - Windows: 2.1.3.189
*
*
* example:
* true
*/
public Builder supportSessionManager(Boolean supportSessionManager) {
this.supportSessionManager = supportSessionManager;
return this;
}
public InstanceCloudAssistantStatus build() {
return new InstanceCloudAssistantStatus(this);
}
}
}
/**
*
* {@link DescribeCloudAssistantStatusResponseBody} extends {@link TeaModel}
*
* DescribeCloudAssistantStatusResponseBody
*/
public static class InstanceCloudAssistantStatusSet extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceCloudAssistantStatus")
private java.util.List instanceCloudAssistantStatus;
private InstanceCloudAssistantStatusSet(Builder builder) {
this.instanceCloudAssistantStatus = builder.instanceCloudAssistantStatus;
}
public static Builder builder() {
return new Builder();
}
public static InstanceCloudAssistantStatusSet create() {
return builder().build();
}
/**
* @return instanceCloudAssistantStatus
*/
public java.util.List getInstanceCloudAssistantStatus() {
return this.instanceCloudAssistantStatus;
}
public static final class Builder {
private java.util.List instanceCloudAssistantStatus;
/**
* InstanceCloudAssistantStatus.
*/
public Builder instanceCloudAssistantStatus(java.util.List instanceCloudAssistantStatus) {
this.instanceCloudAssistantStatus = instanceCloudAssistantStatus;
return this;
}
public InstanceCloudAssistantStatusSet build() {
return new InstanceCloudAssistantStatusSet(this);
}
}
}
}