com.aliyun.sdk.service.ecs20140526.models.DescribeCloudAssistantSettingsResponseBody 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 DescribeCloudAssistantSettingsResponseBody} extends {@link TeaModel}
*
* DescribeCloudAssistantSettingsResponseBody
*/
public class DescribeCloudAssistantSettingsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AgentUpgradeConfig")
private AgentUpgradeConfig agentUpgradeConfig;
@com.aliyun.core.annotation.NameInMap("OssDeliveryConfigs")
private OssDeliveryConfigs ossDeliveryConfigs;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SlsDeliveryConfigs")
private SlsDeliveryConfigs slsDeliveryConfigs;
private DescribeCloudAssistantSettingsResponseBody(Builder builder) {
this.agentUpgradeConfig = builder.agentUpgradeConfig;
this.ossDeliveryConfigs = builder.ossDeliveryConfigs;
this.requestId = builder.requestId;
this.slsDeliveryConfigs = builder.slsDeliveryConfigs;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCloudAssistantSettingsResponseBody create() {
return builder().build();
}
/**
* @return agentUpgradeConfig
*/
public AgentUpgradeConfig getAgentUpgradeConfig() {
return this.agentUpgradeConfig;
}
/**
* @return ossDeliveryConfigs
*/
public OssDeliveryConfigs getOssDeliveryConfigs() {
return this.ossDeliveryConfigs;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return slsDeliveryConfigs
*/
public SlsDeliveryConfigs getSlsDeliveryConfigs() {
return this.slsDeliveryConfigs;
}
public static final class Builder {
private AgentUpgradeConfig agentUpgradeConfig;
private OssDeliveryConfigs ossDeliveryConfigs;
private String requestId;
private SlsDeliveryConfigs slsDeliveryConfigs;
/**
* The configurations for upgrading Cloud Assistant Agent.
*/
public Builder agentUpgradeConfig(AgentUpgradeConfig agentUpgradeConfig) {
this.agentUpgradeConfig = agentUpgradeConfig;
return this;
}
/**
* The configurations for delivering items to Object Storage Service (OSS).
*/
public Builder ossDeliveryConfigs(OssDeliveryConfigs ossDeliveryConfigs) {
this.ossDeliveryConfigs = ossDeliveryConfigs;
return this;
}
/**
* The request ID.
*
* example:
* 473469C7-AA6F-4DC5-B3DB-A3DC0DE3****
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The configurations for delivering items to Simple Log Service.
*/
public Builder slsDeliveryConfigs(SlsDeliveryConfigs slsDeliveryConfigs) {
this.slsDeliveryConfigs = slsDeliveryConfigs;
return this;
}
public DescribeCloudAssistantSettingsResponseBody build() {
return new DescribeCloudAssistantSettingsResponseBody(this);
}
}
/**
*
* {@link DescribeCloudAssistantSettingsResponseBody} extends {@link TeaModel}
*
* DescribeCloudAssistantSettingsResponseBody
*/
public static class AllowedUpgradeWindows extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllowedUpgradeWindow")
private java.util.List allowedUpgradeWindow;
private AllowedUpgradeWindows(Builder builder) {
this.allowedUpgradeWindow = builder.allowedUpgradeWindow;
}
public static Builder builder() {
return new Builder();
}
public static AllowedUpgradeWindows create() {
return builder().build();
}
/**
* @return allowedUpgradeWindow
*/
public java.util.List getAllowedUpgradeWindow() {
return this.allowedUpgradeWindow;
}
public static final class Builder {
private java.util.List allowedUpgradeWindow;
/**
* AllowedUpgradeWindow.
*/
public Builder allowedUpgradeWindow(java.util.List allowedUpgradeWindow) {
this.allowedUpgradeWindow = allowedUpgradeWindow;
return this;
}
public AllowedUpgradeWindows build() {
return new AllowedUpgradeWindows(this);
}
}
}
/**
*
* {@link DescribeCloudAssistantSettingsResponseBody} extends {@link TeaModel}
*
* DescribeCloudAssistantSettingsResponseBody
*/
public static class AgentUpgradeConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllowedUpgradeWindows")
private AllowedUpgradeWindows allowedUpgradeWindows;
@com.aliyun.core.annotation.NameInMap("Enabled")
private Boolean enabled;
@com.aliyun.core.annotation.NameInMap("TimeZone")
private String timeZone;
private AgentUpgradeConfig(Builder builder) {
this.allowedUpgradeWindows = builder.allowedUpgradeWindows;
this.enabled = builder.enabled;
this.timeZone = builder.timeZone;
}
public static Builder builder() {
return new Builder();
}
public static AgentUpgradeConfig create() {
return builder().build();
}
/**
* @return allowedUpgradeWindows
*/
public AllowedUpgradeWindows getAllowedUpgradeWindows() {
return this.allowedUpgradeWindows;
}
/**
* @return enabled
*/
public Boolean getEnabled() {
return this.enabled;
}
/**
* @return timeZone
*/
public String getTimeZone() {
return this.timeZone;
}
public static final class Builder {
private AllowedUpgradeWindows allowedUpgradeWindows;
private Boolean enabled;
private String timeZone;
/**
* The time windows during which Cloud Assistant Agent can be upgraded.
*/
public Builder allowedUpgradeWindows(AllowedUpgradeWindows allowedUpgradeWindows) {
this.allowedUpgradeWindows = allowedUpgradeWindows;
return this;
}
/**
* Indicates whether custom upgrade is enabled for Cloud Assistant Agent. If the value is false or empty, an upgrade attempt is performed for Cloud Assistant Agent every 30 minutes.
*
* example:
* true
*/
public Builder enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* The time zone of the time windows.
*
* example:
* Asia/Shanghai
*/
public Builder timeZone(String timeZone) {
this.timeZone = timeZone;
return this;
}
public AgentUpgradeConfig build() {
return new AgentUpgradeConfig(this);
}
}
}
/**
*
* {@link DescribeCloudAssistantSettingsResponseBody} extends {@link TeaModel}
*
* DescribeCloudAssistantSettingsResponseBody
*/
public static class OssDeliveryConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BucketName")
private String bucketName;
@com.aliyun.core.annotation.NameInMap("DeliveryType")
private String deliveryType;
@com.aliyun.core.annotation.NameInMap("Enabled")
private Boolean enabled;
@com.aliyun.core.annotation.NameInMap("EncryptionAlgorithm")
private String encryptionAlgorithm;
@com.aliyun.core.annotation.NameInMap("EncryptionKeyId")
private String encryptionKeyId;
@com.aliyun.core.annotation.NameInMap("EncryptionType")
private String encryptionType;
@com.aliyun.core.annotation.NameInMap("Prefix")
private String prefix;
private OssDeliveryConfig(Builder builder) {
this.bucketName = builder.bucketName;
this.deliveryType = builder.deliveryType;
this.enabled = builder.enabled;
this.encryptionAlgorithm = builder.encryptionAlgorithm;
this.encryptionKeyId = builder.encryptionKeyId;
this.encryptionType = builder.encryptionType;
this.prefix = builder.prefix;
}
public static Builder builder() {
return new Builder();
}
public static OssDeliveryConfig create() {
return builder().build();
}
/**
* @return bucketName
*/
public String getBucketName() {
return this.bucketName;
}
/**
* @return deliveryType
*/
public String getDeliveryType() {
return this.deliveryType;
}
/**
* @return enabled
*/
public Boolean getEnabled() {
return this.enabled;
}
/**
* @return encryptionAlgorithm
*/
public String getEncryptionAlgorithm() {
return this.encryptionAlgorithm;
}
/**
* @return encryptionKeyId
*/
public String getEncryptionKeyId() {
return this.encryptionKeyId;
}
/**
* @return encryptionType
*/
public String getEncryptionType() {
return this.encryptionType;
}
/**
* @return prefix
*/
public String getPrefix() {
return this.prefix;
}
public static final class Builder {
private String bucketName;
private String deliveryType;
private Boolean enabled;
private String encryptionAlgorithm;
private String encryptionKeyId;
private String encryptionType;
private String prefix;
/**
* The name of the OSS bucket.
*
* example:
* example-bucket
*/
public Builder bucketName(String bucketName) {
this.bucketName = bucketName;
return this;
}
/**
* The type of items to be delivered. Valid values:
*
* - SessionManager: session records.
* - Invocation: task execution records.
*
*
* example:
* SessionManager
*/
public Builder deliveryType(String deliveryType) {
this.deliveryType = deliveryType;
return this;
}
/**
* Indicates whether to deliver the specified items to OSS.
*
* example:
* false
*/
public Builder enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* The OSS encryption algorithm. Valid values:
*
* - AES256
* - SM4
*
*
* example:
* AES256
*/
public Builder encryptionAlgorithm(String encryptionAlgorithm) {
this.encryptionAlgorithm = encryptionAlgorithm;
return this;
}
/**
* The ID of the customer master key (CMK) when EncryptionType is set to KMS.
*
* example:
* a807****7a70e
*/
public Builder encryptionKeyId(String encryptionKeyId) {
this.encryptionKeyId = encryptionKeyId;
return this;
}
/**
* The OSS encryption method. Valid values:
*
* - Inherit: the encryption method used by the specified bucket.
* - OssManaged: server-side encryption by using OSS-managed keys (SSE-OSS).
* - KMS: server-side encryption with Key Management Service (SSE-KMS).
*
*
* example:
* Inherit
*/
public Builder encryptionType(String encryptionType) {
this.encryptionType = encryptionType;
return this;
}
/**
* The prefix of the OSS bucket directory.
*
* example:
* sessionmanager/audit
*/
public Builder prefix(String prefix) {
this.prefix = prefix;
return this;
}
public OssDeliveryConfig build() {
return new OssDeliveryConfig(this);
}
}
}
/**
*
* {@link DescribeCloudAssistantSettingsResponseBody} extends {@link TeaModel}
*
* DescribeCloudAssistantSettingsResponseBody
*/
public static class OssDeliveryConfigs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("OssDeliveryConfig")
private java.util.List ossDeliveryConfig;
private OssDeliveryConfigs(Builder builder) {
this.ossDeliveryConfig = builder.ossDeliveryConfig;
}
public static Builder builder() {
return new Builder();
}
public static OssDeliveryConfigs create() {
return builder().build();
}
/**
* @return ossDeliveryConfig
*/
public java.util.List getOssDeliveryConfig() {
return this.ossDeliveryConfig;
}
public static final class Builder {
private java.util.List ossDeliveryConfig;
/**
* OssDeliveryConfig.
*/
public Builder ossDeliveryConfig(java.util.List ossDeliveryConfig) {
this.ossDeliveryConfig = ossDeliveryConfig;
return this;
}
public OssDeliveryConfigs build() {
return new OssDeliveryConfigs(this);
}
}
}
/**
*
* {@link DescribeCloudAssistantSettingsResponseBody} extends {@link TeaModel}
*
* DescribeCloudAssistantSettingsResponseBody
*/
public static class SlsDeliveryConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DeliveryType")
private String deliveryType;
@com.aliyun.core.annotation.NameInMap("Enabled")
private Boolean enabled;
@com.aliyun.core.annotation.NameInMap("LogstoreName")
private String logstoreName;
@com.aliyun.core.annotation.NameInMap("ProjectName")
private String projectName;
private SlsDeliveryConfig(Builder builder) {
this.deliveryType = builder.deliveryType;
this.enabled = builder.enabled;
this.logstoreName = builder.logstoreName;
this.projectName = builder.projectName;
}
public static Builder builder() {
return new Builder();
}
public static SlsDeliveryConfig create() {
return builder().build();
}
/**
* @return deliveryType
*/
public String getDeliveryType() {
return this.deliveryType;
}
/**
* @return enabled
*/
public Boolean getEnabled() {
return this.enabled;
}
/**
* @return logstoreName
*/
public String getLogstoreName() {
return this.logstoreName;
}
/**
* @return projectName
*/
public String getProjectName() {
return this.projectName;
}
public static final class Builder {
private String deliveryType;
private Boolean enabled;
private String logstoreName;
private String projectName;
/**
* The type of items to be delivered. Valid values:
*
* - SessionManager: session records.
* - Invocation: task execution records.
*
*
* example:
* SessionManager
*/
public Builder deliveryType(String deliveryType) {
this.deliveryType = deliveryType;
return this;
}
/**
* Indicates whether to deliver the specified items to Simple Log Service.
*
* example:
* false
*/
public Builder enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* The name of the Logstore.
*
* example:
* example-logstore
*/
public Builder logstoreName(String logstoreName) {
this.logstoreName = logstoreName;
return this;
}
/**
* The name of the Simple Log Service project.
*
* example:
* example-project
*/
public Builder projectName(String projectName) {
this.projectName = projectName;
return this;
}
public SlsDeliveryConfig build() {
return new SlsDeliveryConfig(this);
}
}
}
/**
*
* {@link DescribeCloudAssistantSettingsResponseBody} extends {@link TeaModel}
*
* DescribeCloudAssistantSettingsResponseBody
*/
public static class SlsDeliveryConfigs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SlsDeliveryConfig")
private java.util.List slsDeliveryConfig;
private SlsDeliveryConfigs(Builder builder) {
this.slsDeliveryConfig = builder.slsDeliveryConfig;
}
public static Builder builder() {
return new Builder();
}
public static SlsDeliveryConfigs create() {
return builder().build();
}
/**
* @return slsDeliveryConfig
*/
public java.util.List getSlsDeliveryConfig() {
return this.slsDeliveryConfig;
}
public static final class Builder {
private java.util.List slsDeliveryConfig;
/**
* SlsDeliveryConfig.
*/
public Builder slsDeliveryConfig(java.util.List slsDeliveryConfig) {
this.slsDeliveryConfig = slsDeliveryConfig;
return this;
}
public SlsDeliveryConfigs build() {
return new SlsDeliveryConfigs(this);
}
}
}
}