index
int64
repo_id
string
file_path
string
content
string
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ExecuteChangeSetRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ExecuteChangeSetRequest} extends {@link RequestModel} * * <p>ExecuteChangeSetRequest</p> */ public class ExecuteChangeSetRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ChangeSetId") @com.aliyun.core.annotation.Validation(required = true) private String changeSetId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private ExecuteChangeSetRequest(Builder builder) { super(builder); this.changeSetId = builder.changeSetId; this.clientToken = builder.clientToken; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static ExecuteChangeSetRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return changeSetId */ public String getChangeSetId() { return this.changeSetId; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<ExecuteChangeSetRequest, Builder> { private String changeSetId; private String clientToken; private String regionId; private Builder() { super(); } private Builder(ExecuteChangeSetRequest request) { super(request); this.changeSetId = request.changeSetId; this.clientToken = request.clientToken; this.regionId = request.regionId; } /** * <p>The ID of the change set.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1f6521a4-05af-4975-afe9-bc4b45ad****</p> */ public Builder changeSetId(String changeSetId) { this.putQueryParameter("ChangeSetId", changeSetId); this.changeSetId = changeSetId; return this; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests.</p> * <p>The token can be up to 64 characters in length and can contain letters, digits, hyphens (-), and underscores (_).</p> * <p>For more information, see <a href="https://help.aliyun.com/document_detail/134212.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-42665544****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The region ID of the change set. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public ExecuteChangeSetRequest build() { return new ExecuteChangeSetRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ExecuteChangeSetResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ExecuteChangeSetResponse} extends {@link TeaModel} * * <p>ExecuteChangeSetResponse</p> */ public class ExecuteChangeSetResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private ExecuteChangeSetResponseBody body; private ExecuteChangeSetResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ExecuteChangeSetResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public ExecuteChangeSetResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ExecuteChangeSetResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ExecuteChangeSetResponseBody body); @Override ExecuteChangeSetResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ExecuteChangeSetResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ExecuteChangeSetResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ExecuteChangeSetResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(ExecuteChangeSetResponseBody body) { this.body = body; return this; } @Override public ExecuteChangeSetResponse build() { return new ExecuteChangeSetResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ExecuteChangeSetResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ExecuteChangeSetResponseBody} extends {@link TeaModel} * * <p>ExecuteChangeSetResponseBody</p> */ public class ExecuteChangeSetResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ExecuteChangeSetResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ExecuteChangeSetResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ExecuteChangeSetResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84B6E6F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ExecuteChangeSetResponseBody build() { return new ExecuteChangeSetResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GenerateTemplateByScratchRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GenerateTemplateByScratchRequest} extends {@link RequestModel} * * <p>GenerateTemplateByScratchRequest</p> */ public class GenerateTemplateByScratchRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ProvisionRegionId") private String provisionRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateScratchId") @com.aliyun.core.annotation.Validation(required = true) private String templateScratchId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateType") private String templateType; private GenerateTemplateByScratchRequest(Builder builder) { super(builder); this.provisionRegionId = builder.provisionRegionId; this.regionId = builder.regionId; this.templateScratchId = builder.templateScratchId; this.templateType = builder.templateType; } public static Builder builder() { return new Builder(); } public static GenerateTemplateByScratchRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return provisionRegionId */ public String getProvisionRegionId() { return this.provisionRegionId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return templateScratchId */ public String getTemplateScratchId() { return this.templateScratchId; } /** * @return templateType */ public String getTemplateType() { return this.templateType; } public static final class Builder extends Request.Builder<GenerateTemplateByScratchRequest, Builder> { private String provisionRegionId; private String regionId; private String templateScratchId; private String templateType; private Builder() { super(); } private Builder(GenerateTemplateByScratchRequest request) { super(request); this.provisionRegionId = request.provisionRegionId; this.regionId = request.regionId; this.templateScratchId = request.templateScratchId; this.templateType = request.templateType; } /** * <p>The region ID of the new node.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder provisionRegionId(String provisionRegionId) { this.putQueryParameter("ProvisionRegionId", provisionRegionId); this.provisionRegionId = provisionRegionId; return this; } /** * <p>The region ID of the resource scenario.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource scenario.</p> * <p>For more information about how to query the IDs of resource scenarios, see <a href="https://help.aliyun.com/document_detail/363050.html">ListTemplateScratches</a>.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ts-aa9c62feab844a6b****</p> */ public Builder templateScratchId(String templateScratchId) { this.putQueryParameter("TemplateScratchId", templateScratchId); this.templateScratchId = templateScratchId; return this; } /** * <p>The type of the template that Resource Orchestration Service (ROS) generates. ROS can generate templates of the ROS and Terraform types. Default value: ROS.</p> * * <strong>example:</strong> * <p>ROS</p> */ public Builder templateType(String templateType) { this.putQueryParameter("TemplateType", templateType); this.templateType = templateType; return this; } @Override public GenerateTemplateByScratchRequest build() { return new GenerateTemplateByScratchRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GenerateTemplateByScratchResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GenerateTemplateByScratchResponse} extends {@link TeaModel} * * <p>GenerateTemplateByScratchResponse</p> */ public class GenerateTemplateByScratchResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GenerateTemplateByScratchResponseBody body; private GenerateTemplateByScratchResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GenerateTemplateByScratchResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GenerateTemplateByScratchResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GenerateTemplateByScratchResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GenerateTemplateByScratchResponseBody body); @Override GenerateTemplateByScratchResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GenerateTemplateByScratchResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GenerateTemplateByScratchResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GenerateTemplateByScratchResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GenerateTemplateByScratchResponseBody body) { this.body = body; return this; } @Override public GenerateTemplateByScratchResponse build() { return new GenerateTemplateByScratchResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GenerateTemplateByScratchResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GenerateTemplateByScratchResponseBody} extends {@link TeaModel} * * <p>GenerateTemplateByScratchResponseBody</p> */ public class GenerateTemplateByScratchResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourcesToImport") private java.util.List<ResourcesToImport> resourcesToImport; @com.aliyun.core.annotation.NameInMap("TemplateBody") private String templateBody; private GenerateTemplateByScratchResponseBody(Builder builder) { this.requestId = builder.requestId; this.resourcesToImport = builder.resourcesToImport; this.templateBody = builder.templateBody; } public static Builder builder() { return new Builder(); } public static GenerateTemplateByScratchResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourcesToImport */ public java.util.List<ResourcesToImport> getResourcesToImport() { return this.resourcesToImport; } /** * @return templateBody */ public String getTemplateBody() { return this.templateBody; } public static final class Builder { private String requestId; private java.util.List<ResourcesToImport> resourcesToImport; private String templateBody; private Builder() { } private Builder(GenerateTemplateByScratchResponseBody model) { this.requestId = model.requestId; this.resourcesToImport = model.resourcesToImport; this.templateBody = model.templateBody; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>D22C1D13-D74E-558C-AF68-1B4C05FA6F1A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The resources that you want to import into a stack in the resource management scenario.</p> * <blockquote> * <p>This parameter is returned only for a resource management scenario.</p> * </blockquote> */ public Builder resourcesToImport(java.util.List<ResourcesToImport> resourcesToImport) { this.resourcesToImport = resourcesToImport; return this; } /** * <p>The template content of the resource scenario.</p> * * <strong>example:</strong> * <p>{&quot;ROSTemplateFormatVersion&quot;: &quot;2015-09-01&quot;, &quot;Resources&quot;: {&quot;ECSVPC_001&quot;: {&quot;DeletionPolicy&quot;: &quot;Retain&quot;, &quot;Type&quot;: &quot;ALIYUN::ECS::VPC&quot;, &quot;Properties&quot;: {&quot;CidrBlock&quot;: &quot;172.16.0.0/12&quot;, &quot;VpcName&quot;: &quot;MyTestVpc&quot;, &quot;EnableIpv6&quot;: false}}}}</p> */ public Builder templateBody(String templateBody) { this.templateBody = templateBody; return this; } public GenerateTemplateByScratchResponseBody build() { return new GenerateTemplateByScratchResponseBody(this); } } /** * * {@link GenerateTemplateByScratchResponseBody} extends {@link TeaModel} * * <p>GenerateTemplateByScratchResponseBody</p> */ public static class ResourcesToImport extends TeaModel { @com.aliyun.core.annotation.NameInMap("LogicalResourceId") private String logicalResourceId; @com.aliyun.core.annotation.NameInMap("ResourceIdentifier") private java.util.Map<String, ?> resourceIdentifier; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private ResourcesToImport(Builder builder) { this.logicalResourceId = builder.logicalResourceId; this.resourceIdentifier = builder.resourceIdentifier; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static ResourcesToImport create() { return builder().build(); } /** * @return logicalResourceId */ public String getLogicalResourceId() { return this.logicalResourceId; } /** * @return resourceIdentifier */ public java.util.Map<String, ?> getResourceIdentifier() { return this.resourceIdentifier; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private String logicalResourceId; private java.util.Map<String, ?> resourceIdentifier; private String resourceType; private Builder() { } private Builder(ResourcesToImport model) { this.logicalResourceId = model.logicalResourceId; this.resourceIdentifier = model.resourceIdentifier; this.resourceType = model.resourceType; } /** * <p>The logical ID of the resource.</p> * * <strong>example:</strong> * <p>ECSVPC_001</p> */ public Builder logicalResourceId(String logicalResourceId) { this.logicalResourceId = logicalResourceId; return this; } /** * <p>The key-value mapping between strings. The value is a JSON string that identifies the resource that you want to import into a stack.<br>A key is an identifier for a resource, and a value is an assignment of data to the key. For example, VpcId is a key that indicates the ID of a virtual private cloud (VPC), and <code>vpc-bp1m6fww66xbntjyc****&quot;</code> is a value that is assigned to VpcId.</p> * * <strong>example:</strong> * <p>{&quot;VpcId&quot;: &quot;vpc-bp1m6fww66xbntjyc****&quot; }</p> */ public Builder resourceIdentifier(java.util.Map<String, ?> resourceIdentifier) { this.resourceIdentifier = resourceIdentifier; return this; } /** * <p>The type of the resource.</p> * * <strong>example:</strong> * <p>ALIYUN::ECS::VPC</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public ResourcesToImport build() { return new ResourcesToImport(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GenerateTemplatePolicyRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GenerateTemplatePolicyRequest} extends {@link RequestModel} * * <p>GenerateTemplatePolicyRequest</p> */ public class GenerateTemplatePolicyRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperationTypes") private java.util.List<String> operationTypes; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateBody") private String templateBody; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateId") private String templateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateURL") private String templateURL; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateVersion") private String templateVersion; private GenerateTemplatePolicyRequest(Builder builder) { super(builder); this.operationTypes = builder.operationTypes; this.templateBody = builder.templateBody; this.templateId = builder.templateId; this.templateURL = builder.templateURL; this.templateVersion = builder.templateVersion; } public static Builder builder() { return new Builder(); } public static GenerateTemplatePolicyRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return operationTypes */ public java.util.List<String> getOperationTypes() { return this.operationTypes; } /** * @return templateBody */ public String getTemplateBody() { return this.templateBody; } /** * @return templateId */ public String getTemplateId() { return this.templateId; } /** * @return templateURL */ public String getTemplateURL() { return this.templateURL; } /** * @return templateVersion */ public String getTemplateVersion() { return this.templateVersion; } public static final class Builder extends Request.Builder<GenerateTemplatePolicyRequest, Builder> { private java.util.List<String> operationTypes; private String templateBody; private String templateId; private String templateURL; private String templateVersion; private Builder() { super(); } private Builder(GenerateTemplatePolicyRequest request) { super(request); this.operationTypes = request.operationTypes; this.templateBody = request.templateBody; this.templateId = request.templateId; this.templateURL = request.templateURL; this.templateVersion = request.templateVersion; } /** * <p>The type of operation N for which you want to generate the policy information.</p> * <p>Valid values:</p> * <ul> * <li>CreateStack: creates a stack by calling the CreateStack operation.</li> * <li>UpdateStack: updates a stack by calling the UpdateStack operation.</li> * <li>DeleteStack: deletes a stack by calling the DeleteStack operation.</li> * <li>DetectStackDrift: detects drifts on a stack by calling the DelectStackDrift operation.</li> * <li>ListStackOperationRisks: lists the risks of a deletion operation on a stack by setting the OperationType parameter to DeleteStack in the ListStackOperationRisks operation.</li> * <li>GetTemplateEstimateCost: queries the estimated prices of resources that you want to use in the template by calling the GetTemplateEstimateCost operation.</li> * <li>GetTemplateParameterConstraints: queries the values of parameters in the template by calling the GetTemplateParameterConstraints operation.</li> * <li>ImportResourcesToStack: imports resources to a stack by setting the ChangeSetType parameter to IMPORT in the CreateChangeSet operation.</li> * <li>SignalResource: sends a signal to a stack.</li> * </ul> * <blockquote> * <p> The default value is the combination of all valid values.</p> * </blockquote> */ public Builder operationTypes(java.util.List<String> operationTypes) { this.putQueryParameter("OperationTypes", operationTypes); this.operationTypes = operationTypes; return this; } /** * <p>The structure that contains the template body. The template body must be 1 to 524,288 bytes in length.</p> * <p>If the length of the template body exceeds the upper limit, we recommend that you add parameters to the HTTP POST request body to prevent request failures caused by excessively long URLs.</p> * <p>You can specify only one of the following parameters: TemplateBody, TemplateURL, and TemplateId.</p> * * <strong>example:</strong> * <p>{&quot;ROSTemplateFormatVersion&quot;:&quot;2015-09-01&quot;}</p> */ public Builder templateBody(String templateBody) { this.putQueryParameter("TemplateBody", templateBody); this.templateBody = templateBody; return this; } /** * <p>The ID of the template. This parameter applies to shared templates and private templates.</p> * <p>You can specify only one of the following parameters: TemplateBody, TemplateURL, and TemplateId.</p> * * <strong>example:</strong> * <p>5ecd1e10-b0e9-4389-a565-e4c15efc****</p> */ public Builder templateId(String templateId) { this.putQueryParameter("TemplateId", templateId); this.templateId = templateId; return this; } /** * <p>The URL of the file that contains the template body. The URL must point to a template that is located on an HTTP or HTTPS web server or in an Object Storage Service (OSS) bucket, such as oss://ros/template/demo or oss://ros/template/demo?RegionId=cn-hangzhou. The template body can be up to 524,288 bytes in length.</p> * <blockquote> * <p> If you do not specify the region ID of the OSS bucket, the value of the RegionId parameter is used.</p> * </blockquote> * <p>You can specify only one of the following parameters: TemplateBody, TemplateURL, and TemplateId.</p> * <p>The URL can be up to 1,024 bytes in length.</p> * * <strong>example:</strong> * <p>oss://ros/template/demo</p> */ public Builder templateURL(String templateURL) { this.putQueryParameter("TemplateURL", templateURL); this.templateURL = templateURL; return this; } /** * <p>The version of the template. This parameter takes effect only when the TemplateId parameter is specified.</p> * * <strong>example:</strong> * <p>v1</p> */ public Builder templateVersion(String templateVersion) { this.putQueryParameter("TemplateVersion", templateVersion); this.templateVersion = templateVersion; return this; } @Override public GenerateTemplatePolicyRequest build() { return new GenerateTemplatePolicyRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GenerateTemplatePolicyResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GenerateTemplatePolicyResponse} extends {@link TeaModel} * * <p>GenerateTemplatePolicyResponse</p> */ public class GenerateTemplatePolicyResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GenerateTemplatePolicyResponseBody body; private GenerateTemplatePolicyResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GenerateTemplatePolicyResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GenerateTemplatePolicyResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GenerateTemplatePolicyResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GenerateTemplatePolicyResponseBody body); @Override GenerateTemplatePolicyResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GenerateTemplatePolicyResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GenerateTemplatePolicyResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GenerateTemplatePolicyResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GenerateTemplatePolicyResponseBody body) { this.body = body; return this; } @Override public GenerateTemplatePolicyResponse build() { return new GenerateTemplatePolicyResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GenerateTemplatePolicyResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GenerateTemplatePolicyResponseBody} extends {@link TeaModel} * * <p>GenerateTemplatePolicyResponseBody</p> */ public class GenerateTemplatePolicyResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Policy") private Policy policy; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GenerateTemplatePolicyResponseBody(Builder builder) { this.policy = builder.policy; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GenerateTemplatePolicyResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return policy */ public Policy getPolicy() { return this.policy; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Policy policy; private String requestId; private Builder() { } private Builder(GenerateTemplatePolicyResponseBody model) { this.policy = model.policy; this.requestId = model.requestId; } /** * <p>The information about the policy.</p> */ public Builder policy(Policy policy) { this.policy = policy; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84B6E6</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GenerateTemplatePolicyResponseBody build() { return new GenerateTemplatePolicyResponseBody(this); } } /** * * {@link GenerateTemplatePolicyResponseBody} extends {@link TeaModel} * * <p>GenerateTemplatePolicyResponseBody</p> */ public static class Statement extends TeaModel { @com.aliyun.core.annotation.NameInMap("Action") private java.util.List<String> action; @com.aliyun.core.annotation.NameInMap("Condition") private java.util.Map<String, ?> condition; @com.aliyun.core.annotation.NameInMap("Effect") private String effect; @com.aliyun.core.annotation.NameInMap("Resource") private String resource; private Statement(Builder builder) { this.action = builder.action; this.condition = builder.condition; this.effect = builder.effect; this.resource = builder.resource; } public static Builder builder() { return new Builder(); } public static Statement create() { return builder().build(); } /** * @return action */ public java.util.List<String> getAction() { return this.action; } /** * @return condition */ public java.util.Map<String, ?> getCondition() { return this.condition; } /** * @return effect */ public String getEffect() { return this.effect; } /** * @return resource */ public String getResource() { return this.resource; } public static final class Builder { private java.util.List<String> action; private java.util.Map<String, ?> condition; private String effect; private String resource; private Builder() { } private Builder(Statement model) { this.action = model.action; this.condition = model.condition; this.effect = model.effect; this.resource = model.resource; } /** * <p>The operations that are performed on the specified resource.</p> */ public Builder action(java.util.List<String> action) { this.action = action; return this; } /** * <p>The condition that is required for the policy to take effect.</p> * * <strong>example:</strong> * <p>{ * &quot;StringEquals&quot;: { * &quot;acs:Service&quot;: &quot;fc.aliyuncs.com&quot; * } * }</p> */ public Builder condition(java.util.Map<String, ?> condition) { this.condition = condition; return this; } /** * <p>The effect of the statement. Valid values:</p> * <ul> * <li>Allow</li> * <li>Deny</li> * </ul> * * <strong>example:</strong> * <p>Allow</p> */ public Builder effect(String effect) { this.effect = effect; return this; } /** * <p>The objects that the statement covers. An asterisk (*) indicates all resources.</p> * * <strong>example:</strong> * <ul> * <li></li> * </ul> */ public Builder resource(String resource) { this.resource = resource; return this; } public Statement build() { return new Statement(this); } } } /** * * {@link GenerateTemplatePolicyResponseBody} extends {@link TeaModel} * * <p>GenerateTemplatePolicyResponseBody</p> */ public static class Policy extends TeaModel { @com.aliyun.core.annotation.NameInMap("Statement") private java.util.List<Statement> statement; @com.aliyun.core.annotation.NameInMap("Version") private String version; private Policy(Builder builder) { this.statement = builder.statement; this.version = builder.version; } public static Builder builder() { return new Builder(); } public static Policy create() { return builder().build(); } /** * @return statement */ public java.util.List<Statement> getStatement() { return this.statement; } /** * @return version */ public String getVersion() { return this.version; } public static final class Builder { private java.util.List<Statement> statement; private String version; private Builder() { } private Builder(Policy model) { this.statement = model.statement; this.version = model.version; } /** * <p>The statements that are contained in the policy.</p> */ public Builder statement(java.util.List<Statement> statement) { this.statement = statement; return this; } /** * <p>The version number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder version(String version) { this.version = version; return this; } public Policy build() { return new Policy(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetAITaskRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetAITaskRequest} extends {@link RequestModel} * * <p>GetAITaskRequest</p> */ public class GetAITaskRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OutputOption") private String outputOption; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TaskId") private String taskId; private GetAITaskRequest(Builder builder) { super(builder); this.outputOption = builder.outputOption; this.taskId = builder.taskId; } public static Builder builder() { return new Builder(); } public static GetAITaskRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return outputOption */ public String getOutputOption() { return this.outputOption; } /** * @return taskId */ public String getTaskId() { return this.taskId; } public static final class Builder extends Request.Builder<GetAITaskRequest, Builder> { private String outputOption; private String taskId; private Builder() { super(); } private Builder(GetAITaskRequest request) { super(request); this.outputOption = request.outputOption; this.taskId = request.taskId; } /** * <p>Specifies whether to return the TaskOutput parameter. The TaskOutput parameter specifies the outputs of the AI task. Valid values:</p> * <ul> * <li>Enabled</li> * <li>Disabled (default)</li> * </ul> * <blockquote> * <p> The value of TaskOutput may be excessively long. If you do not require the outputs of the task, we recommend that you set OutputOption to Disabled to improve the response speed of the API operation.</p> * </blockquote> * * <strong>example:</strong> * <p>Disabled</p> */ public Builder outputOption(String outputOption) { this.putQueryParameter("OutputOption", outputOption); this.outputOption = outputOption; return this; } /** * <p>The ID of the AI task.</p> * * <strong>example:</strong> * <p>t-asasas*****</p> */ public Builder taskId(String taskId) { this.putQueryParameter("TaskId", taskId); this.taskId = taskId; return this; } @Override public GetAITaskRequest build() { return new GetAITaskRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetAITaskResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetAITaskResponse} extends {@link TeaModel} * * <p>GetAITaskResponse</p> */ public class GetAITaskResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetAITaskResponseBody body; private GetAITaskResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetAITaskResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetAITaskResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetAITaskResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetAITaskResponseBody body); @Override GetAITaskResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetAITaskResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetAITaskResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetAITaskResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetAITaskResponseBody body) { this.body = body; return this; } @Override public GetAITaskResponse build() { return new GetAITaskResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetAITaskResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetAITaskResponseBody} extends {@link TeaModel} * * <p>GetAITaskResponseBody</p> */ public class GetAITaskResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("HttpStatusCode") private Integer httpStatusCode; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StatusReason") private String statusReason; @com.aliyun.core.annotation.NameInMap("Success") private String success; @com.aliyun.core.annotation.NameInMap("TaskId") private String taskId; @com.aliyun.core.annotation.NameInMap("TaskOutput") private java.util.Map<String, ?> taskOutput; @com.aliyun.core.annotation.NameInMap("TaskType") @com.aliyun.core.annotation.Validation(required = true) private String taskType; private GetAITaskResponseBody(Builder builder) { this.code = builder.code; this.httpStatusCode = builder.httpStatusCode; this.message = builder.message; this.requestId = builder.requestId; this.status = builder.status; this.statusReason = builder.statusReason; this.success = builder.success; this.taskId = builder.taskId; this.taskOutput = builder.taskOutput; this.taskType = builder.taskType; } public static Builder builder() { return new Builder(); } public static GetAITaskResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return httpStatusCode */ public Integer getHttpStatusCode() { return this.httpStatusCode; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return statusReason */ public String getStatusReason() { return this.statusReason; } /** * @return success */ public String getSuccess() { return this.success; } /** * @return taskId */ public String getTaskId() { return this.taskId; } /** * @return taskOutput */ public java.util.Map<String, ?> getTaskOutput() { return this.taskOutput; } /** * @return taskType */ public String getTaskType() { return this.taskType; } public static final class Builder { private String code; private Integer httpStatusCode; private String message; private String requestId; private String status; private String statusReason; private String success; private String taskId; private java.util.Map<String, ?> taskOutput; private String taskType; private Builder() { } private Builder(GetAITaskResponseBody model) { this.code = model.code; this.httpStatusCode = model.httpStatusCode; this.message = model.message; this.requestId = model.requestId; this.status = model.status; this.statusReason = model.statusReason; this.success = model.success; this.taskId = model.taskId; this.taskOutput = model.taskOutput; this.taskType = model.taskType; } /** * <p>The error code.</p> * * <strong>example:</strong> * <p>Forbidden</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The HTTP status code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder httpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } /** * <p>The error message.</p> * * <strong>example:</strong> * <p>You are not authorized to complete this action.</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>14A07460-EBE7-47CA-9757-12CC4761D47A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The state of the AI task.</p> * <ul> * <li>PENDING</li> * <li>WAITING</li> * <li>RUNNING</li> * <li>SUCCESS</li> * <li>FAILURE</li> * </ul> * * <strong>example:</strong> * <p>FAILURE</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The reason why the AI task is in the state.</p> * * <strong>example:</strong> * <p>Handler execution unexpected failure</p> */ public Builder statusReason(String statusReason) { this.statusReason = statusReason; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(String success) { this.success = success; return this; } /** * <p>The ID of the AI task.</p> * * <strong>example:</strong> * <p>t-asasas*****</p> */ public Builder taskId(String taskId) { this.taskId = taskId; return this; } /** * <p>The outputs of the AI task. The outputs include the template.</p> * <ul> * <li></li> * </ul> * * <strong>example:</strong> * <p>&quot;Result&quot;: { * &quot;ROSTemplateFormatVersion&quot;: &quot;2015-09-01&quot;, * }</p> */ public Builder taskOutput(java.util.Map<String, ?> taskOutput) { this.taskOutput = taskOutput; return this; } /** * <p>The type of the AI task.</p> * <ul> * <li>GenerateTemplate: The AI task is used to generate a template.</li> * <li>FixTemplate: The AI task is used to fix a template.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>GenerateTemplate</p> */ public Builder taskType(String taskType) { this.taskType = taskType; return this; } public GetAITaskResponseBody build() { return new GetAITaskResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetChangeSetRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetChangeSetRequest} extends {@link RequestModel} * * <p>GetChangeSetRequest</p> */ public class GetChangeSetRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ChangeSetId") @com.aliyun.core.annotation.Validation(required = true) private String changeSetId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ShowTemplate") private Boolean showTemplate; private GetChangeSetRequest(Builder builder) { super(builder); this.changeSetId = builder.changeSetId; this.regionId = builder.regionId; this.showTemplate = builder.showTemplate; } public static Builder builder() { return new Builder(); } public static GetChangeSetRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return changeSetId */ public String getChangeSetId() { return this.changeSetId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return showTemplate */ public Boolean getShowTemplate() { return this.showTemplate; } public static final class Builder extends Request.Builder<GetChangeSetRequest, Builder> { private String changeSetId; private String regionId; private Boolean showTemplate; private Builder() { super(); } private Builder(GetChangeSetRequest request) { super(request); this.changeSetId = request.changeSetId; this.regionId = request.regionId; this.showTemplate = request.showTemplate; } /** * <p>The ID of the change set.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>4c11658d-bd47-4dd0-ba64-727edc62****</p> */ public Builder changeSetId(String changeSetId) { this.putQueryParameter("ChangeSetId", changeSetId); this.changeSetId = changeSetId; return this; } /** * <p>The region ID of the change set. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>Specifies whether to obtain the template. Valid values:</p> * <ul> * <li>true</li> * <li>false (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder showTemplate(Boolean showTemplate) { this.putQueryParameter("ShowTemplate", showTemplate); this.showTemplate = showTemplate; return this; } @Override public GetChangeSetRequest build() { return new GetChangeSetRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetChangeSetResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetChangeSetResponse} extends {@link TeaModel} * * <p>GetChangeSetResponse</p> */ public class GetChangeSetResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetChangeSetResponseBody body; private GetChangeSetResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetChangeSetResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetChangeSetResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetChangeSetResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetChangeSetResponseBody body); @Override GetChangeSetResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetChangeSetResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetChangeSetResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetChangeSetResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetChangeSetResponseBody body) { this.body = body; return this; } @Override public GetChangeSetResponse build() { return new GetChangeSetResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetChangeSetResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetChangeSetResponseBody} extends {@link TeaModel} * * <p>GetChangeSetResponseBody</p> */ public class GetChangeSetResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ChangeSetId") private String changeSetId; @com.aliyun.core.annotation.NameInMap("ChangeSetName") private String changeSetName; @com.aliyun.core.annotation.NameInMap("ChangeSetType") private String changeSetType; @com.aliyun.core.annotation.NameInMap("Changes") private java.util.List<java.util.Map<String, ?>> changes; @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DisableRollback") private Boolean disableRollback; @com.aliyun.core.annotation.NameInMap("ExecutionStatus") private String executionStatus; @com.aliyun.core.annotation.NameInMap("Log") private Log log; @com.aliyun.core.annotation.NameInMap("Parameters") private java.util.List<Parameters> parameters; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; @com.aliyun.core.annotation.NameInMap("StackName") private String stackName; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StatusReason") private String statusReason; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.NameInMap("TemplateBody") private String templateBody; @com.aliyun.core.annotation.NameInMap("TimeoutInMinutes") private Integer timeoutInMinutes; private GetChangeSetResponseBody(Builder builder) { this.changeSetId = builder.changeSetId; this.changeSetName = builder.changeSetName; this.changeSetType = builder.changeSetType; this.changes = builder.changes; this.createTime = builder.createTime; this.description = builder.description; this.disableRollback = builder.disableRollback; this.executionStatus = builder.executionStatus; this.log = builder.log; this.parameters = builder.parameters; this.regionId = builder.regionId; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; this.stackId = builder.stackId; this.stackName = builder.stackName; this.status = builder.status; this.statusReason = builder.statusReason; this.tags = builder.tags; this.templateBody = builder.templateBody; this.timeoutInMinutes = builder.timeoutInMinutes; } public static Builder builder() { return new Builder(); } public static GetChangeSetResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return changeSetId */ public String getChangeSetId() { return this.changeSetId; } /** * @return changeSetName */ public String getChangeSetName() { return this.changeSetName; } /** * @return changeSetType */ public String getChangeSetType() { return this.changeSetType; } /** * @return changes */ public java.util.List<java.util.Map<String, ?>> getChanges() { return this.changes; } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return disableRollback */ public Boolean getDisableRollback() { return this.disableRollback; } /** * @return executionStatus */ public String getExecutionStatus() { return this.executionStatus; } /** * @return log */ public Log getLog() { return this.log; } /** * @return parameters */ public java.util.List<Parameters> getParameters() { return this.parameters; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return stackName */ public String getStackName() { return this.stackName; } /** * @return status */ public String getStatus() { return this.status; } /** * @return statusReason */ public String getStatusReason() { return this.statusReason; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return templateBody */ public String getTemplateBody() { return this.templateBody; } /** * @return timeoutInMinutes */ public Integer getTimeoutInMinutes() { return this.timeoutInMinutes; } public static final class Builder { private String changeSetId; private String changeSetName; private String changeSetType; private java.util.List<java.util.Map<String, ?>> changes; private String createTime; private String description; private Boolean disableRollback; private String executionStatus; private Log log; private java.util.List<Parameters> parameters; private String regionId; private String requestId; private String resourceGroupId; private String stackId; private String stackName; private String status; private String statusReason; private java.util.List<Tags> tags; private String templateBody; private Integer timeoutInMinutes; private Builder() { } private Builder(GetChangeSetResponseBody model) { this.changeSetId = model.changeSetId; this.changeSetName = model.changeSetName; this.changeSetType = model.changeSetType; this.changes = model.changes; this.createTime = model.createTime; this.description = model.description; this.disableRollback = model.disableRollback; this.executionStatus = model.executionStatus; this.log = model.log; this.parameters = model.parameters; this.regionId = model.regionId; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; this.stackId = model.stackId; this.stackName = model.stackName; this.status = model.status; this.statusReason = model.statusReason; this.tags = model.tags; this.templateBody = model.templateBody; this.timeoutInMinutes = model.timeoutInMinutes; } /** * <p>The ID of the change set.</p> * * <strong>example:</strong> * <p>4c11658d-bd47-4dd0-ba64-727edc62****</p> */ public Builder changeSetId(String changeSetId) { this.changeSetId = changeSetId; return this; } /** * <p>The name of the change set.</p> * * <strong>example:</strong> * <p>ChangeSet_template</p> */ public Builder changeSetName(String changeSetName) { this.changeSetName = changeSetName; return this; } /** * <p>The type of the change set.</p> * * <strong>example:</strong> * <p>UPDATE</p> */ public Builder changeSetType(String changeSetType) { this.changeSetType = changeSetType; return this; } /** * <p>The changes of the change set.</p> */ public Builder changes(java.util.List<java.util.Map<String, ?>> changes) { this.changes = changes; return this; } /** * <p>The time when the change set was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2021-12-01T02:20:56</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The description of the change set.</p> * * <strong>example:</strong> * <p>It is a demo.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>Indicates whether rollback was performed when the stack failed to be created or updated.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder disableRollback(Boolean disableRollback) { this.disableRollback = disableRollback; return this; } /** * <p>The execution status of the change set.</p> * * <strong>example:</strong> * <p>AVAILABLE</p> */ public Builder executionStatus(String executionStatus) { this.executionStatus = executionStatus; return this; } /** * <p>The output logs of the change set.</p> */ public Builder log(Log log) { this.log = log; return this; } /** * <p>The parameters of the stack.</p> */ public Builder parameters(java.util.List<Parameters> parameters) { this.parameters = parameters; return this; } /** * <p>The region ID of the change set.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>3766EE04-76DD-50F9-9C23-3AF136CD5708</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * ResourceGroupId. */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The ID of the stack with which the change set is associated.</p> * * <strong>example:</strong> * <p>a486fc19-ebb7-4ce9-a70b-554a7c3d****</p> */ public Builder stackId(String stackId) { this.stackId = stackId; return this; } /** * <p>The name of the stack with which the change set is associated.</p> * * <strong>example:</strong> * <p>stack_2021-10-13</p> */ public Builder stackName(String stackName) { this.stackName = stackName; return this; } /** * <p>The status of the change set.</p> * * <strong>example:</strong> * <p>CREATE_COMPLETE</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The reason why the change set is in its current state.</p> * * <strong>example:</strong> * <p>too many changes.</p> */ public Builder statusReason(String statusReason) { this.statusReason = statusReason; return this; } /** * Tags. */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The template body of the change set.</p> * <blockquote> * <p>This parameter takes effect only if you set ShowTemplate to true.</p> * </blockquote> * * <strong>example:</strong> * <p>{&quot;ROSTemplateFormatVersion&quot;: &quot;2015-09-01&quot;}</p> */ public Builder templateBody(String templateBody) { this.templateBody = templateBody; return this; } /** * <p>The timeout period that is specified for the stack creation or update operation.</p> * * <strong>example:</strong> * <p>60</p> */ public Builder timeoutInMinutes(Integer timeoutInMinutes) { this.timeoutInMinutes = timeoutInMinutes; return this; } public GetChangeSetResponseBody build() { return new GetChangeSetResponseBody(this); } } /** * * {@link GetChangeSetResponseBody} extends {@link TeaModel} * * <p>GetChangeSetResponseBody</p> */ public static class TerraformLogs extends TeaModel { @com.aliyun.core.annotation.NameInMap("Command") private String command; @com.aliyun.core.annotation.NameInMap("Content") private String content; @com.aliyun.core.annotation.NameInMap("Stream") private String stream; private TerraformLogs(Builder builder) { this.command = builder.command; this.content = builder.content; this.stream = builder.stream; } public static Builder builder() { return new Builder(); } public static TerraformLogs create() { return builder().build(); } /** * @return command */ public String getCommand() { return this.command; } /** * @return content */ public String getContent() { return this.content; } /** * @return stream */ public String getStream() { return this.stream; } public static final class Builder { private String command; private String content; private String stream; private Builder() { } private Builder(TerraformLogs model) { this.command = model.command; this.content = model.content; this.stream = model.stream; } /** * <p>The name of the Terraform command that is run. Valid values:</p> * <ul> * <li>apply</li> * <li>plan</li> * <li>destroy</li> * <li>version</li> * </ul> * <p>For more information about Terraform commands, see <a href="https://www.terraform.io/cli/commands">Command</a>.</p> * * <strong>example:</strong> * <p>apply</p> */ public Builder command(String command) { this.command = command; return this; } /** * <p>The content of the output stream that is returned after the command is run.</p> * * <strong>example:</strong> * <p>Apply complete! Resources: 42 added, 0 changed, 0 destroyed.</p> */ public Builder content(String content) { this.content = content; return this; } /** * <p>The output stream. Valid values:</p> * <ul> * <li>stdout: standard output stream</li> * <li>stderr: standard error stream</li> * </ul> * * <strong>example:</strong> * <p>stdout</p> */ public Builder stream(String stream) { this.stream = stream; return this; } public TerraformLogs build() { return new TerraformLogs(this); } } } /** * * {@link GetChangeSetResponseBody} extends {@link TeaModel} * * <p>GetChangeSetResponseBody</p> */ public static class Log extends TeaModel { @com.aliyun.core.annotation.NameInMap("TerraformLogs") private java.util.List<TerraformLogs> terraformLogs; private Log(Builder builder) { this.terraformLogs = builder.terraformLogs; } public static Builder builder() { return new Builder(); } public static Log create() { return builder().build(); } /** * @return terraformLogs */ public java.util.List<TerraformLogs> getTerraformLogs() { return this.terraformLogs; } public static final class Builder { private java.util.List<TerraformLogs> terraformLogs; private Builder() { } private Builder(Log model) { this.terraformLogs = model.terraformLogs; } /** * <p>The Terraform logs. This parameter is returned only for change sets of Terraform stacks.</p> * <blockquote> * <p>This parameter is not returned for change sets that are in the Creating state. This parameter indicates the logs of the change set creation operation for Terraform stacks.</p> * </blockquote> */ public Builder terraformLogs(java.util.List<TerraformLogs> terraformLogs) { this.terraformLogs = terraformLogs; return this; } public Log build() { return new Log(this); } } } /** * * {@link GetChangeSetResponseBody} extends {@link TeaModel} * * <p>GetChangeSetResponseBody</p> */ public static class Parameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("ParameterKey") private String parameterKey; @com.aliyun.core.annotation.NameInMap("ParameterValue") private String parameterValue; private Parameters(Builder builder) { this.parameterKey = builder.parameterKey; this.parameterValue = builder.parameterValue; } public static Builder builder() { return new Builder(); } public static Parameters create() { return builder().build(); } /** * @return parameterKey */ public String getParameterKey() { return this.parameterKey; } /** * @return parameterValue */ public String getParameterValue() { return this.parameterValue; } public static final class Builder { private String parameterKey; private String parameterValue; private Builder() { } private Builder(Parameters model) { this.parameterKey = model.parameterKey; this.parameterValue = model.parameterValue; } /** * <p>The key of the parameter.</p> * * <strong>example:</strong> * <p>ALIYUN::Region</p> */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * <p>The value of the parameter.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder parameterValue(String parameterValue) { this.parameterValue = parameterValue; return this; } public Parameters build() { return new Parameters(this); } } } /** * * {@link GetChangeSetResponseBody} extends {@link TeaModel} * * <p>GetChangeSetResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * Key. */ public Builder key(String key) { this.key = key; return this; } /** * Value. */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetDiagnosticRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetDiagnosticRequest} extends {@link RequestModel} * * <p>GetDiagnosticRequest</p> */ public class GetDiagnosticRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ReportId") private String reportId; private GetDiagnosticRequest(Builder builder) { super(builder); this.reportId = builder.reportId; } public static Builder builder() { return new Builder(); } public static GetDiagnosticRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return reportId */ public String getReportId() { return this.reportId; } public static final class Builder extends Request.Builder<GetDiagnosticRequest, Builder> { private String reportId; private Builder() { super(); } private Builder(GetDiagnosticRequest request) { super(request); this.reportId = request.reportId; } /** * <p>The ID of the diagnostic report.</p> * * <strong>example:</strong> * <p>dr-d540def087714890****</p> */ public Builder reportId(String reportId) { this.putQueryParameter("ReportId", reportId); this.reportId = reportId; return this; } @Override public GetDiagnosticRequest build() { return new GetDiagnosticRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetDiagnosticResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetDiagnosticResponse} extends {@link TeaModel} * * <p>GetDiagnosticResponse</p> */ public class GetDiagnosticResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetDiagnosticResponseBody body; private GetDiagnosticResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetDiagnosticResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetDiagnosticResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetDiagnosticResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetDiagnosticResponseBody body); @Override GetDiagnosticResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetDiagnosticResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetDiagnosticResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetDiagnosticResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetDiagnosticResponseBody body) { this.body = body; return this; } @Override public GetDiagnosticResponse build() { return new GetDiagnosticResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetDiagnosticResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetDiagnosticResponseBody} extends {@link TeaModel} * * <p>GetDiagnosticResponseBody</p> */ public class GetDiagnosticResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("DiagnosticKey") private String diagnosticKey; @com.aliyun.core.annotation.NameInMap("DiagnosticProduct") private String diagnosticProduct; @com.aliyun.core.annotation.NameInMap("DiagnosticResult") private DiagnosticResult diagnosticResult; @com.aliyun.core.annotation.NameInMap("DiagnosticTime") private String diagnosticTime; @com.aliyun.core.annotation.NameInMap("HttpCode") private String httpCode; @com.aliyun.core.annotation.NameInMap("HttpStatusCode") private Integer httpStatusCode; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("Recommends") private java.util.Map<String, ?> recommends; @com.aliyun.core.annotation.NameInMap("ReportId") private String reportId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StatusReason") private String statusReason; @com.aliyun.core.annotation.NameInMap("Success") private String success; private GetDiagnosticResponseBody(Builder builder) { this.code = builder.code; this.diagnosticKey = builder.diagnosticKey; this.diagnosticProduct = builder.diagnosticProduct; this.diagnosticResult = builder.diagnosticResult; this.diagnosticTime = builder.diagnosticTime; this.httpCode = builder.httpCode; this.httpStatusCode = builder.httpStatusCode; this.message = builder.message; this.recommends = builder.recommends; this.reportId = builder.reportId; this.requestId = builder.requestId; this.status = builder.status; this.statusReason = builder.statusReason; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static GetDiagnosticResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return diagnosticKey */ public String getDiagnosticKey() { return this.diagnosticKey; } /** * @return diagnosticProduct */ public String getDiagnosticProduct() { return this.diagnosticProduct; } /** * @return diagnosticResult */ public DiagnosticResult getDiagnosticResult() { return this.diagnosticResult; } /** * @return diagnosticTime */ public String getDiagnosticTime() { return this.diagnosticTime; } /** * @return httpCode */ public String getHttpCode() { return this.httpCode; } /** * @return httpStatusCode */ public Integer getHttpStatusCode() { return this.httpStatusCode; } /** * @return message */ public String getMessage() { return this.message; } /** * @return recommends */ public java.util.Map<String, ?> getRecommends() { return this.recommends; } /** * @return reportId */ public String getReportId() { return this.reportId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return statusReason */ public String getStatusReason() { return this.statusReason; } /** * @return success */ public String getSuccess() { return this.success; } public static final class Builder { private String code; private String diagnosticKey; private String diagnosticProduct; private DiagnosticResult diagnosticResult; private String diagnosticTime; private String httpCode; private Integer httpStatusCode; private String message; private java.util.Map<String, ?> recommends; private String reportId; private String requestId; private String status; private String statusReason; private String success; private Builder() { } private Builder(GetDiagnosticResponseBody model) { this.code = model.code; this.diagnosticKey = model.diagnosticKey; this.diagnosticProduct = model.diagnosticProduct; this.diagnosticResult = model.diagnosticResult; this.diagnosticTime = model.diagnosticTime; this.httpCode = model.httpCode; this.httpStatusCode = model.httpStatusCode; this.message = model.message; this.recommends = model.recommends; this.reportId = model.reportId; this.requestId = model.requestId; this.status = model.status; this.statusReason = model.statusReason; this.success = model.success; } /** * <p>The error code returned.</p> * * <strong>example:</strong> * <p>Forbidden</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The keyword in the diagnosis.</p> * * <strong>example:</strong> * <p>0938F60C-A2CA-5A2E-9983-03EB1E6D7AE2</p> */ public Builder diagnosticKey(String diagnosticKey) { this.diagnosticKey = diagnosticKey; return this; } /** * <p>The name of the diagnostic item.</p> * * <strong>example:</strong> * <p>ros</p> */ public Builder diagnosticProduct(String diagnosticProduct) { this.diagnosticProduct = diagnosticProduct; return this; } /** * <p>The diagnosis result.</p> */ public Builder diagnosticResult(DiagnosticResult diagnosticResult) { this.diagnosticResult = diagnosticResult; return this; } /** * <p>The time when the diagnosis was performed.</p> * * <strong>example:</strong> * <p>2023-03-27T03:32:03Z</p> */ public Builder diagnosticTime(String diagnosticTime) { this.diagnosticTime = diagnosticTime; return this; } /** * <p>The HTTP status code</p> * * <strong>example:</strong> * <p>200</p> */ public Builder httpCode(String httpCode) { this.httpCode = httpCode; return this; } /** * <p>The HTTP status code returned.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder httpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } /** * <p>The error message returned.</p> * * <strong>example:</strong> * <p>The specified parameter ReportId is invalid, Can not find diagnostic report dr-5f6135782f104b0f****.</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The suggestion for the diagnosis.</p> * * <strong>example:</strong> * <p>{&quot;RosActionMessages&quot;: {&quot;Reason&quot;: &quot;Fail to delete stack (fc966920-450a-456b-983c-deeaec8e****), as deletion protection is enabled.&quot;, &quot;Recommend&quot;: &quot;&quot;}}</p> */ public Builder recommends(java.util.Map<String, ?> recommends) { this.recommends = recommends; return this; } /** * <p>The ID of the diagnostic report.</p> * * <strong>example:</strong> * <p>dr-cc80afc48c8741e9****</p> */ public Builder reportId(String reportId) { this.reportId = reportId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>96A24844-9603-5E79-BDF4-EFD412FC5D4C</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The diagnosis status. Valid values:</p> * <ul> * <li>Running: The diagnosis is in progress.</li> * <li>Complete: The diagnosis is complete.</li> * <li>Failed: The diagnosis failed.</li> * </ul> * * <strong>example:</strong> * <p>Running</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The reason for the diagnosis status.</p> * * <strong>example:</strong> * <p>Complete</p> */ public Builder statusReason(String statusReason) { this.statusReason = statusReason; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(String success) { this.success = success; return this; } public GetDiagnosticResponseBody build() { return new GetDiagnosticResponseBody(this); } } /** * * {@link GetDiagnosticResponseBody} extends {@link TeaModel} * * <p>GetDiagnosticResponseBody</p> */ public static class DiagnosticResult extends TeaModel { @com.aliyun.core.annotation.NameInMap("FailedResources") private java.util.Map<String, ?> failedResources; @com.aliyun.core.annotation.NameInMap("RosActionMessages") private java.util.Map<String, ?> rosActionMessages; @com.aliyun.core.annotation.NameInMap("StackMessages") private java.util.Map<String, ?> stackMessages; private DiagnosticResult(Builder builder) { this.failedResources = builder.failedResources; this.rosActionMessages = builder.rosActionMessages; this.stackMessages = builder.stackMessages; } public static Builder builder() { return new Builder(); } public static DiagnosticResult create() { return builder().build(); } /** * @return failedResources */ public java.util.Map<String, ?> getFailedResources() { return this.failedResources; } /** * @return rosActionMessages */ public java.util.Map<String, ?> getRosActionMessages() { return this.rosActionMessages; } /** * @return stackMessages */ public java.util.Map<String, ?> getStackMessages() { return this.stackMessages; } public static final class Builder { private java.util.Map<String, ?> failedResources; private java.util.Map<String, ?> rosActionMessages; private java.util.Map<String, ?> stackMessages; private Builder() { } private Builder(DiagnosticResult model) { this.failedResources = model.failedResources; this.rosActionMessages = model.rosActionMessages; this.stackMessages = model.stackMessages; } /** * <p>The resources that failed to be diagnosed.</p> */ public Builder failedResources(java.util.Map<String, ?> failedResources) { this.failedResources = failedResources; return this; } /** * <p>The information about Resource Orchestration Service (ROS) calling.</p> */ public Builder rosActionMessages(java.util.Map<String, ?> rosActionMessages) { this.rosActionMessages = rosActionMessages; return this; } /** * <p>The stack information.</p> */ public Builder stackMessages(java.util.Map<String, ?> stackMessages) { this.stackMessages = stackMessages; return this; } public DiagnosticResult build() { return new DiagnosticResult(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetFeatureDetailsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetFeatureDetailsRequest} extends {@link RequestModel} * * <p>GetFeatureDetailsRequest</p> */ public class GetFeatureDetailsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Feature") @com.aliyun.core.annotation.Validation(required = true) private String feature; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private GetFeatureDetailsRequest(Builder builder) { super(builder); this.feature = builder.feature; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetFeatureDetailsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return feature */ public String getFeature() { return this.feature; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetFeatureDetailsRequest, Builder> { private String feature; private String regionId; private Builder() { super(); } private Builder(GetFeatureDetailsRequest request) { super(request); this.feature = request.feature; this.regionId = request.regionId; } /** * <p>The one or more features that you want to query. Valid values:</p> * <ul> * <li>Terraform: the Terraform hosting feature.</li> * <li>ResourceCleaner: the resource cleaner feature. You can use ALIYUN::ROS::ResourceCleaner to create a resource cleaner.</li> * <li>TemplateScratch: the scenario feature.</li> * <li>All: all features that are supported by ROS.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>Terraform</p> */ public Builder feature(String feature) { this.putQueryParameter("Feature", feature); this.feature = feature; return this; } /** * <p>The region ID of the stack. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetFeatureDetailsRequest build() { return new GetFeatureDetailsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetFeatureDetailsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetFeatureDetailsResponse} extends {@link TeaModel} * * <p>GetFeatureDetailsResponse</p> */ public class GetFeatureDetailsResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetFeatureDetailsResponseBody body; private GetFeatureDetailsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetFeatureDetailsResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetFeatureDetailsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetFeatureDetailsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetFeatureDetailsResponseBody body); @Override GetFeatureDetailsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetFeatureDetailsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetFeatureDetailsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetFeatureDetailsResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetFeatureDetailsResponseBody body) { this.body = body; return this; } @Override public GetFeatureDetailsResponse build() { return new GetFeatureDetailsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetFeatureDetailsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public class GetFeatureDetailsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("DriftDetection") private DriftDetection driftDetection; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceCleaner") private ResourceCleaner resourceCleaner; @com.aliyun.core.annotation.NameInMap("ResourceImport") private ResourceImport resourceImport; @com.aliyun.core.annotation.NameInMap("TemplateParameterConstraints") private TemplateParameterConstraints templateParameterConstraints; @com.aliyun.core.annotation.NameInMap("TemplateScratch") private TemplateScratch templateScratch; @com.aliyun.core.annotation.NameInMap("Terraform") private Terraform terraform; private GetFeatureDetailsResponseBody(Builder builder) { this.driftDetection = builder.driftDetection; this.requestId = builder.requestId; this.resourceCleaner = builder.resourceCleaner; this.resourceImport = builder.resourceImport; this.templateParameterConstraints = builder.templateParameterConstraints; this.templateScratch = builder.templateScratch; this.terraform = builder.terraform; } public static Builder builder() { return new Builder(); } public static GetFeatureDetailsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return driftDetection */ public DriftDetection getDriftDetection() { return this.driftDetection; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceCleaner */ public ResourceCleaner getResourceCleaner() { return this.resourceCleaner; } /** * @return resourceImport */ public ResourceImport getResourceImport() { return this.resourceImport; } /** * @return templateParameterConstraints */ public TemplateParameterConstraints getTemplateParameterConstraints() { return this.templateParameterConstraints; } /** * @return templateScratch */ public TemplateScratch getTemplateScratch() { return this.templateScratch; } /** * @return terraform */ public Terraform getTerraform() { return this.terraform; } public static final class Builder { private DriftDetection driftDetection; private String requestId; private ResourceCleaner resourceCleaner; private ResourceImport resourceImport; private TemplateParameterConstraints templateParameterConstraints; private TemplateScratch templateScratch; private Terraform terraform; private Builder() { } private Builder(GetFeatureDetailsResponseBody model) { this.driftDetection = model.driftDetection; this.requestId = model.requestId; this.resourceCleaner = model.resourceCleaner; this.resourceImport = model.resourceImport; this.templateParameterConstraints = model.templateParameterConstraints; this.templateScratch = model.templateScratch; this.terraform = model.terraform; } /** * <p>Details of the drift detection feature.</p> */ public Builder driftDetection(DriftDetection driftDetection) { this.driftDetection = driftDetection; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>EBF833DA-D0E2-52BE-92E2-59CA56BE834E</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Details of the resource cleaner feature.</p> */ public Builder resourceCleaner(ResourceCleaner resourceCleaner) { this.resourceCleaner = resourceCleaner; return this; } /** * <p>Details of the resource import feature.</p> */ public Builder resourceImport(ResourceImport resourceImport) { this.resourceImport = resourceImport; return this; } /** * <p>Details of the template parameter constraint feature.</p> */ public Builder templateParameterConstraints(TemplateParameterConstraints templateParameterConstraints) { this.templateParameterConstraints = templateParameterConstraints; return this; } /** * <p>Details of the scenario feature.</p> */ public Builder templateScratch(TemplateScratch templateScratch) { this.templateScratch = templateScratch; return this; } /** * <p>Details of the Terraform hosting feature.</p> */ public Builder terraform(Terraform terraform) { this.terraform = terraform; return this; } public GetFeatureDetailsResponseBody build() { return new GetFeatureDetailsResponseBody(this); } } /** * * {@link GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public static class DriftDetection extends TeaModel { @com.aliyun.core.annotation.NameInMap("SupportedResourceTypes") private java.util.List<String> supportedResourceTypes; private DriftDetection(Builder builder) { this.supportedResourceTypes = builder.supportedResourceTypes; } public static Builder builder() { return new Builder(); } public static DriftDetection create() { return builder().build(); } /** * @return supportedResourceTypes */ public java.util.List<String> getSupportedResourceTypes() { return this.supportedResourceTypes; } public static final class Builder { private java.util.List<String> supportedResourceTypes; private Builder() { } private Builder(DriftDetection model) { this.supportedResourceTypes = model.supportedResourceTypes; } /** * <p>The resource types that are supported by the drift detection feature.</p> */ public Builder supportedResourceTypes(java.util.List<String> supportedResourceTypes) { this.supportedResourceTypes = supportedResourceTypes; return this; } public DriftDetection build() { return new DriftDetection(this); } } } /** * * {@link GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public static class SupportedResourceTypes extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("SideEffects") private java.util.List<String> sideEffects; @com.aliyun.core.annotation.NameInMap("SupportedFilters") private java.util.List<String> supportedFilters; private SupportedResourceTypes(Builder builder) { this.resourceType = builder.resourceType; this.sideEffects = builder.sideEffects; this.supportedFilters = builder.supportedFilters; } public static Builder builder() { return new Builder(); } public static SupportedResourceTypes create() { return builder().build(); } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return sideEffects */ public java.util.List<String> getSideEffects() { return this.sideEffects; } /** * @return supportedFilters */ public java.util.List<String> getSupportedFilters() { return this.supportedFilters; } public static final class Builder { private String resourceType; private java.util.List<String> sideEffects; private java.util.List<String> supportedFilters; private Builder() { } private Builder(SupportedResourceTypes model) { this.resourceType = model.resourceType; this.sideEffects = model.sideEffects; this.supportedFilters = model.supportedFilters; } /** * <p>The resource type that supports the resource cleaner feature.</p> * * <strong>example:</strong> * <p>ECS:Instance</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The names of the side effects that may be caused by the cleanup operation performed on the resources of the specified type.</p> */ public Builder sideEffects(java.util.List<String> sideEffects) { this.sideEffects = sideEffects; return this; } /** * <p>The names of the filters that are supported by the resource type.</p> */ public Builder supportedFilters(java.util.List<String> supportedFilters) { this.supportedFilters = supportedFilters; return this; } public SupportedResourceTypes build() { return new SupportedResourceTypes(this); } } } /** * * {@link GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public static class ResourceCleaner extends TeaModel { @com.aliyun.core.annotation.NameInMap("SupportedResourceTypes") private java.util.List<SupportedResourceTypes> supportedResourceTypes; private ResourceCleaner(Builder builder) { this.supportedResourceTypes = builder.supportedResourceTypes; } public static Builder builder() { return new Builder(); } public static ResourceCleaner create() { return builder().build(); } /** * @return supportedResourceTypes */ public java.util.List<SupportedResourceTypes> getSupportedResourceTypes() { return this.supportedResourceTypes; } public static final class Builder { private java.util.List<SupportedResourceTypes> supportedResourceTypes; private Builder() { } private Builder(ResourceCleaner model) { this.supportedResourceTypes = model.supportedResourceTypes; } /** * <p>The resource types that can be cleaned up.</p> */ public Builder supportedResourceTypes(java.util.List<SupportedResourceTypes> supportedResourceTypes) { this.supportedResourceTypes = supportedResourceTypes; return this; } public ResourceCleaner build() { return new ResourceCleaner(this); } } } /** * * {@link GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public static class ResourceImportSupportedResourceTypes extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceIdentifiers") private java.util.List<String> resourceIdentifiers; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private ResourceImportSupportedResourceTypes(Builder builder) { this.resourceIdentifiers = builder.resourceIdentifiers; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static ResourceImportSupportedResourceTypes create() { return builder().build(); } /** * @return resourceIdentifiers */ public java.util.List<String> getResourceIdentifiers() { return this.resourceIdentifiers; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private java.util.List<String> resourceIdentifiers; private String resourceType; private Builder() { } private Builder(ResourceImportSupportedResourceTypes model) { this.resourceIdentifiers = model.resourceIdentifiers; this.resourceType = model.resourceType; } /** * <p>The resource identifiers.</p> */ public Builder resourceIdentifiers(java.util.List<String> resourceIdentifiers) { this.resourceIdentifiers = resourceIdentifiers; return this; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>ALIYUN::ECS::Disk</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public ResourceImportSupportedResourceTypes build() { return new ResourceImportSupportedResourceTypes(this); } } } /** * * {@link GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public static class ResourceImport extends TeaModel { @com.aliyun.core.annotation.NameInMap("SupportedResourceTypes") private java.util.List<ResourceImportSupportedResourceTypes> supportedResourceTypes; private ResourceImport(Builder builder) { this.supportedResourceTypes = builder.supportedResourceTypes; } public static Builder builder() { return new Builder(); } public static ResourceImport create() { return builder().build(); } /** * @return supportedResourceTypes */ public java.util.List<ResourceImportSupportedResourceTypes> getSupportedResourceTypes() { return this.supportedResourceTypes; } public static final class Builder { private java.util.List<ResourceImportSupportedResourceTypes> supportedResourceTypes; private Builder() { } private Builder(ResourceImport model) { this.supportedResourceTypes = model.supportedResourceTypes; } /** * <p>The resource types that are supported by the resource import feature.</p> */ public Builder supportedResourceTypes(java.util.List<ResourceImportSupportedResourceTypes> supportedResourceTypes) { this.supportedResourceTypes = supportedResourceTypes; return this; } public ResourceImport build() { return new ResourceImport(this); } } } /** * * {@link GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public static class TemplateParameterConstraintsSupportedResourceTypes extends TeaModel { @com.aliyun.core.annotation.NameInMap("Properties") private java.util.List<String> properties; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private TemplateParameterConstraintsSupportedResourceTypes(Builder builder) { this.properties = builder.properties; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static TemplateParameterConstraintsSupportedResourceTypes create() { return builder().build(); } /** * @return properties */ public java.util.List<String> getProperties() { return this.properties; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private java.util.List<String> properties; private String resourceType; private Builder() { } private Builder(TemplateParameterConstraintsSupportedResourceTypes model) { this.properties = model.properties; this.resourceType = model.resourceType; } /** * <p>The names of properties that are supported by the resource type.</p> */ public Builder properties(java.util.List<String> properties) { this.properties = properties; return this; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>ALIYUN::ECS::Disk</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public TemplateParameterConstraintsSupportedResourceTypes build() { return new TemplateParameterConstraintsSupportedResourceTypes(this); } } } /** * * {@link GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public static class TemplateParameterConstraints extends TeaModel { @com.aliyun.core.annotation.NameInMap("SupportedResourceTypes") private java.util.List<TemplateParameterConstraintsSupportedResourceTypes> supportedResourceTypes; private TemplateParameterConstraints(Builder builder) { this.supportedResourceTypes = builder.supportedResourceTypes; } public static Builder builder() { return new Builder(); } public static TemplateParameterConstraints create() { return builder().build(); } /** * @return supportedResourceTypes */ public java.util.List<TemplateParameterConstraintsSupportedResourceTypes> getSupportedResourceTypes() { return this.supportedResourceTypes; } public static final class Builder { private java.util.List<TemplateParameterConstraintsSupportedResourceTypes> supportedResourceTypes; private Builder() { } private Builder(TemplateParameterConstraints model) { this.supportedResourceTypes = model.supportedResourceTypes; } /** * <p>The resource types that support the template parameter constraint feature.</p> */ public Builder supportedResourceTypes(java.util.List<TemplateParameterConstraintsSupportedResourceTypes> supportedResourceTypes) { this.supportedResourceTypes = supportedResourceTypes; return this; } public TemplateParameterConstraints build() { return new TemplateParameterConstraints(this); } } } /** * * {@link GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public static class TemplateScratchSupportedResourceTypes extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("SourceResourceGroupSupported") private Boolean sourceResourceGroupSupported; @com.aliyun.core.annotation.NameInMap("SourceResourcesSupported") private Boolean sourceResourcesSupported; @com.aliyun.core.annotation.NameInMap("SourceSupported") private Boolean sourceSupported; @com.aliyun.core.annotation.NameInMap("SourceTagSupported") private Boolean sourceTagSupported; @com.aliyun.core.annotation.NameInMap("SupportedTemplateScratchTypes") private java.util.List<String> supportedTemplateScratchTypes; private TemplateScratchSupportedResourceTypes(Builder builder) { this.resourceType = builder.resourceType; this.sourceResourceGroupSupported = builder.sourceResourceGroupSupported; this.sourceResourcesSupported = builder.sourceResourcesSupported; this.sourceSupported = builder.sourceSupported; this.sourceTagSupported = builder.sourceTagSupported; this.supportedTemplateScratchTypes = builder.supportedTemplateScratchTypes; } public static Builder builder() { return new Builder(); } public static TemplateScratchSupportedResourceTypes create() { return builder().build(); } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return sourceResourceGroupSupported */ public Boolean getSourceResourceGroupSupported() { return this.sourceResourceGroupSupported; } /** * @return sourceResourcesSupported */ public Boolean getSourceResourcesSupported() { return this.sourceResourcesSupported; } /** * @return sourceSupported */ public Boolean getSourceSupported() { return this.sourceSupported; } /** * @return sourceTagSupported */ public Boolean getSourceTagSupported() { return this.sourceTagSupported; } /** * @return supportedTemplateScratchTypes */ public java.util.List<String> getSupportedTemplateScratchTypes() { return this.supportedTemplateScratchTypes; } public static final class Builder { private String resourceType; private Boolean sourceResourceGroupSupported; private Boolean sourceResourcesSupported; private Boolean sourceSupported; private Boolean sourceTagSupported; private java.util.List<String> supportedTemplateScratchTypes; private Builder() { } private Builder(TemplateScratchSupportedResourceTypes model) { this.resourceType = model.resourceType; this.sourceResourceGroupSupported = model.sourceResourceGroupSupported; this.sourceResourcesSupported = model.sourceResourcesSupported; this.sourceSupported = model.sourceSupported; this.sourceTagSupported = model.sourceTagSupported; this.supportedTemplateScratchTypes = model.supportedTemplateScratchTypes; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>ALIYUN::ECS::Disk</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>Indicates whether the resource scope can be specified by source resource group. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder sourceResourceGroupSupported(Boolean sourceResourceGroupSupported) { this.sourceResourceGroupSupported = sourceResourceGroupSupported; return this; } /** * <p>Indicates whether the resource scope can be specified by source resource. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder sourceResourcesSupported(Boolean sourceResourcesSupported) { this.sourceResourcesSupported = sourceResourcesSupported; return this; } /** * <p>Indicates whether the resource scope can be specified by source tag, resource group, or resource. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder sourceSupported(Boolean sourceSupported) { this.sourceSupported = sourceSupported; return this; } /** * <p>Indicates whether the resource scope can be specified by source tag. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder sourceTagSupported(Boolean sourceTagSupported) { this.sourceTagSupported = sourceTagSupported; return this; } /** * <p>The scenario types that are supported.</p> */ public Builder supportedTemplateScratchTypes(java.util.List<String> supportedTemplateScratchTypes) { this.supportedTemplateScratchTypes = supportedTemplateScratchTypes; return this; } public TemplateScratchSupportedResourceTypes build() { return new TemplateScratchSupportedResourceTypes(this); } } } /** * * {@link GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public static class TemplateScratch extends TeaModel { @com.aliyun.core.annotation.NameInMap("SupportedResourceTypes") private java.util.List<TemplateScratchSupportedResourceTypes> supportedResourceTypes; private TemplateScratch(Builder builder) { this.supportedResourceTypes = builder.supportedResourceTypes; } public static Builder builder() { return new Builder(); } public static TemplateScratch create() { return builder().build(); } /** * @return supportedResourceTypes */ public java.util.List<TemplateScratchSupportedResourceTypes> getSupportedResourceTypes() { return this.supportedResourceTypes; } public static final class Builder { private java.util.List<TemplateScratchSupportedResourceTypes> supportedResourceTypes; private Builder() { } private Builder(TemplateScratch model) { this.supportedResourceTypes = model.supportedResourceTypes; } /** * <p>The resource types that are supported by the scenario feature.</p> */ public Builder supportedResourceTypes(java.util.List<TemplateScratchSupportedResourceTypes> supportedResourceTypes) { this.supportedResourceTypes = supportedResourceTypes; return this; } public TemplateScratch build() { return new TemplateScratch(this); } } } /** * * {@link GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public static class StackOperationRisk extends TeaModel { @com.aliyun.core.annotation.NameInMap("DeleteStack") private java.util.List<String> deleteStack; private StackOperationRisk(Builder builder) { this.deleteStack = builder.deleteStack; } public static Builder builder() { return new Builder(); } public static StackOperationRisk create() { return builder().build(); } /** * @return deleteStack */ public java.util.List<String> getDeleteStack() { return this.deleteStack; } public static final class Builder { private java.util.List<String> deleteStack; private Builder() { } private Builder(StackOperationRisk model) { this.deleteStack = model.deleteStack; } /** * <p>The resource types that support the risk check performed to detect risks caused by a stack deletion operation.</p> */ public Builder deleteStack(java.util.List<String> deleteStack) { this.deleteStack = deleteStack; return this; } public StackOperationRisk build() { return new StackOperationRisk(this); } } } /** * * {@link GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public static class TerraformSupportedResourceTypes extends TeaModel { @com.aliyun.core.annotation.NameInMap("CustomTag") private java.util.List<String> customTag; @com.aliyun.core.annotation.NameInMap("EstimateCost") private java.util.List<String> estimateCost; @com.aliyun.core.annotation.NameInMap("ResourceGroup") private java.util.List<String> resourceGroup; @com.aliyun.core.annotation.NameInMap("StackOperationRisk") private StackOperationRisk stackOperationRisk; @com.aliyun.core.annotation.NameInMap("SystemTag") private java.util.List<String> systemTag; private TerraformSupportedResourceTypes(Builder builder) { this.customTag = builder.customTag; this.estimateCost = builder.estimateCost; this.resourceGroup = builder.resourceGroup; this.stackOperationRisk = builder.stackOperationRisk; this.systemTag = builder.systemTag; } public static Builder builder() { return new Builder(); } public static TerraformSupportedResourceTypes create() { return builder().build(); } /** * @return customTag */ public java.util.List<String> getCustomTag() { return this.customTag; } /** * @return estimateCost */ public java.util.List<String> getEstimateCost() { return this.estimateCost; } /** * @return resourceGroup */ public java.util.List<String> getResourceGroup() { return this.resourceGroup; } /** * @return stackOperationRisk */ public StackOperationRisk getStackOperationRisk() { return this.stackOperationRisk; } /** * @return systemTag */ public java.util.List<String> getSystemTag() { return this.systemTag; } public static final class Builder { private java.util.List<String> customTag; private java.util.List<String> estimateCost; private java.util.List<String> resourceGroup; private StackOperationRisk stackOperationRisk; private java.util.List<String> systemTag; private Builder() { } private Builder(TerraformSupportedResourceTypes model) { this.customTag = model.customTag; this.estimateCost = model.estimateCost; this.resourceGroup = model.resourceGroup; this.stackOperationRisk = model.stackOperationRisk; this.systemTag = model.systemTag; } /** * <p>The resource types that support the custom tag feature.</p> */ public Builder customTag(java.util.List<String> customTag) { this.customTag = customTag; return this; } /** * <p>The resource types that support the price inquiry feature.</p> */ public Builder estimateCost(java.util.List<String> estimateCost) { this.estimateCost = estimateCost; return this; } /** * <p>The resource types that support the resource group feature.</p> */ public Builder resourceGroup(java.util.List<String> resourceGroup) { this.resourceGroup = resourceGroup; return this; } /** * <p>The resource type that support the risk check feature.</p> */ public Builder stackOperationRisk(StackOperationRisk stackOperationRisk) { this.stackOperationRisk = stackOperationRisk; return this; } /** * <p>The resource types that support the system tag <code>acs:ros:stackId</code>.</p> */ public Builder systemTag(java.util.List<String> systemTag) { this.systemTag = systemTag; return this; } public TerraformSupportedResourceTypes build() { return new TerraformSupportedResourceTypes(this); } } } /** * * {@link GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public static class ProviderVersions extends TeaModel { @com.aliyun.core.annotation.NameInMap("ProviderName") private String providerName; @com.aliyun.core.annotation.NameInMap("SupportedVersions") private java.util.List<String> supportedVersions; private ProviderVersions(Builder builder) { this.providerName = builder.providerName; this.supportedVersions = builder.supportedVersions; } public static Builder builder() { return new Builder(); } public static ProviderVersions create() { return builder().build(); } /** * @return providerName */ public String getProviderName() { return this.providerName; } /** * @return supportedVersions */ public java.util.List<String> getSupportedVersions() { return this.supportedVersions; } public static final class Builder { private String providerName; private java.util.List<String> supportedVersions; private Builder() { } private Builder(ProviderVersions model) { this.providerName = model.providerName; this.supportedVersions = model.supportedVersions; } /** * <p>The name of the provider.</p> * * <strong>example:</strong> * <p>alicloud</p> */ public Builder providerName(String providerName) { this.providerName = providerName; return this; } /** * <p>The provider versions.</p> */ public Builder supportedVersions(java.util.List<String> supportedVersions) { this.supportedVersions = supportedVersions; return this; } public ProviderVersions build() { return new ProviderVersions(this); } } } /** * * {@link GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public static class SupportedVersions extends TeaModel { @com.aliyun.core.annotation.NameInMap("ProviderVersions") private java.util.List<ProviderVersions> providerVersions; @com.aliyun.core.annotation.NameInMap("TerraformVersion") private String terraformVersion; @com.aliyun.core.annotation.NameInMap("Transform") private String transform; @com.aliyun.core.annotation.NameInMap("UpdateAllowedTransforms") private java.util.List<String> updateAllowedTransforms; private SupportedVersions(Builder builder) { this.providerVersions = builder.providerVersions; this.terraformVersion = builder.terraformVersion; this.transform = builder.transform; this.updateAllowedTransforms = builder.updateAllowedTransforms; } public static Builder builder() { return new Builder(); } public static SupportedVersions create() { return builder().build(); } /** * @return providerVersions */ public java.util.List<ProviderVersions> getProviderVersions() { return this.providerVersions; } /** * @return terraformVersion */ public String getTerraformVersion() { return this.terraformVersion; } /** * @return transform */ public String getTransform() { return this.transform; } /** * @return updateAllowedTransforms */ public java.util.List<String> getUpdateAllowedTransforms() { return this.updateAllowedTransforms; } public static final class Builder { private java.util.List<ProviderVersions> providerVersions; private String terraformVersion; private String transform; private java.util.List<String> updateAllowedTransforms; private Builder() { } private Builder(SupportedVersions model) { this.providerVersions = model.providerVersions; this.terraformVersion = model.terraformVersion; this.transform = model.transform; this.updateAllowedTransforms = model.updateAllowedTransforms; } /** * <p>The names and versions of the providers that correspond to the Terraform versions.</p> */ public Builder providerVersions(java.util.List<ProviderVersions> providerVersions) { this.providerVersions = providerVersions; return this; } /** * <p>The Terraform version.</p> * * <strong>example:</strong> * <p>1.0.11</p> */ public Builder terraformVersion(String terraformVersion) { this.terraformVersion = terraformVersion; return this; } /** * <p>The Terraform version that is supported by ROS. The parameter value is the same as the value of the Transform parameter in a Terraform template.</p> * * <strong>example:</strong> * <p>Aliyun::Terraform-v1.0</p> */ public Builder transform(String transform) { this.transform = transform; return this; } /** * <p>The Terraform versions that can be updated in ROS.</p> */ public Builder updateAllowedTransforms(java.util.List<String> updateAllowedTransforms) { this.updateAllowedTransforms = updateAllowedTransforms; return this; } public SupportedVersions build() { return new SupportedVersions(this); } } } /** * * {@link GetFeatureDetailsResponseBody} extends {@link TeaModel} * * <p>GetFeatureDetailsResponseBody</p> */ public static class Terraform extends TeaModel { @com.aliyun.core.annotation.NameInMap("SupportedResourceTypes") private TerraformSupportedResourceTypes supportedResourceTypes; @com.aliyun.core.annotation.NameInMap("SupportedVersions") private java.util.List<SupportedVersions> supportedVersions; private Terraform(Builder builder) { this.supportedResourceTypes = builder.supportedResourceTypes; this.supportedVersions = builder.supportedVersions; } public static Builder builder() { return new Builder(); } public static Terraform create() { return builder().build(); } /** * @return supportedResourceTypes */ public TerraformSupportedResourceTypes getSupportedResourceTypes() { return this.supportedResourceTypes; } /** * @return supportedVersions */ public java.util.List<SupportedVersions> getSupportedVersions() { return this.supportedVersions; } public static final class Builder { private TerraformSupportedResourceTypes supportedResourceTypes; private java.util.List<SupportedVersions> supportedVersions; private Builder() { } private Builder(Terraform model) { this.supportedResourceTypes = model.supportedResourceTypes; this.supportedVersions = model.supportedVersions; } /** * <p>The resource types that support the scenario feature.</p> */ public Builder supportedResourceTypes(TerraformSupportedResourceTypes supportedResourceTypes) { this.supportedResourceTypes = supportedResourceTypes; return this; } /** * <p>The Terraform versions.</p> */ public Builder supportedVersions(java.util.List<SupportedVersions> supportedVersions) { this.supportedVersions = supportedVersions; return this; } public Terraform build() { return new Terraform(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetResourceTypeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetResourceTypeRequest} extends {@link RequestModel} * * <p>GetResourceTypeRequest</p> */ public class GetResourceTypeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VersionId") private String versionId; private GetResourceTypeRequest(Builder builder) { super(builder); this.resourceType = builder.resourceType; this.versionId = builder.versionId; } public static Builder builder() { return new Builder(); } public static GetResourceTypeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return versionId */ public String getVersionId() { return this.versionId; } public static final class Builder extends Request.Builder<GetResourceTypeRequest, Builder> { private String resourceType; private String versionId; private Builder() { super(); } private Builder(GetResourceTypeRequest request) { super(request); this.resourceType = request.resourceType; this.versionId = request.versionId; } /** * <p>The ID of the request.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ALIYUN::ROS::WaitConditionHandle</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The version ID. If you want to query a specific version of the resource type, you must specify this parameter. If you do not specify this parameter, only the resource type is queried.</p> * <blockquote> * <p>This parameter is supported only for modules.</p> * </blockquote> * * <strong>example:</strong> * <p>v1</p> */ public Builder versionId(String versionId) { this.putQueryParameter("VersionId", versionId); this.versionId = versionId; return this; } @Override public GetResourceTypeRequest build() { return new GetResourceTypeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetResourceTypeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetResourceTypeResponse} extends {@link TeaModel} * * <p>GetResourceTypeResponse</p> */ public class GetResourceTypeResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetResourceTypeResponseBody body; private GetResourceTypeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetResourceTypeResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetResourceTypeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetResourceTypeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetResourceTypeResponseBody body); @Override GetResourceTypeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetResourceTypeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetResourceTypeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetResourceTypeResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetResourceTypeResponseBody body) { this.body = body; return this; } @Override public GetResourceTypeResponse build() { return new GetResourceTypeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetResourceTypeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetResourceTypeResponseBody} extends {@link TeaModel} * * <p>GetResourceTypeResponseBody</p> */ public class GetResourceTypeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Attributes") private java.util.Map<String, ?> attributes; @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("DefaultVersionId") private String defaultVersionId; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("EntityType") private String entityType; @com.aliyun.core.annotation.NameInMap("IsDefaultVersion") private Boolean isDefaultVersion; @com.aliyun.core.annotation.NameInMap("LatestVersionId") private String latestVersionId; @com.aliyun.core.annotation.NameInMap("Properties") private java.util.Map<String, ?> properties; @com.aliyun.core.annotation.NameInMap("Provider") private String provider; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("SupportDriftDetection") private Boolean supportDriftDetection; @com.aliyun.core.annotation.NameInMap("SupportScratchDetection") private Boolean supportScratchDetection; @com.aliyun.core.annotation.NameInMap("TemplateBody") private String templateBody; @com.aliyun.core.annotation.NameInMap("TotalVersionCount") private Integer totalVersionCount; @com.aliyun.core.annotation.NameInMap("UpdateTime") private String updateTime; private GetResourceTypeResponseBody(Builder builder) { this.attributes = builder.attributes; this.createTime = builder.createTime; this.defaultVersionId = builder.defaultVersionId; this.description = builder.description; this.entityType = builder.entityType; this.isDefaultVersion = builder.isDefaultVersion; this.latestVersionId = builder.latestVersionId; this.properties = builder.properties; this.provider = builder.provider; this.requestId = builder.requestId; this.resourceType = builder.resourceType; this.supportDriftDetection = builder.supportDriftDetection; this.supportScratchDetection = builder.supportScratchDetection; this.templateBody = builder.templateBody; this.totalVersionCount = builder.totalVersionCount; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static GetResourceTypeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return attributes */ public java.util.Map<String, ?> getAttributes() { return this.attributes; } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return defaultVersionId */ public String getDefaultVersionId() { return this.defaultVersionId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return entityType */ public String getEntityType() { return this.entityType; } /** * @return isDefaultVersion */ public Boolean getIsDefaultVersion() { return this.isDefaultVersion; } /** * @return latestVersionId */ public String getLatestVersionId() { return this.latestVersionId; } /** * @return properties */ public java.util.Map<String, ?> getProperties() { return this.properties; } /** * @return provider */ public String getProvider() { return this.provider; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return supportDriftDetection */ public Boolean getSupportDriftDetection() { return this.supportDriftDetection; } /** * @return supportScratchDetection */ public Boolean getSupportScratchDetection() { return this.supportScratchDetection; } /** * @return templateBody */ public String getTemplateBody() { return this.templateBody; } /** * @return totalVersionCount */ public Integer getTotalVersionCount() { return this.totalVersionCount; } /** * @return updateTime */ public String getUpdateTime() { return this.updateTime; } public static final class Builder { private java.util.Map<String, ?> attributes; private String createTime; private String defaultVersionId; private String description; private String entityType; private Boolean isDefaultVersion; private String latestVersionId; private java.util.Map<String, ?> properties; private String provider; private String requestId; private String resourceType; private Boolean supportDriftDetection; private Boolean supportScratchDetection; private String templateBody; private Integer totalVersionCount; private String updateTime; private Builder() { } private Builder(GetResourceTypeResponseBody model) { this.attributes = model.attributes; this.createTime = model.createTime; this.defaultVersionId = model.defaultVersionId; this.description = model.description; this.entityType = model.entityType; this.isDefaultVersion = model.isDefaultVersion; this.latestVersionId = model.latestVersionId; this.properties = model.properties; this.provider = model.provider; this.requestId = model.requestId; this.resourceType = model.resourceType; this.supportDriftDetection = model.supportDriftDetection; this.supportScratchDetection = model.supportScratchDetection; this.templateBody = model.templateBody; this.totalVersionCount = model.totalVersionCount; this.updateTime = model.updateTime; } /** * <p>The type of the resource.</p> */ public Builder attributes(java.util.Map<String, ?> attributes) { this.attributes = attributes; return this; } /** * <p>The creation time. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2023-02-24T08:25:21</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The default version ID.</p> * <blockquote> * <p>This parameter is returned only if the resource type is queried.</p> * </blockquote> * * <strong>example:</strong> * <p>v1</p> */ public Builder defaultVersionId(String defaultVersionId) { this.defaultVersionId = defaultVersionId; return this; } /** * <p>The description of the resource type.</p> * * <strong>example:</strong> * <p>It is a demo.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The entity type. Valid values:</p> * <ul> * <li>Resource: regular resource. For more information, see <a href="https://help.aliyun.com/document_detail/28863.html">Resources</a>.</li> * <li>DataSource: DataSource resource. For more information, see <a href="https://help.aliyun.com/document_detail/404753.html">DataSource resources</a>.</li> * <li>module: module.</li> * </ul> * * <strong>example:</strong> * <p>Resource</p> */ public Builder entityType(String entityType) { this.entityType = entityType; return this; } /** * <p>Indicates whether the version is the default version. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * <blockquote> * <p>This parameter is returned only if a specific version of the resource type is queried.</p> * </blockquote> * * <strong>example:</strong> * <p>true</p> */ public Builder isDefaultVersion(Boolean isDefaultVersion) { this.isDefaultVersion = isDefaultVersion; return this; } /** * <p>The latest version ID.</p> * <blockquote> * <p>This parameter is returned only if the resource type is queried.</p> * </blockquote> * * <strong>example:</strong> * <p>v10</p> */ public Builder latestVersionId(String latestVersionId) { this.latestVersionId = latestVersionId; return this; } /** * <p>Indicates whether the resource supports drift detection. Default value: false. Valid values:</p> * <ul> * <li>true: Drift detection is supported.</li> * <li>false: Drift detection is not supported.</li> * </ul> */ public Builder properties(java.util.Map<String, ?> properties) { this.properties = properties; return this; } /** * <p>The provider of the resource type. Valid values:</p> * <ul> * <li>ROS: The resource type is provided by Resource Orchestration Service (ROS).</li> * <li>Self: The resource type is provided by you.</li> * </ul> * * <strong>example:</strong> * <p>ROS</p> */ public Builder provider(String provider) { this.provider = provider; return this; } /** * <p>The attributes of the resource.</p> * * <strong>example:</strong> * <p>A28FBA2E-B6B3-5822-AA45-AB875EF23641</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The properties of the resource.</p> * * <strong>example:</strong> * <p>ALIYUN::ROS::WaitConditionHandle</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>Indicates whether the resource supports scratch detection. Default value: false. Valid values:</p> * <ul> * <li>true: Scratch detection is supported.</li> * <li>false: Scratch detection is not supported.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder supportDriftDetection(Boolean supportDriftDetection) { this.supportDriftDetection = supportDriftDetection; return this; } /** * <p>The entity type. Valid values:</p> * <ul> * <li>Resource: resources other than DataSource resources. For more information, see <a href="https://help.aliyun.com/document_detail/28863.html">Resources</a>.</li> * <li>DataSource: DataSource resources.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder supportScratchDetection(Boolean supportScratchDetection) { this.supportScratchDetection = supportScratchDetection; return this; } /** * <p>The template content in the module.</p> * <blockquote> * <p>This parameter is returned only if a specific version of the resource type is queried.</p> * </blockquote> * * <strong>example:</strong> * <p>{&quot;ROSTemplateFormatVersion&quot;:&quot;2015-09-01&quot;}</p> */ public Builder templateBody(String templateBody) { this.templateBody = templateBody; return this; } /** * <p>The total number of versions.</p> * <blockquote> * <p>This parameter is returned only if the resource type is queried.</p> * </blockquote> * * <strong>example:</strong> * <p>10</p> */ public Builder totalVersionCount(Integer totalVersionCount) { this.totalVersionCount = totalVersionCount; return this; } /** * <p>The update time. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2023-02-24T08:25:21</p> */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public GetResourceTypeResponseBody build() { return new GetResourceTypeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetResourceTypeTemplateRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetResourceTypeTemplateRequest} extends {@link RequestModel} * * <p>GetResourceTypeTemplateRequest</p> */ public class GetResourceTypeTemplateRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VersionId") private String versionId; private GetResourceTypeTemplateRequest(Builder builder) { super(builder); this.resourceType = builder.resourceType; this.versionId = builder.versionId; } public static Builder builder() { return new Builder(); } public static GetResourceTypeTemplateRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return versionId */ public String getVersionId() { return this.versionId; } public static final class Builder extends Request.Builder<GetResourceTypeTemplateRequest, Builder> { private String resourceType; private String versionId; private Builder() { super(); } private Builder(GetResourceTypeTemplateRequest request) { super(request); this.resourceType = request.resourceType; this.versionId = request.versionId; } /** * <p>The resource type.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ALIYUN::ECS::VPC</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The version ID. If you want to query a specific version of the resource type, you must specify this parameter. If you do not specify this parameter, only the resource type is queried.</p> * <blockquote> * <p>This parameter is supported only for modules.</p> * </blockquote> * * <strong>example:</strong> * <p>v1</p> */ public Builder versionId(String versionId) { this.putQueryParameter("VersionId", versionId); this.versionId = versionId; return this; } @Override public GetResourceTypeTemplateRequest build() { return new GetResourceTypeTemplateRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetResourceTypeTemplateResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetResourceTypeTemplateResponse} extends {@link TeaModel} * * <p>GetResourceTypeTemplateResponse</p> */ public class GetResourceTypeTemplateResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetResourceTypeTemplateResponseBody body; private GetResourceTypeTemplateResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetResourceTypeTemplateResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetResourceTypeTemplateResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetResourceTypeTemplateResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetResourceTypeTemplateResponseBody body); @Override GetResourceTypeTemplateResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetResourceTypeTemplateResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetResourceTypeTemplateResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetResourceTypeTemplateResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetResourceTypeTemplateResponseBody body) { this.body = body; return this; } @Override public GetResourceTypeTemplateResponse build() { return new GetResourceTypeTemplateResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetResourceTypeTemplateResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetResourceTypeTemplateResponseBody} extends {@link TeaModel} * * <p>GetResourceTypeTemplateResponseBody</p> */ public class GetResourceTypeTemplateResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TemplateBody") private java.util.Map<String, ?> templateBody; @com.aliyun.core.annotation.NameInMap("TemplateContent") private String templateContent; private GetResourceTypeTemplateResponseBody(Builder builder) { this.requestId = builder.requestId; this.templateBody = builder.templateBody; this.templateContent = builder.templateContent; } public static Builder builder() { return new Builder(); } public static GetResourceTypeTemplateResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return templateBody */ public java.util.Map<String, ?> getTemplateBody() { return this.templateBody; } /** * @return templateContent */ public String getTemplateContent() { return this.templateContent; } public static final class Builder { private String requestId; private java.util.Map<String, ?> templateBody; private String templateContent; private Builder() { } private Builder(GetResourceTypeTemplateResponseBody model) { this.requestId = model.requestId; this.templateBody = model.templateBody; this.templateContent = model.templateContent; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>87F54B2B-AEF0-4C33-A72A-3F8856A575E9</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The structure that contains the template body. The template body must be 1 to 51,200 bytes in length. For more information, see <a href="https://help.aliyun.com/document_detail/28857.html">Template syntax</a>.</p> * <blockquote> * <p>We recommend that use TemplateContent instead of TemplateBody.</p> * </blockquote> * * <strong>example:</strong> * <p>{&quot;ROSTemplateFormatVersion&quot;: &quot;2015-09-01&quot;}</p> */ public Builder templateBody(java.util.Map<String, ?> templateBody) { this.templateBody = templateBody; return this; } /** * <p>The JSON-formatted structure of the template body. For more information, see <a href="https://help.aliyun.com/document_detail/28857.html">Template syntax</a>.</p> * * <strong>example:</strong> * <p>{ * &quot;ROSTemplateFormatVersion&quot;: &quot;2015-09-01&quot; * }</p> */ public Builder templateContent(String templateContent) { this.templateContent = templateContent; return this; } public GetResourceTypeTemplateResponseBody build() { return new GetResourceTypeTemplateResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetServiceProvisionsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetServiceProvisionsRequest} extends {@link RequestModel} * * <p>GetServiceProvisionsRequest</p> */ public class GetServiceProvisionsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Parameters") private java.util.List<Parameters> parameters; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Services") private java.util.List<Services> services; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("TemplateBody") private String templateBody; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateId") private String templateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateURL") private String templateURL; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateVersion") private String templateVersion; private GetServiceProvisionsRequest(Builder builder) { super(builder); this.parameters = builder.parameters; this.regionId = builder.regionId; this.services = builder.services; this.templateBody = builder.templateBody; this.templateId = builder.templateId; this.templateURL = builder.templateURL; this.templateVersion = builder.templateVersion; } public static Builder builder() { return new Builder(); } public static GetServiceProvisionsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return parameters */ public java.util.List<Parameters> getParameters() { return this.parameters; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return services */ public java.util.List<Services> getServices() { return this.services; } /** * @return templateBody */ public String getTemplateBody() { return this.templateBody; } /** * @return templateId */ public String getTemplateId() { return this.templateId; } /** * @return templateURL */ public String getTemplateURL() { return this.templateURL; } /** * @return templateVersion */ public String getTemplateVersion() { return this.templateVersion; } public static final class Builder extends Request.Builder<GetServiceProvisionsRequest, Builder> { private java.util.List<Parameters> parameters; private String regionId; private java.util.List<Services> services; private String templateBody; private String templateId; private String templateURL; private String templateVersion; private Builder() { super(); } private Builder(GetServiceProvisionsRequest request) { super(request); this.parameters = request.parameters; this.regionId = request.regionId; this.services = request.services; this.templateBody = request.templateBody; this.templateId = request.templateId; this.templateURL = request.templateURL; this.templateVersion = request.templateVersion; } /** * <p>The parameters.</p> */ public Builder parameters(java.util.List<Parameters> parameters) { this.putQueryParameter("Parameters", parameters); this.parameters = parameters; return this; } /** * <p>The region ID. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The services.</p> */ public Builder services(java.util.List<Services> services) { this.putQueryParameter("Services", services); this.services = services; return this; } /** * TemplateBody. */ public Builder templateBody(String templateBody) { this.putBodyParameter("TemplateBody", templateBody); this.templateBody = templateBody; return this; } /** * <p>The template ID. This parameter applies to shared and private templates.</p> * <p>You must and can specify only one of the following parameters: TemplateBody, TemplateURL, TemplateId, and Services.</p> * * <strong>example:</strong> * <p>5ecd1e10-b0e9-4389-a565-e4c15efc****</p> */ public Builder templateId(String templateId) { this.putQueryParameter("TemplateId", templateId); this.templateId = templateId; return this; } /** * <p>The URL of the file that contains the template body. The URL must point to a template that is located on an HTTP or HTTPS web server or in an Object Storage Service (OSS) bucket, such as oss://ros/template/demo or oss://ros/template/demo?RegionId=cn-hangzhou. The template body must be 1 to 524,288 bytes in length. If you do not specify the region ID of the OSS bucket, the value of RegionId is used.</p> * <p>You must and can specify only one of the following parameters: TemplateBody, TemplateURL, TemplateId, and Services.</p> * * <strong>example:</strong> * <p>oss://ros-template/demo</p> */ public Builder templateURL(String templateURL) { this.putQueryParameter("TemplateURL", templateURL); this.templateURL = templateURL; return this; } /** * <p>The version of the template. If you do not specify this parameter, the latest version is used.</p> * <p>This parameter takes effect only when TemplateId is specified.</p> * * <strong>example:</strong> * <p>v1</p> */ public Builder templateVersion(String templateVersion) { this.putQueryParameter("TemplateVersion", templateVersion); this.templateVersion = templateVersion; return this; } @Override public GetServiceProvisionsRequest build() { return new GetServiceProvisionsRequest(this); } } /** * * {@link GetServiceProvisionsRequest} extends {@link TeaModel} * * <p>GetServiceProvisionsRequest</p> */ public static class Parameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("ParameterKey") @com.aliyun.core.annotation.Validation(required = true) private String parameterKey; @com.aliyun.core.annotation.NameInMap("ParameterValue") @com.aliyun.core.annotation.Validation(required = true) private String parameterValue; private Parameters(Builder builder) { this.parameterKey = builder.parameterKey; this.parameterValue = builder.parameterValue; } public static Builder builder() { return new Builder(); } public static Parameters create() { return builder().build(); } /** * @return parameterKey */ public String getParameterKey() { return this.parameterKey; } /** * @return parameterValue */ public String getParameterValue() { return this.parameterValue; } public static final class Builder { private String parameterKey; private String parameterValue; private Builder() { } private Builder(Parameters model) { this.parameterKey = model.parameterKey; this.parameterValue = model.parameterValue; } /** * <p>The name of the parameter. If you do not specify the name and value of a parameter, Resource Orchestration Service (ROS) uses the default name and value that are specified in the template.</p> * <blockquote> * <p>The Parameters parameter is optional. If you specify Parameters, you must specify ParameterKey.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>Amount</p> */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * <p>The value of the parameter.</p> * <blockquote> * <p>The Parameters parameter is optional. If you specify Parameters, you must specify ParameterValue.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>12</p> */ public Builder parameterValue(String parameterValue) { this.parameterValue = parameterValue; return this; } public Parameters build() { return new Parameters(this); } } } /** * * {@link GetServiceProvisionsRequest} extends {@link TeaModel} * * <p>GetServiceProvisionsRequest</p> */ public static class Services extends TeaModel { @com.aliyun.core.annotation.NameInMap("ServiceName") @com.aliyun.core.annotation.Validation(required = true) private String serviceName; private Services(Builder builder) { this.serviceName = builder.serviceName; } public static Builder builder() { return new Builder(); } public static Services create() { return builder().build(); } /** * @return serviceName */ public String getServiceName() { return this.serviceName; } public static final class Builder { private String serviceName; private Builder() { } private Builder(Services model) { this.serviceName = model.serviceName; } /** * <p>The name of the service or feature. Valid values:</p> * <ul> * <li>AHAS: Application High Availability Service</li> * <li>ARMS: Application Real-Time Monitoring Service (ARMS)</li> * <li>ApiGateway: API Gateway</li> * <li>BatchCompute: Batch Compute</li> * <li>BrainIndustrial: Industrial Brain</li> * <li>CloudStorageGateway: Cloud Storage Gateway (CSG)</li> * <li>CMS: CloudMonitor</li> * <li>CR: Container Registry</li> * <li>CS: Container Service for Kubernetes (ACK)</li> * <li>DCDN: Dynamic Content Delivery Network (DCDN)</li> * <li>DataHub: DataHub</li> * <li>DataWorks: DataWorks</li> * <li>EDAS: Enterprise Distributed Application Service (EDAS)</li> * <li>EHPC: E-HPC</li> * <li>EMAS: Enterprise Mobile Application Studio (EMAS)</li> * <li>FC: Function Compute</li> * <li>FNF: CloudFlow (SWF)</li> * <li>MaxCompute: MaxCompute</li> * <li>MNS: Message Service (MNS)</li> * <li>HBR: Cloud Backup</li> * <li>IMM: Intelligent Media Management (IMM)</li> * <li>IOT: IoT Platform</li> * <li>KMS: Key Management Service (KMS)</li> * <li>NAS: File Storage NAS (NAS)</li> * <li>NLP: Natural Language Processing (NLP)</li> * <li>OSS: Object Storage Service (OSS)</li> * <li>OTS: Tablestore</li> * <li>PrivateLink: PrivateLink</li> * <li>PrivateZone: Alibaba Cloud DNS PrivateZone</li> * <li>RocketMQ: ApsaraMQ for RocketMQ</li> * <li>SAE: Serverless App Engine (SAE)</li> * <li>SLS: Simple Log Service (SLS)</li> * <li>TrafficMirror: traffic mirroring</li> * <li>VS: Video Surveillance System</li> * <li>Xtrace: Managed Service for OpenTelemetry</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>EHPC</p> */ public Builder serviceName(String serviceName) { this.serviceName = serviceName; return this; } public Services build() { return new Services(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetServiceProvisionsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetServiceProvisionsResponse} extends {@link TeaModel} * * <p>GetServiceProvisionsResponse</p> */ public class GetServiceProvisionsResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetServiceProvisionsResponseBody body; private GetServiceProvisionsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetServiceProvisionsResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetServiceProvisionsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetServiceProvisionsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetServiceProvisionsResponseBody body); @Override GetServiceProvisionsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetServiceProvisionsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetServiceProvisionsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetServiceProvisionsResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetServiceProvisionsResponseBody body) { this.body = body; return this; } @Override public GetServiceProvisionsResponse build() { return new GetServiceProvisionsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetServiceProvisionsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetServiceProvisionsResponseBody} extends {@link TeaModel} * * <p>GetServiceProvisionsResponseBody</p> */ public class GetServiceProvisionsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ServiceProvisions") private java.util.List<ServiceProvisions> serviceProvisions; private GetServiceProvisionsResponseBody(Builder builder) { this.requestId = builder.requestId; this.serviceProvisions = builder.serviceProvisions; } public static Builder builder() { return new Builder(); } public static GetServiceProvisionsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return serviceProvisions */ public java.util.List<ServiceProvisions> getServiceProvisions() { return this.serviceProvisions; } public static final class Builder { private String requestId; private java.util.List<ServiceProvisions> serviceProvisions; private Builder() { } private Builder(GetServiceProvisionsResponseBody model) { this.requestId = model.requestId; this.serviceProvisions = model.serviceProvisions; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>A9938C04-26AD-5EFA-B394-EA7866842DFF</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information about the services.</p> */ public Builder serviceProvisions(java.util.List<ServiceProvisions> serviceProvisions) { this.serviceProvisions = serviceProvisions; return this; } public GetServiceProvisionsResponseBody build() { return new GetServiceProvisionsResponseBody(this); } } /** * * {@link GetServiceProvisionsResponseBody} extends {@link TeaModel} * * <p>GetServiceProvisionsResponseBody</p> */ public static class CommodityProvisions extends TeaModel { @com.aliyun.core.annotation.NameInMap("CommodityCode") private String commodityCode; @com.aliyun.core.annotation.NameInMap("EnableURL") private String enableURL; @com.aliyun.core.annotation.NameInMap("Status") private String status; private CommodityProvisions(Builder builder) { this.commodityCode = builder.commodityCode; this.enableURL = builder.enableURL; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static CommodityProvisions create() { return builder().build(); } /** * @return commodityCode */ public String getCommodityCode() { return this.commodityCode; } /** * @return enableURL */ public String getEnableURL() { return this.enableURL; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String commodityCode; private String enableURL; private String status; private Builder() { } private Builder(CommodityProvisions model) { this.commodityCode = model.commodityCode; this.enableURL = model.enableURL; this.status = model.status; } /** * CommodityCode. */ public Builder commodityCode(String commodityCode) { this.commodityCode = commodityCode; return this; } /** * EnableURL. */ public Builder enableURL(String enableURL) { this.enableURL = enableURL; return this; } /** * Status. */ public Builder status(String status) { this.status = status; return this; } public CommodityProvisions build() { return new CommodityProvisions(this); } } } /** * * {@link GetServiceProvisionsResponseBody} extends {@link TeaModel} * * <p>GetServiceProvisionsResponseBody</p> */ public static class ApiForCreation extends TeaModel { @com.aliyun.core.annotation.NameInMap("ApiName") private String apiName; @com.aliyun.core.annotation.NameInMap("ApiProductId") private String apiProductId; @com.aliyun.core.annotation.NameInMap("ApiType") private String apiType; @com.aliyun.core.annotation.NameInMap("Parameters") private java.util.Map<String, ?> parameters; private ApiForCreation(Builder builder) { this.apiName = builder.apiName; this.apiProductId = builder.apiProductId; this.apiType = builder.apiType; this.parameters = builder.parameters; } public static Builder builder() { return new Builder(); } public static ApiForCreation create() { return builder().build(); } /** * @return apiName */ public String getApiName() { return this.apiName; } /** * @return apiProductId */ public String getApiProductId() { return this.apiProductId; } /** * @return apiType */ public String getApiType() { return this.apiType; } /** * @return parameters */ public java.util.Map<String, ?> getParameters() { return this.parameters; } public static final class Builder { private String apiName; private String apiProductId; private String apiType; private java.util.Map<String, ?> parameters; private Builder() { } private Builder(ApiForCreation model) { this.apiName = model.apiName; this.apiProductId = model.apiProductId; this.apiType = model.apiType; this.parameters = model.parameters; } /** * <p>The name of the API operation.</p> * * <strong>example:</strong> * <p>CreateServiceLinkedRole</p> */ public Builder apiName(String apiName) { this.apiName = apiName; return this; } /** * <p>The ID of the Alibaba Cloud service to which the API operation belongs.</p> * * <strong>example:</strong> * <p>rds</p> */ public Builder apiProductId(String apiProductId) { this.apiProductId = apiProductId; return this; } /** * <p>The type of the API operation. Valid values:</p> * <ul> * <li>Open: public</li> * <li>Inner: private</li> * </ul> * * <strong>example:</strong> * <p>Open</p> */ public Builder apiType(String apiType) { this.apiType = apiType; return this; } /** * <p>The parameters of the API operation. If a parameter is a variable, use the ${Variable name} format. Only the following variable is supported: ${RegionId}.</p> * * <strong>example:</strong> * <p>{ &quot;ServiceLinkedRole&quot;: &quot;AliyunServiceRoleForRdsPgsqlOnEcs&quot;, &quot;RegionId&quot;: &quot;${RegionId}&quot; }</p> */ public Builder parameters(java.util.Map<String, ?> parameters) { this.parameters = parameters; return this; } public ApiForCreation build() { return new ApiForCreation(this); } } } /** * * {@link GetServiceProvisionsResponseBody} extends {@link TeaModel} * * <p>GetServiceProvisionsResponseBody</p> */ public static class Roles extends TeaModel { @com.aliyun.core.annotation.NameInMap("ApiForCreation") private ApiForCreation apiForCreation; @com.aliyun.core.annotation.NameInMap("Created") private Boolean created; @com.aliyun.core.annotation.NameInMap("Function") private String function; @com.aliyun.core.annotation.NameInMap("RoleName") private String roleName; private Roles(Builder builder) { this.apiForCreation = builder.apiForCreation; this.created = builder.created; this.function = builder.function; this.roleName = builder.roleName; } public static Builder builder() { return new Builder(); } public static Roles create() { return builder().build(); } /** * @return apiForCreation */ public ApiForCreation getApiForCreation() { return this.apiForCreation; } /** * @return created */ public Boolean getCreated() { return this.created; } /** * @return function */ public String getFunction() { return this.function; } /** * @return roleName */ public String getRoleName() { return this.roleName; } public static final class Builder { private ApiForCreation apiForCreation; private Boolean created; private String function; private String roleName; private Builder() { } private Builder(Roles model) { this.apiForCreation = model.apiForCreation; this.created = model.created; this.function = model.function; this.roleName = model.roleName; } /** * <p>The information about the API operation that is used to create the RAM role.</p> */ public Builder apiForCreation(ApiForCreation apiForCreation) { this.apiForCreation = apiForCreation; return this; } /** * <p>Indicates whether the RAM role is created. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder created(Boolean created) { this.created = created; return this; } /** * <p>The purpose for which the RAM role is used. Default value: Default. A value of Default indicates that the RAM role is the default role of the service.</p> * * <strong>example:</strong> * <p>Default</p> */ public Builder function(String function) { this.function = function; return this; } /** * <p>The name of the role.</p> * * <strong>example:</strong> * <p>AliyunServiceRoleForEHPC</p> */ public Builder roleName(String roleName) { this.roleName = roleName; return this; } public Roles build() { return new Roles(this); } } } /** * * {@link GetServiceProvisionsResponseBody} extends {@link TeaModel} * * <p>GetServiceProvisionsResponseBody</p> */ public static class RoleProvision extends TeaModel { @com.aliyun.core.annotation.NameInMap("AuthorizationURL") private String authorizationURL; @com.aliyun.core.annotation.NameInMap("Roles") private java.util.List<Roles> roles; private RoleProvision(Builder builder) { this.authorizationURL = builder.authorizationURL; this.roles = builder.roles; } public static Builder builder() { return new Builder(); } public static RoleProvision create() { return builder().build(); } /** * @return authorizationURL */ public String getAuthorizationURL() { return this.authorizationURL; } /** * @return roles */ public java.util.List<Roles> getRoles() { return this.roles; } public static final class Builder { private String authorizationURL; private java.util.List<Roles> roles; private Builder() { } private Builder(RoleProvision model) { this.authorizationURL = model.authorizationURL; this.roles = model.roles; } /** * <p>The authorization URL of the RAM role.</p> * <blockquote> * <p>This parameter is returned if Created is set to false.</p> * </blockquote> * * <strong>example:</strong> * <p><a href="https://ehpc.console.aliyun.com/">https://ehpc.console.aliyun.com/</a></p> */ public Builder authorizationURL(String authorizationURL) { this.authorizationURL = authorizationURL; return this; } /** * <p>The RAM roles of the service.</p> */ public Builder roles(java.util.List<Roles> roles) { this.roles = roles; return this; } public RoleProvision build() { return new RoleProvision(this); } } } /** * * {@link GetServiceProvisionsResponseBody} extends {@link TeaModel} * * <p>GetServiceProvisionsResponseBody</p> */ public static class ServiceProvisions extends TeaModel { @com.aliyun.core.annotation.NameInMap("AutoEnableService") private Boolean autoEnableService; @com.aliyun.core.annotation.NameInMap("CommodityProvisions") private java.util.List<CommodityProvisions> commodityProvisions; @com.aliyun.core.annotation.NameInMap("DependentServiceNames") private java.util.List<String> dependentServiceNames; @com.aliyun.core.annotation.NameInMap("EnableURL") private String enableURL; @com.aliyun.core.annotation.NameInMap("RoleProvision") private RoleProvision roleProvision; @com.aliyun.core.annotation.NameInMap("ServiceName") private String serviceName; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StatusReason") private String statusReason; private ServiceProvisions(Builder builder) { this.autoEnableService = builder.autoEnableService; this.commodityProvisions = builder.commodityProvisions; this.dependentServiceNames = builder.dependentServiceNames; this.enableURL = builder.enableURL; this.roleProvision = builder.roleProvision; this.serviceName = builder.serviceName; this.status = builder.status; this.statusReason = builder.statusReason; } public static Builder builder() { return new Builder(); } public static ServiceProvisions create() { return builder().build(); } /** * @return autoEnableService */ public Boolean getAutoEnableService() { return this.autoEnableService; } /** * @return commodityProvisions */ public java.util.List<CommodityProvisions> getCommodityProvisions() { return this.commodityProvisions; } /** * @return dependentServiceNames */ public java.util.List<String> getDependentServiceNames() { return this.dependentServiceNames; } /** * @return enableURL */ public String getEnableURL() { return this.enableURL; } /** * @return roleProvision */ public RoleProvision getRoleProvision() { return this.roleProvision; } /** * @return serviceName */ public String getServiceName() { return this.serviceName; } /** * @return status */ public String getStatus() { return this.status; } /** * @return statusReason */ public String getStatusReason() { return this.statusReason; } public static final class Builder { private Boolean autoEnableService; private java.util.List<CommodityProvisions> commodityProvisions; private java.util.List<String> dependentServiceNames; private String enableURL; private RoleProvision roleProvision; private String serviceName; private String status; private String statusReason; private Builder() { } private Builder(ServiceProvisions model) { this.autoEnableService = model.autoEnableService; this.commodityProvisions = model.commodityProvisions; this.dependentServiceNames = model.dependentServiceNames; this.enableURL = model.enableURL; this.roleProvision = model.roleProvision; this.serviceName = model.serviceName; this.status = model.status; this.statusReason = model.statusReason; } /** * <p>Indicates whether automatic activation for the service is defined in the template. Valid values:</p> * <ul> * <li>true: Automatic activation for the service is defined in the template.</li> * <li>false: Manual activation for the service is defined in the template.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder autoEnableService(Boolean autoEnableService) { this.autoEnableService = autoEnableService; return this; } /** * CommodityProvisions. */ public Builder commodityProvisions(java.util.List<CommodityProvisions> commodityProvisions) { this.commodityProvisions = commodityProvisions; return this; } /** * <p>The names of the services on which the service that is queried depends.</p> */ public Builder dependentServiceNames(java.util.List<String> dependentServiceNames) { this.dependentServiceNames = dependentServiceNames; return this; } /** * <p>The URL that points to the activation page of the service.</p> * <blockquote> * <p>This parameter is returned if Status is set to Disabled.</p> * </blockquote> * * <strong>example:</strong> * <p><a href="https://common-buy.aliyun.com/?commodityCode=nas">https://common-buy.aliyun.com/?commodityCode=nas</a></p> */ public Builder enableURL(String enableURL) { this.enableURL = enableURL; return this; } /** * <p>The information about the RAM roles of the service. If this parameter is empty, no RAM role is associated with the service.</p> */ public Builder roleProvision(RoleProvision roleProvision) { this.roleProvision = roleProvision; return this; } /** * <p>The service name.</p> * * <strong>example:</strong> * <p>EHPC</p> */ public Builder serviceName(String serviceName) { this.serviceName = serviceName; return this; } /** * <p>The activation status of the service. Valid values:</p> * <ul> * <li>Enabled: The service is activated.</li> * <li>Disabled: The service is not activated.</li> * <li>Unknown: The activation status of the service is unknown.</li> * </ul> * * <strong>example:</strong> * <p>Enabled</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The reason why the service is in the Disabled or Unknown state.</p> * <blockquote> * <p>This parameter is returned if Status is set to Disabled or Unknown.</p> * </blockquote> * * <strong>example:</strong> * <p>No permission.</p> */ public Builder statusReason(String statusReason) { this.statusReason = statusReason; return this; } public ServiceProvisions build() { return new ServiceProvisions(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackDriftDetectionStatusRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackDriftDetectionStatusRequest} extends {@link RequestModel} * * <p>GetStackDriftDetectionStatusRequest</p> */ public class GetStackDriftDetectionStatusRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DriftDetectionId") @com.aliyun.core.annotation.Validation(required = true) private String driftDetectionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private GetStackDriftDetectionStatusRequest(Builder builder) { super(builder); this.driftDetectionId = builder.driftDetectionId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetStackDriftDetectionStatusRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return driftDetectionId */ public String getDriftDetectionId() { return this.driftDetectionId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetStackDriftDetectionStatusRequest, Builder> { private String driftDetectionId; private String regionId; private Builder() { super(); } private Builder(GetStackDriftDetectionStatusRequest request) { super(request); this.driftDetectionId = request.driftDetectionId; this.regionId = request.regionId; } /** * <p>The ID of the drift detection operation.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/155098.html">ListStackResourceDrifts</a> operation to obtain the ID of the drift detection operation.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>a7044f0d-6f2e-4128-a307-4524ef88****</p> */ public Builder driftDetectionId(String driftDetectionId) { this.putQueryParameter("DriftDetectionId", driftDetectionId); this.driftDetectionId = driftDetectionId; return this; } /** * <p>The region ID of the stack to be detected for drift.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetStackDriftDetectionStatusRequest build() { return new GetStackDriftDetectionStatusRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackDriftDetectionStatusResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackDriftDetectionStatusResponse} extends {@link TeaModel} * * <p>GetStackDriftDetectionStatusResponse</p> */ public class GetStackDriftDetectionStatusResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetStackDriftDetectionStatusResponseBody body; private GetStackDriftDetectionStatusResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetStackDriftDetectionStatusResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetStackDriftDetectionStatusResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetStackDriftDetectionStatusResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetStackDriftDetectionStatusResponseBody body); @Override GetStackDriftDetectionStatusResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetStackDriftDetectionStatusResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetStackDriftDetectionStatusResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetStackDriftDetectionStatusResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetStackDriftDetectionStatusResponseBody body) { this.body = body; return this; } @Override public GetStackDriftDetectionStatusResponse build() { return new GetStackDriftDetectionStatusResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackDriftDetectionStatusResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackDriftDetectionStatusResponseBody} extends {@link TeaModel} * * <p>GetStackDriftDetectionStatusResponseBody</p> */ public class GetStackDriftDetectionStatusResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("DriftDetectionId") private String driftDetectionId; @com.aliyun.core.annotation.NameInMap("DriftDetectionStatus") private String driftDetectionStatus; @com.aliyun.core.annotation.NameInMap("DriftDetectionStatusReason") private String driftDetectionStatusReason; @com.aliyun.core.annotation.NameInMap("DriftDetectionTime") private String driftDetectionTime; @com.aliyun.core.annotation.NameInMap("DriftedStackResourceCount") private Integer driftedStackResourceCount; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("StackDriftStatus") private String stackDriftStatus; @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; private GetStackDriftDetectionStatusResponseBody(Builder builder) { this.driftDetectionId = builder.driftDetectionId; this.driftDetectionStatus = builder.driftDetectionStatus; this.driftDetectionStatusReason = builder.driftDetectionStatusReason; this.driftDetectionTime = builder.driftDetectionTime; this.driftedStackResourceCount = builder.driftedStackResourceCount; this.requestId = builder.requestId; this.stackDriftStatus = builder.stackDriftStatus; this.stackId = builder.stackId; } public static Builder builder() { return new Builder(); } public static GetStackDriftDetectionStatusResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return driftDetectionId */ public String getDriftDetectionId() { return this.driftDetectionId; } /** * @return driftDetectionStatus */ public String getDriftDetectionStatus() { return this.driftDetectionStatus; } /** * @return driftDetectionStatusReason */ public String getDriftDetectionStatusReason() { return this.driftDetectionStatusReason; } /** * @return driftDetectionTime */ public String getDriftDetectionTime() { return this.driftDetectionTime; } /** * @return driftedStackResourceCount */ public Integer getDriftedStackResourceCount() { return this.driftedStackResourceCount; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return stackDriftStatus */ public String getStackDriftStatus() { return this.stackDriftStatus; } /** * @return stackId */ public String getStackId() { return this.stackId; } public static final class Builder { private String driftDetectionId; private String driftDetectionStatus; private String driftDetectionStatusReason; private String driftDetectionTime; private Integer driftedStackResourceCount; private String requestId; private String stackDriftStatus; private String stackId; private Builder() { } private Builder(GetStackDriftDetectionStatusResponseBody model) { this.driftDetectionId = model.driftDetectionId; this.driftDetectionStatus = model.driftDetectionStatus; this.driftDetectionStatusReason = model.driftDetectionStatusReason; this.driftDetectionTime = model.driftDetectionTime; this.driftedStackResourceCount = model.driftedStackResourceCount; this.requestId = model.requestId; this.stackDriftStatus = model.stackDriftStatus; this.stackId = model.stackId; } /** * <p>The ID of the drift detection operation.</p> * * <strong>example:</strong> * <p>a7044f0d-6f2e-4128-a307-4524ef88****</p> */ public Builder driftDetectionId(String driftDetectionId) { this.driftDetectionId = driftDetectionId; return this; } /** * <p>The drift detection status. Valid values:</p> * <ul> * <li>DETECTION_COMPLETE: The drift detection operation has been completed for all resources that support drift detection in the stack.</li> * <li>DETECTION_FAILED: The stack drift detection operation has failed for at least one resource in the stack.</li> * <li>DETECTION_IN_PROGRESS: The stack drift detection operation is in progress.</li> * </ul> * * <strong>example:</strong> * <p>DETECTION_COMPLETE</p> */ public Builder driftDetectionStatus(String driftDetectionStatus) { this.driftDetectionStatus = driftDetectionStatus; return this; } /** * <p>The reason why the stack drift detection operation has its current status.</p> * * <strong>example:</strong> * <p>Detect stack drift successfully</p> */ public Builder driftDetectionStatusReason(String driftDetectionStatusReason) { this.driftDetectionStatusReason = driftDetectionStatusReason; return this; } /** * <p>The time when the stack drift detection operation was initiated.</p> * * <strong>example:</strong> * <p>2020-02-27T07:47:47</p> */ public Builder driftDetectionTime(String driftDetectionTime) { this.driftDetectionTime = driftDetectionTime; return this; } /** * <p>The total number of stack resources that have drifted.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder driftedStackResourceCount(Integer driftedStackResourceCount) { this.driftedStackResourceCount = driftedStackResourceCount; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84B6E6F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The drift status of the stack. Valid values:</p> * <ul> * <li>DRIFTED: The actual configuration of the stack differs, or has drifted, from its expected template configuration. A stack is considered to have drifted if one or more of its resources have drifted.</li> * <li>NOT_CHECKED: Resource Orchestration Service (ROS) has not checked whether the actual configuration of the resource differs from its expected template configuration.</li> * <li>IN_SYNC: The current configuration of each supported resource matches its expected template configuration. A stack with no resources that support drift detection also has a status of IN_SYNC.</li> * </ul> * * <strong>example:</strong> * <p>DRIFTED</p> */ public Builder stackDriftStatus(String stackDriftStatus) { this.stackDriftStatus = stackDriftStatus; return this; } /** * <p>The ID of the stack.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf691****</p> */ public Builder stackId(String stackId) { this.stackId = stackId; return this; } public GetStackDriftDetectionStatusResponseBody build() { return new GetStackDriftDetectionStatusResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackGroupOperationRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackGroupOperationRequest} extends {@link RequestModel} * * <p>GetStackGroupOperationRequest</p> */ public class GetStackGroupOperationRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperationId") @com.aliyun.core.annotation.Validation(required = true) private String operationId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private GetStackGroupOperationRequest(Builder builder) { super(builder); this.operationId = builder.operationId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetStackGroupOperationRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return operationId */ public String getOperationId() { return this.operationId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetStackGroupOperationRequest, Builder> { private String operationId; private String regionId; private Builder() { super(); } private Builder(GetStackGroupOperationRequest request) { super(request); this.operationId = request.operationId; this.regionId = request.regionId; } /** * <p>The operation ID. You can call the <a href="https://help.aliyun.com/document_detail/151342.html">ListStackGroupOperations</a> operation to query the operation ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>6da106ca-1784-4a6f-a7e1-e723863d****</p> */ public Builder operationId(String operationId) { this.putQueryParameter("OperationId", operationId); this.operationId = operationId; return this; } /** * <p>The region ID of the stack group. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetStackGroupOperationRequest build() { return new GetStackGroupOperationRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackGroupOperationResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackGroupOperationResponse} extends {@link TeaModel} * * <p>GetStackGroupOperationResponse</p> */ public class GetStackGroupOperationResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetStackGroupOperationResponseBody body; private GetStackGroupOperationResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetStackGroupOperationResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetStackGroupOperationResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetStackGroupOperationResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetStackGroupOperationResponseBody body); @Override GetStackGroupOperationResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetStackGroupOperationResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetStackGroupOperationResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetStackGroupOperationResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetStackGroupOperationResponseBody body) { this.body = body; return this; } @Override public GetStackGroupOperationResponse build() { return new GetStackGroupOperationResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackGroupOperationResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackGroupOperationResponseBody} extends {@link TeaModel} * * <p>GetStackGroupOperationResponseBody</p> */ public class GetStackGroupOperationResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("StackGroupOperation") private StackGroupOperation stackGroupOperation; private GetStackGroupOperationResponseBody(Builder builder) { this.requestId = builder.requestId; this.stackGroupOperation = builder.stackGroupOperation; } public static Builder builder() { return new Builder(); } public static GetStackGroupOperationResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return stackGroupOperation */ public StackGroupOperation getStackGroupOperation() { return this.stackGroupOperation; } public static final class Builder { private String requestId; private StackGroupOperation stackGroupOperation; private Builder() { } private Builder(GetStackGroupOperationResponseBody model) { this.requestId = model.requestId; this.stackGroupOperation = model.stackGroupOperation; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>14A07460-EBE7-47CA-9757-12CC4761D47A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information about the stack group operation.</p> */ public Builder stackGroupOperation(StackGroupOperation stackGroupOperation) { this.stackGroupOperation = stackGroupOperation; return this; } public GetStackGroupOperationResponseBody build() { return new GetStackGroupOperationResponseBody(this); } } /** * * {@link GetStackGroupOperationResponseBody} extends {@link TeaModel} * * <p>GetStackGroupOperationResponseBody</p> */ public static class DeploymentTargets extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccountIds") private java.util.List<String> accountIds; @com.aliyun.core.annotation.NameInMap("RdFolderIds") private java.util.List<String> rdFolderIds; private DeploymentTargets(Builder builder) { this.accountIds = builder.accountIds; this.rdFolderIds = builder.rdFolderIds; } public static Builder builder() { return new Builder(); } public static DeploymentTargets create() { return builder().build(); } /** * @return accountIds */ public java.util.List<String> getAccountIds() { return this.accountIds; } /** * @return rdFolderIds */ public java.util.List<String> getRdFolderIds() { return this.rdFolderIds; } public static final class Builder { private java.util.List<String> accountIds; private java.util.List<String> rdFolderIds; private Builder() { } private Builder(DeploymentTargets model) { this.accountIds = model.accountIds; this.rdFolderIds = model.rdFolderIds; } /** * <p>The IDs of the members in the resource directory.</p> * <blockquote> * <p>This parameter is returned only if AccountIds is specified when the <a href="https://help.aliyun.com/document_detail/151716.html">UpdateStackInstances</a> operation is called to update stack instances.</p> * </blockquote> */ public Builder accountIds(java.util.List<String> accountIds) { this.accountIds = accountIds; return this; } /** * <p>The IDs of the folders in the resource directory.</p> */ public Builder rdFolderIds(java.util.List<String> rdFolderIds) { this.rdFolderIds = rdFolderIds; return this; } public DeploymentTargets build() { return new DeploymentTargets(this); } } } /** * * {@link GetStackGroupOperationResponseBody} extends {@link TeaModel} * * <p>GetStackGroupOperationResponseBody</p> */ public static class OperationPreferences extends TeaModel { @com.aliyun.core.annotation.NameInMap("FailureToleranceCount") private Integer failureToleranceCount; @com.aliyun.core.annotation.NameInMap("FailureTolerancePercentage") private Integer failureTolerancePercentage; @com.aliyun.core.annotation.NameInMap("MaxConcurrentCount") private Integer maxConcurrentCount; @com.aliyun.core.annotation.NameInMap("MaxConcurrentPercentage") private Integer maxConcurrentPercentage; @com.aliyun.core.annotation.NameInMap("RegionIdsOrder") private java.util.List<String> regionIdsOrder; private OperationPreferences(Builder builder) { this.failureToleranceCount = builder.failureToleranceCount; this.failureTolerancePercentage = builder.failureTolerancePercentage; this.maxConcurrentCount = builder.maxConcurrentCount; this.maxConcurrentPercentage = builder.maxConcurrentPercentage; this.regionIdsOrder = builder.regionIdsOrder; } public static Builder builder() { return new Builder(); } public static OperationPreferences create() { return builder().build(); } /** * @return failureToleranceCount */ public Integer getFailureToleranceCount() { return this.failureToleranceCount; } /** * @return failureTolerancePercentage */ public Integer getFailureTolerancePercentage() { return this.failureTolerancePercentage; } /** * @return maxConcurrentCount */ public Integer getMaxConcurrentCount() { return this.maxConcurrentCount; } /** * @return maxConcurrentPercentage */ public Integer getMaxConcurrentPercentage() { return this.maxConcurrentPercentage; } /** * @return regionIdsOrder */ public java.util.List<String> getRegionIdsOrder() { return this.regionIdsOrder; } public static final class Builder { private Integer failureToleranceCount; private Integer failureTolerancePercentage; private Integer maxConcurrentCount; private Integer maxConcurrentPercentage; private java.util.List<String> regionIdsOrder; private Builder() { } private Builder(OperationPreferences model) { this.failureToleranceCount = model.failureToleranceCount; this.failureTolerancePercentage = model.failureTolerancePercentage; this.maxConcurrentCount = model.maxConcurrentCount; this.maxConcurrentPercentage = model.maxConcurrentPercentage; this.regionIdsOrder = model.regionIdsOrder; } /** * <p>The number of accounts within which stack operation failures are allowed to occur in each region. If the value of this parameter is exceeded in a region, Resource Orchestration Service (ROS) stops the operation in the region. If the operation is stopped in one region, the operation is no longer performed in other regions.</p> * <p>Valid values: 0 to 20.</p> * <blockquote> * <p>Only one of FailureToleranceCount and FailureTolerancePercentage can be returned.</p> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder failureToleranceCount(Integer failureToleranceCount) { this.failureToleranceCount = failureToleranceCount; return this; } /** * <p>The percentage of the number of accounts within which stack operation failures are allowed to occur to the total number of accounts in each region. If the value of this parameter is exceeded in a region, ROS stops the operation in the region.</p> * <p>Valid values: 0 to 100.</p> * <blockquote> * <p>Only one of FailureToleranceCount and FailureTolerancePercentage can be returned.</p> * </blockquote> * * <strong>example:</strong> * <p>10</p> */ public Builder failureTolerancePercentage(Integer failureTolerancePercentage) { this.failureTolerancePercentage = failureTolerancePercentage; return this; } /** * <p>The maximum number of accounts within which stacks are deployed at the same time in each region.</p> * <p>Valid values: 1 to 20.</p> * <blockquote> * <p>Only one of MaxConcurrentCount and MaxConcurrentPercentage can be returned.</p> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder maxConcurrentCount(Integer maxConcurrentCount) { this.maxConcurrentCount = maxConcurrentCount; return this; } /** * <p>The percentage of the maximum number of accounts within which stacks are deployed at the same time to the total number of accounts in each region.</p> * <p>Valid values: 1 to 100.</p> * <blockquote> * <p>Only one of MaxConcurrentCount and MaxConcurrentPercentage can be returned.</p> * </blockquote> * * <strong>example:</strong> * <p>10</p> */ public Builder maxConcurrentPercentage(Integer maxConcurrentPercentage) { this.maxConcurrentPercentage = maxConcurrentPercentage; return this; } /** * <p>The regions in the order of operation execution.</p> */ public Builder regionIdsOrder(java.util.List<String> regionIdsOrder) { this.regionIdsOrder = regionIdsOrder; return this; } public OperationPreferences build() { return new OperationPreferences(this); } } } /** * * {@link GetStackGroupOperationResponseBody} extends {@link TeaModel} * * <p>GetStackGroupOperationResponseBody</p> */ public static class StackGroupDriftDetectionDetail extends TeaModel { @com.aliyun.core.annotation.NameInMap("CancelledStackInstancesCount") private Integer cancelledStackInstancesCount; @com.aliyun.core.annotation.NameInMap("DriftDetectionStatus") private String driftDetectionStatus; @com.aliyun.core.annotation.NameInMap("DriftDetectionTime") private String driftDetectionTime; @com.aliyun.core.annotation.NameInMap("DriftedStackInstancesCount") private Integer driftedStackInstancesCount; @com.aliyun.core.annotation.NameInMap("FailedStackInstancesCount") private Integer failedStackInstancesCount; @com.aliyun.core.annotation.NameInMap("InProgressStackInstancesCount") private Integer inProgressStackInstancesCount; @com.aliyun.core.annotation.NameInMap("InSyncStackInstancesCount") private Integer inSyncStackInstancesCount; @com.aliyun.core.annotation.NameInMap("StackGroupDriftStatus") private String stackGroupDriftStatus; @com.aliyun.core.annotation.NameInMap("TotalStackInstancesCount") private Integer totalStackInstancesCount; private StackGroupDriftDetectionDetail(Builder builder) { this.cancelledStackInstancesCount = builder.cancelledStackInstancesCount; this.driftDetectionStatus = builder.driftDetectionStatus; this.driftDetectionTime = builder.driftDetectionTime; this.driftedStackInstancesCount = builder.driftedStackInstancesCount; this.failedStackInstancesCount = builder.failedStackInstancesCount; this.inProgressStackInstancesCount = builder.inProgressStackInstancesCount; this.inSyncStackInstancesCount = builder.inSyncStackInstancesCount; this.stackGroupDriftStatus = builder.stackGroupDriftStatus; this.totalStackInstancesCount = builder.totalStackInstancesCount; } public static Builder builder() { return new Builder(); } public static StackGroupDriftDetectionDetail create() { return builder().build(); } /** * @return cancelledStackInstancesCount */ public Integer getCancelledStackInstancesCount() { return this.cancelledStackInstancesCount; } /** * @return driftDetectionStatus */ public String getDriftDetectionStatus() { return this.driftDetectionStatus; } /** * @return driftDetectionTime */ public String getDriftDetectionTime() { return this.driftDetectionTime; } /** * @return driftedStackInstancesCount */ public Integer getDriftedStackInstancesCount() { return this.driftedStackInstancesCount; } /** * @return failedStackInstancesCount */ public Integer getFailedStackInstancesCount() { return this.failedStackInstancesCount; } /** * @return inProgressStackInstancesCount */ public Integer getInProgressStackInstancesCount() { return this.inProgressStackInstancesCount; } /** * @return inSyncStackInstancesCount */ public Integer getInSyncStackInstancesCount() { return this.inSyncStackInstancesCount; } /** * @return stackGroupDriftStatus */ public String getStackGroupDriftStatus() { return this.stackGroupDriftStatus; } /** * @return totalStackInstancesCount */ public Integer getTotalStackInstancesCount() { return this.totalStackInstancesCount; } public static final class Builder { private Integer cancelledStackInstancesCount; private String driftDetectionStatus; private String driftDetectionTime; private Integer driftedStackInstancesCount; private Integer failedStackInstancesCount; private Integer inProgressStackInstancesCount; private Integer inSyncStackInstancesCount; private String stackGroupDriftStatus; private Integer totalStackInstancesCount; private Builder() { } private Builder(StackGroupDriftDetectionDetail model) { this.cancelledStackInstancesCount = model.cancelledStackInstancesCount; this.driftDetectionStatus = model.driftDetectionStatus; this.driftDetectionTime = model.driftDetectionTime; this.driftedStackInstancesCount = model.driftedStackInstancesCount; this.failedStackInstancesCount = model.failedStackInstancesCount; this.inProgressStackInstancesCount = model.inProgressStackInstancesCount; this.inSyncStackInstancesCount = model.inSyncStackInstancesCount; this.stackGroupDriftStatus = model.stackGroupDriftStatus; this.totalStackInstancesCount = model.totalStackInstancesCount; } /** * <p>The number of stack instances for which drift detection was canceled.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder cancelledStackInstancesCount(Integer cancelledStackInstancesCount) { this.cancelledStackInstancesCount = cancelledStackInstancesCount; return this; } /** * <p>The drift detection state.</p> * <p>Valid values:</p> * <ul> * <li>COMPLETED: Drift detection is performed on the stack group and all stack instances passed the drift detection.</li> * <li>FAILED: Drift detection is performed on the stack group. The number of stack instances that failed the drift detection exceeds the specified threshold.</li> * <li>PARTIAL_SUCCESS: Drift detection is performed on the stack group. The number of stack instances that failed the drift detection does not exceed the specified threshold.</li> * <li>IN_PROGRESS: Drift detection is being performed on the stack group.</li> * <li>STOPPED: Drift detection is canceled for the stack group.</li> * </ul> * * <strong>example:</strong> * <p>COMPLETED</p> */ public Builder driftDetectionStatus(String driftDetectionStatus) { this.driftDetectionStatus = driftDetectionStatus; return this; } /** * <p>The time when drift detection was performed.</p> * * <strong>example:</strong> * <p>2020-02-27T07:47:47</p> */ public Builder driftDetectionTime(String driftDetectionTime) { this.driftDetectionTime = driftDetectionTime; return this; } /** * <p>The number of stack instances that have drifted.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder driftedStackInstancesCount(Integer driftedStackInstancesCount) { this.driftedStackInstancesCount = driftedStackInstancesCount; return this; } /** * <p>The number of stack instances that failed drift detection.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder failedStackInstancesCount(Integer failedStackInstancesCount) { this.failedStackInstancesCount = failedStackInstancesCount; return this; } /** * <p>The number of stack instances on which drift detection was being performed.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder inProgressStackInstancesCount(Integer inProgressStackInstancesCount) { this.inProgressStackInstancesCount = inProgressStackInstancesCount; return this; } /** * <p>The number of stack instances that were being synchronized.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder inSyncStackInstancesCount(Integer inSyncStackInstancesCount) { this.inSyncStackInstancesCount = inSyncStackInstancesCount; return this; } /** * <p>The drift state of the stack group.</p> * <p>Valid values:</p> * <ul> * <li>DRIFTED: At least one stack instance in the stack group has drifted.</li> * <li>NOT_CHECKED: No successful drift detection is performed in the stack group.</li> * <li>IN_SYNC: All the stack instances in the stack group are being synchronized.</li> * </ul> * * <strong>example:</strong> * <p>DRIFTED</p> */ public Builder stackGroupDriftStatus(String stackGroupDriftStatus) { this.stackGroupDriftStatus = stackGroupDriftStatus; return this; } /** * <p>The number of stack instances.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder totalStackInstancesCount(Integer totalStackInstancesCount) { this.totalStackInstancesCount = totalStackInstancesCount; return this; } public StackGroupDriftDetectionDetail build() { return new StackGroupDriftDetectionDetail(this); } } } /** * * {@link GetStackGroupOperationResponseBody} extends {@link TeaModel} * * <p>GetStackGroupOperationResponseBody</p> */ public static class StackGroupOperation extends TeaModel { @com.aliyun.core.annotation.NameInMap("Action") private String action; @com.aliyun.core.annotation.NameInMap("AdministrationRoleName") private String administrationRoleName; @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("DeploymentTargets") private DeploymentTargets deploymentTargets; @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.NameInMap("ExecutionRoleName") private String executionRoleName; @com.aliyun.core.annotation.NameInMap("OperationDescription") private String operationDescription; @com.aliyun.core.annotation.NameInMap("OperationId") private String operationId; @com.aliyun.core.annotation.NameInMap("OperationPreferences") private OperationPreferences operationPreferences; @com.aliyun.core.annotation.NameInMap("RetainStacks") private Boolean retainStacks; @com.aliyun.core.annotation.NameInMap("StackGroupDriftDetectionDetail") private StackGroupDriftDetectionDetail stackGroupDriftDetectionDetail; @com.aliyun.core.annotation.NameInMap("StackGroupId") private String stackGroupId; @com.aliyun.core.annotation.NameInMap("StackGroupName") private String stackGroupName; @com.aliyun.core.annotation.NameInMap("Status") private String status; private StackGroupOperation(Builder builder) { this.action = builder.action; this.administrationRoleName = builder.administrationRoleName; this.createTime = builder.createTime; this.deploymentTargets = builder.deploymentTargets; this.endTime = builder.endTime; this.executionRoleName = builder.executionRoleName; this.operationDescription = builder.operationDescription; this.operationId = builder.operationId; this.operationPreferences = builder.operationPreferences; this.retainStacks = builder.retainStacks; this.stackGroupDriftDetectionDetail = builder.stackGroupDriftDetectionDetail; this.stackGroupId = builder.stackGroupId; this.stackGroupName = builder.stackGroupName; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static StackGroupOperation create() { return builder().build(); } /** * @return action */ public String getAction() { return this.action; } /** * @return administrationRoleName */ public String getAdministrationRoleName() { return this.administrationRoleName; } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return deploymentTargets */ public DeploymentTargets getDeploymentTargets() { return this.deploymentTargets; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return executionRoleName */ public String getExecutionRoleName() { return this.executionRoleName; } /** * @return operationDescription */ public String getOperationDescription() { return this.operationDescription; } /** * @return operationId */ public String getOperationId() { return this.operationId; } /** * @return operationPreferences */ public OperationPreferences getOperationPreferences() { return this.operationPreferences; } /** * @return retainStacks */ public Boolean getRetainStacks() { return this.retainStacks; } /** * @return stackGroupDriftDetectionDetail */ public StackGroupDriftDetectionDetail getStackGroupDriftDetectionDetail() { return this.stackGroupDriftDetectionDetail; } /** * @return stackGroupId */ public String getStackGroupId() { return this.stackGroupId; } /** * @return stackGroupName */ public String getStackGroupName() { return this.stackGroupName; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String action; private String administrationRoleName; private String createTime; private DeploymentTargets deploymentTargets; private String endTime; private String executionRoleName; private String operationDescription; private String operationId; private OperationPreferences operationPreferences; private Boolean retainStacks; private StackGroupDriftDetectionDetail stackGroupDriftDetectionDetail; private String stackGroupId; private String stackGroupName; private String status; private Builder() { } private Builder(StackGroupOperation model) { this.action = model.action; this.administrationRoleName = model.administrationRoleName; this.createTime = model.createTime; this.deploymentTargets = model.deploymentTargets; this.endTime = model.endTime; this.executionRoleName = model.executionRoleName; this.operationDescription = model.operationDescription; this.operationId = model.operationId; this.operationPreferences = model.operationPreferences; this.retainStacks = model.retainStacks; this.stackGroupDriftDetectionDetail = model.stackGroupDriftDetectionDetail; this.stackGroupId = model.stackGroupId; this.stackGroupName = model.stackGroupName; this.status = model.status; } /** * <p>The operation type.</p> * <p>Valid values:</p> * <ul> * <li>CREATE</li> * <li>UPDATE</li> * <li>DELETE</li> * <li>DETECT_DRIFT</li> * </ul> * * <strong>example:</strong> * <p>DELETE</p> */ public Builder action(String action) { this.action = action; return this; } /** * <p>The name of the RAM role that you specify for the administrator account when you create the self-managed stack group. ROS assumes the administrator role to perform operations. If this parameter is not specified, the default value AliyunROSStackGroupAdministrationRole is returned.</p> * * <strong>example:</strong> * <p>AliyunROSStackGroupAdministrationRole</p> */ public Builder administrationRoleName(String administrationRoleName) { this.administrationRoleName = administrationRoleName; return this; } /** * <p>The time when the operation was initiated.</p> * * <strong>example:</strong> * <p>2020-01-20T09:22:3</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The destinations to deploy stack instances when the stack is granted service-managed permissions.</p> */ public Builder deploymentTargets(DeploymentTargets deploymentTargets) { this.deploymentTargets = deploymentTargets; return this; } /** * <p>The time when the operation ended.</p> * * <strong>example:</strong> * <p>2020-01-20T09:22:4</p> */ public Builder endTime(String endTime) { this.endTime = endTime; return this; } /** * <p>The name of the RAM role that you specify for the execution account when you create the self-managed stack group. The administrator role AliyunROSStackGroupAdministrationRole assumes the execution role to perform operations. If this parameter is not specified, the default value AliyunROSStackGroupExecutionRole is returned.</p> * * <strong>example:</strong> * <p>AliyunROSStackGroupExecutionRole</p> */ public Builder executionRoleName(String executionRoleName) { this.executionRoleName = executionRoleName; return this; } /** * <p>The description of the operation.</p> * <blockquote> * <p>This parameter is returned only if OperationDescription is specified when the <a href="https://help.aliyun.com/document_detail/151338.html">CreateStackInstances</a> operation is called to create stack instances.</p> * </blockquote> * * <strong>example:</strong> * <p>Create stack instance in hangzhou</p> */ public Builder operationDescription(String operationDescription) { this.operationDescription = operationDescription; return this; } /** * <p>The operation ID.</p> * * <strong>example:</strong> * <p>6da106ca-1784-4a6f-a7e1-e723863d****</p> */ public Builder operationId(String operationId) { this.operationId = operationId; return this; } /** * <p>The operation settings.</p> */ public Builder operationPreferences(OperationPreferences operationPreferences) { this.operationPreferences = operationPreferences; return this; } /** * <p>Indicates whether stacks are retained when the associated stack instances are deleted. When you delete a stack instance, you can choose to delete or retain the stack with which the stack instance is associated.</p> * <p>Valid values:</p> * <ul> * <li>true: Stacks are retained when the associated stack instances are deleted.</li> * <li>false: Stacks are deleted when the associated stack instances are deleted. Proceed with caution.</li> * </ul> * <blockquote> * <p>This parameter is returned only if you delete stack instances.</p> * </blockquote> * * <strong>example:</strong> * <p>true</p> */ public Builder retainStacks(Boolean retainStacks) { this.retainStacks = retainStacks; return this; } /** * <p>The information about drift detection.</p> * <blockquote> * <p>This parameter is returned only if drift detection is performed.</p> * </blockquote> */ public Builder stackGroupDriftDetectionDetail(StackGroupDriftDetectionDetail stackGroupDriftDetectionDetail) { this.stackGroupDriftDetectionDetail = stackGroupDriftDetectionDetail; return this; } /** * <p>The ID of the stack group.</p> * * <strong>example:</strong> * <p>fd0ddef9-9540-4b42-a464-94f77835****</p> */ public Builder stackGroupId(String stackGroupId) { this.stackGroupId = stackGroupId; return this; } /** * <p>The name of the stack group.</p> * * <strong>example:</strong> * <p>MyStackGroup</p> */ public Builder stackGroupName(String stackGroupName) { this.stackGroupName = stackGroupName; return this; } /** * <p>The state of the operation.</p> * <p>Valid values:</p> * <ul> * <li>RUNNING</li> * <li>SUCCEEDED</li> * <li>FAILED</li> * <li>STOPPING</li> * <li>STOPPED</li> * </ul> * * <strong>example:</strong> * <p>SUCCEEDED</p> */ public Builder status(String status) { this.status = status; return this; } public StackGroupOperation build() { return new StackGroupOperation(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackGroupRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackGroupRequest} extends {@link RequestModel} * * <p>GetStackGroupRequest</p> */ public class GetStackGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackGroupId") private String stackGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackGroupName") private String stackGroupName; private GetStackGroupRequest(Builder builder) { super(builder); this.regionId = builder.regionId; this.stackGroupId = builder.stackGroupId; this.stackGroupName = builder.stackGroupName; } public static Builder builder() { return new Builder(); } public static GetStackGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return stackGroupId */ public String getStackGroupId() { return this.stackGroupId; } /** * @return stackGroupName */ public String getStackGroupName() { return this.stackGroupName; } public static final class Builder extends Request.Builder<GetStackGroupRequest, Builder> { private String regionId; private String stackGroupId; private String stackGroupName; private Builder() { super(); } private Builder(GetStackGroupRequest request) { super(request); this.regionId = request.regionId; this.stackGroupId = request.stackGroupId; this.stackGroupName = request.stackGroupName; } /** * <p>The name of the stack group. The name must be unique within a region.</p> * <p>The name can be up to 255 characters in length, and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.</p> * <blockquote> * <p> You must specify one of the StackGroupName and StackGroupId parameters.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>fd0ddef9-9540-4b42-a464-94f77835****</p> */ public Builder stackGroupId(String stackGroupId) { this.putQueryParameter("StackGroupId", stackGroupId); this.stackGroupId = stackGroupId; return this; } /** * <p>The ID of the stack group.</p> * <blockquote> * <p> You must specify one of the StackGroupName and StackGroupId parameters.</p> * </blockquote> * * <strong>example:</strong> * <p>MyStackGroup</p> */ public Builder stackGroupName(String stackGroupName) { this.putQueryParameter("StackGroupName", stackGroupName); this.stackGroupName = stackGroupName; return this; } @Override public GetStackGroupRequest build() { return new GetStackGroupRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackGroupResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackGroupResponse} extends {@link TeaModel} * * <p>GetStackGroupResponse</p> */ public class GetStackGroupResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetStackGroupResponseBody body; private GetStackGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetStackGroupResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetStackGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetStackGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetStackGroupResponseBody body); @Override GetStackGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetStackGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetStackGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetStackGroupResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetStackGroupResponseBody body) { this.body = body; return this; } @Override public GetStackGroupResponse build() { return new GetStackGroupResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackGroupResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackGroupResponseBody} extends {@link TeaModel} * * <p>GetStackGroupResponseBody</p> */ public class GetStackGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("StackGroup") private StackGroup stackGroup; private GetStackGroupResponseBody(Builder builder) { this.requestId = builder.requestId; this.stackGroup = builder.stackGroup; } public static Builder builder() { return new Builder(); } public static GetStackGroupResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return stackGroup */ public StackGroup getStackGroup() { return this.stackGroup; } public static final class Builder { private String requestId; private StackGroup stackGroup; private Builder() { } private Builder(GetStackGroupResponseBody model) { this.requestId = model.requestId; this.stackGroup = model.stackGroup; } /** * <p>The details of the stack group.</p> * * <strong>example:</strong> * <p>14A07460-EBE7-47CA-9757-12CC4761D47A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Details of the stack group.</p> */ public Builder stackGroup(StackGroup stackGroup) { this.stackGroup = stackGroup; return this; } public GetStackGroupResponseBody build() { return new GetStackGroupResponseBody(this); } } /** * * {@link GetStackGroupResponseBody} extends {@link TeaModel} * * <p>GetStackGroupResponseBody</p> */ public static class AutoDeployment extends TeaModel { @com.aliyun.core.annotation.NameInMap("Enabled") private Boolean enabled; @com.aliyun.core.annotation.NameInMap("RetainStacksOnAccountRemoval") private Boolean retainStacksOnAccountRemoval; private AutoDeployment(Builder builder) { this.enabled = builder.enabled; this.retainStacksOnAccountRemoval = builder.retainStacksOnAccountRemoval; } public static Builder builder() { return new Builder(); } public static AutoDeployment create() { return builder().build(); } /** * @return enabled */ public Boolean getEnabled() { return this.enabled; } /** * @return retainStacksOnAccountRemoval */ public Boolean getRetainStacksOnAccountRemoval() { return this.retainStacksOnAccountRemoval; } public static final class Builder { private Boolean enabled; private Boolean retainStacksOnAccountRemoval; private Builder() { } private Builder(AutoDeployment model) { this.enabled = model.enabled; this.retainStacksOnAccountRemoval = model.retainStacksOnAccountRemoval; } /** * <p>Indicates whether stacks in the member account are retained when the member account is deleted from the folder.</p> * <p>Valid values:</p> * <ul> * <li>true: The stacks are retained.</li> * <li>false: The stacks are deleted.</li> * </ul> * <blockquote> * <p> This parameter is returned only when the Enabled parameter is set to true.</p> * </blockquote> * * <strong>example:</strong> * <p>true</p> */ public Builder enabled(Boolean enabled) { this.enabled = enabled; return this; } /** * <p>The folder IDs of the resource directory. This parameter is used to deploy stack instances within all the accounts in the folders.</p> * <blockquote> * <p> This parameter is returned only when the PermissionModel parameter is set to SERVICE_MANAGED.</p> * </blockquote> * * <strong>example:</strong> * <p>true</p> */ public Builder retainStacksOnAccountRemoval(Boolean retainStacksOnAccountRemoval) { this.retainStacksOnAccountRemoval = retainStacksOnAccountRemoval; return this; } public AutoDeployment build() { return new AutoDeployment(this); } } } /** * * {@link GetStackGroupResponseBody} extends {@link TeaModel} * * <p>GetStackGroupResponseBody</p> */ public static class Parameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("ParameterKey") private String parameterKey; @com.aliyun.core.annotation.NameInMap("ParameterValue") private String parameterValue; private Parameters(Builder builder) { this.parameterKey = builder.parameterKey; this.parameterValue = builder.parameterValue; } public static Builder builder() { return new Builder(); } public static Parameters create() { return builder().build(); } /** * @return parameterKey */ public String getParameterKey() { return this.parameterKey; } /** * @return parameterValue */ public String getParameterValue() { return this.parameterValue; } public static final class Builder { private String parameterKey; private String parameterValue; private Builder() { } private Builder(Parameters model) { this.parameterKey = model.parameterKey; this.parameterValue = model.parameterValue; } /** * <p>The name of the parameter.</p> * * <strong>example:</strong> * <p>Amount</p> */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * <p>The value of the parameter.</p> * * <strong>example:</strong> * <p>12</p> */ public Builder parameterValue(String parameterValue) { this.parameterValue = parameterValue; return this; } public Parameters build() { return new Parameters(this); } } } /** * * {@link GetStackGroupResponseBody} extends {@link TeaModel} * * <p>GetStackGroupResponseBody</p> */ public static class StackGroupDriftDetectionDetail extends TeaModel { @com.aliyun.core.annotation.NameInMap("CancelledStackInstancesCount") private Integer cancelledStackInstancesCount; @com.aliyun.core.annotation.NameInMap("DriftDetectionStatus") private String driftDetectionStatus; @com.aliyun.core.annotation.NameInMap("DriftDetectionTime") private String driftDetectionTime; @com.aliyun.core.annotation.NameInMap("DriftedStackInstancesCount") private Integer driftedStackInstancesCount; @com.aliyun.core.annotation.NameInMap("FailedStackInstancesCount") private Integer failedStackInstancesCount; @com.aliyun.core.annotation.NameInMap("InProgressStackInstancesCount") private Integer inProgressStackInstancesCount; @com.aliyun.core.annotation.NameInMap("InSyncStackInstancesCount") private Integer inSyncStackInstancesCount; @com.aliyun.core.annotation.NameInMap("StackGroupDriftStatus") private String stackGroupDriftStatus; @com.aliyun.core.annotation.NameInMap("TotalStackInstancesCount") private Integer totalStackInstancesCount; private StackGroupDriftDetectionDetail(Builder builder) { this.cancelledStackInstancesCount = builder.cancelledStackInstancesCount; this.driftDetectionStatus = builder.driftDetectionStatus; this.driftDetectionTime = builder.driftDetectionTime; this.driftedStackInstancesCount = builder.driftedStackInstancesCount; this.failedStackInstancesCount = builder.failedStackInstancesCount; this.inProgressStackInstancesCount = builder.inProgressStackInstancesCount; this.inSyncStackInstancesCount = builder.inSyncStackInstancesCount; this.stackGroupDriftStatus = builder.stackGroupDriftStatus; this.totalStackInstancesCount = builder.totalStackInstancesCount; } public static Builder builder() { return new Builder(); } public static StackGroupDriftDetectionDetail create() { return builder().build(); } /** * @return cancelledStackInstancesCount */ public Integer getCancelledStackInstancesCount() { return this.cancelledStackInstancesCount; } /** * @return driftDetectionStatus */ public String getDriftDetectionStatus() { return this.driftDetectionStatus; } /** * @return driftDetectionTime */ public String getDriftDetectionTime() { return this.driftDetectionTime; } /** * @return driftedStackInstancesCount */ public Integer getDriftedStackInstancesCount() { return this.driftedStackInstancesCount; } /** * @return failedStackInstancesCount */ public Integer getFailedStackInstancesCount() { return this.failedStackInstancesCount; } /** * @return inProgressStackInstancesCount */ public Integer getInProgressStackInstancesCount() { return this.inProgressStackInstancesCount; } /** * @return inSyncStackInstancesCount */ public Integer getInSyncStackInstancesCount() { return this.inSyncStackInstancesCount; } /** * @return stackGroupDriftStatus */ public String getStackGroupDriftStatus() { return this.stackGroupDriftStatus; } /** * @return totalStackInstancesCount */ public Integer getTotalStackInstancesCount() { return this.totalStackInstancesCount; } public static final class Builder { private Integer cancelledStackInstancesCount; private String driftDetectionStatus; private String driftDetectionTime; private Integer driftedStackInstancesCount; private Integer failedStackInstancesCount; private Integer inProgressStackInstancesCount; private Integer inSyncStackInstancesCount; private String stackGroupDriftStatus; private Integer totalStackInstancesCount; private Builder() { } private Builder(StackGroupDriftDetectionDetail model) { this.cancelledStackInstancesCount = model.cancelledStackInstancesCount; this.driftDetectionStatus = model.driftDetectionStatus; this.driftDetectionTime = model.driftDetectionTime; this.driftedStackInstancesCount = model.driftedStackInstancesCount; this.failedStackInstancesCount = model.failedStackInstancesCount; this.inProgressStackInstancesCount = model.inProgressStackInstancesCount; this.inSyncStackInstancesCount = model.inSyncStackInstancesCount; this.stackGroupDriftStatus = model.stackGroupDriftStatus; this.totalStackInstancesCount = model.totalStackInstancesCount; } /** * <p>The number of stack instances that have drifted.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder cancelledStackInstancesCount(Integer cancelledStackInstancesCount) { this.cancelledStackInstancesCount = cancelledStackInstancesCount; return this; } /** * <p>The drift status of the stack group.</p> * <p>Valid values:</p> * <ul> * <li>DRIFTED: At least one stack instance in the stack group has drifted.</li> * <li>NOT_CHECKED: No drift detection is completed on the stack group.</li> * <li>IN_SYNC: All the stack instances in the stack group are being synchronized.</li> * </ul> * * <strong>example:</strong> * <p>COMPLETED</p> */ public Builder driftDetectionStatus(String driftDetectionStatus) { this.driftDetectionStatus = driftDetectionStatus; return this; } /** * <p>The number of stack instances.</p> * * <strong>example:</strong> * <p>2020-02-27T07:47:47</p> */ public Builder driftDetectionTime(String driftDetectionTime) { this.driftDetectionTime = driftDetectionTime; return this; } /** * <p>The ID of the resource group. This parameter is specified when you create the stack group.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder driftedStackInstancesCount(Integer driftedStackInstancesCount) { this.driftedStackInstancesCount = driftedStackInstancesCount; return this; } /** * <p>The status of drift detection on the stack group.</p> * <p>Valid values:</p> * <ul> * <li>COMPLETED: Drift detection is performed and completed on all stack instances.</li> * <li>FAILED: Drift detection is performed. The number of stack instances that failed the drift detection exceeds the specified threshold.</li> * <li>PARTIAL_SUCCESS: Drift detection is performed. The number of stack instances that failed the drift detection does not exceed the specified threshold.</li> * <li>IN_PROGRESS: Drift detection is being performed on the stack group.</li> * <li>STOPPED: Drift detection is canceled for the stack group.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder failedStackInstancesCount(Integer failedStackInstancesCount) { this.failedStackInstancesCount = failedStackInstancesCount; return this; } /** * <p>The number of stack instances that were being synchronized.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder inProgressStackInstancesCount(Integer inProgressStackInstancesCount) { this.inProgressStackInstancesCount = inProgressStackInstancesCount; return this; } /** * <p>The number of stack instances for which drift detection was canceled.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder inSyncStackInstancesCount(Integer inSyncStackInstancesCount) { this.inSyncStackInstancesCount = inSyncStackInstancesCount; return this; } /** * <p>The number of stack instances on which drift detection was being performed.</p> * * <strong>example:</strong> * <p>DRIFTED</p> */ public Builder stackGroupDriftStatus(String stackGroupDriftStatus) { this.stackGroupDriftStatus = stackGroupDriftStatus; return this; } /** * <p>The number of stack instances that failed drift detection.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder totalStackInstancesCount(Integer totalStackInstancesCount) { this.totalStackInstancesCount = totalStackInstancesCount; return this; } public StackGroupDriftDetectionDetail build() { return new StackGroupDriftDetectionDetail(this); } } } /** * * {@link GetStackGroupResponseBody} extends {@link TeaModel} * * <p>GetStackGroupResponseBody</p> */ public static class StackGroup extends TeaModel { @com.aliyun.core.annotation.NameInMap("AdministrationRoleName") private String administrationRoleName; @com.aliyun.core.annotation.NameInMap("AutoDeployment") private AutoDeployment autoDeployment; @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("ExecutionRoleName") private String executionRoleName; @com.aliyun.core.annotation.NameInMap("Parameters") private java.util.List<Parameters> parameters; @com.aliyun.core.annotation.NameInMap("PermissionModel") private String permissionModel; @com.aliyun.core.annotation.NameInMap("RdFolderIds") private java.util.List<String> rdFolderIds; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("StackGroupDriftDetectionDetail") private StackGroupDriftDetectionDetail stackGroupDriftDetectionDetail; @com.aliyun.core.annotation.NameInMap("StackGroupId") private String stackGroupId; @com.aliyun.core.annotation.NameInMap("StackGroupName") private String stackGroupName; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("TemplateBody") private String templateBody; @com.aliyun.core.annotation.NameInMap("TemplateContent") private String templateContent; @com.aliyun.core.annotation.NameInMap("UpdateTime") private String updateTime; private StackGroup(Builder builder) { this.administrationRoleName = builder.administrationRoleName; this.autoDeployment = builder.autoDeployment; this.createTime = builder.createTime; this.description = builder.description; this.executionRoleName = builder.executionRoleName; this.parameters = builder.parameters; this.permissionModel = builder.permissionModel; this.rdFolderIds = builder.rdFolderIds; this.resourceGroupId = builder.resourceGroupId; this.stackGroupDriftDetectionDetail = builder.stackGroupDriftDetectionDetail; this.stackGroupId = builder.stackGroupId; this.stackGroupName = builder.stackGroupName; this.status = builder.status; this.templateBody = builder.templateBody; this.templateContent = builder.templateContent; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static StackGroup create() { return builder().build(); } /** * @return administrationRoleName */ public String getAdministrationRoleName() { return this.administrationRoleName; } /** * @return autoDeployment */ public AutoDeployment getAutoDeployment() { return this.autoDeployment; } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return executionRoleName */ public String getExecutionRoleName() { return this.executionRoleName; } /** * @return parameters */ public java.util.List<Parameters> getParameters() { return this.parameters; } /** * @return permissionModel */ public String getPermissionModel() { return this.permissionModel; } /** * @return rdFolderIds */ public java.util.List<String> getRdFolderIds() { return this.rdFolderIds; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return stackGroupDriftDetectionDetail */ public StackGroupDriftDetectionDetail getStackGroupDriftDetectionDetail() { return this.stackGroupDriftDetectionDetail; } /** * @return stackGroupId */ public String getStackGroupId() { return this.stackGroupId; } /** * @return stackGroupName */ public String getStackGroupName() { return this.stackGroupName; } /** * @return status */ public String getStatus() { return this.status; } /** * @return templateBody */ public String getTemplateBody() { return this.templateBody; } /** * @return templateContent */ public String getTemplateContent() { return this.templateContent; } /** * @return updateTime */ public String getUpdateTime() { return this.updateTime; } public static final class Builder { private String administrationRoleName; private AutoDeployment autoDeployment; private String createTime; private String description; private String executionRoleName; private java.util.List<Parameters> parameters; private String permissionModel; private java.util.List<String> rdFolderIds; private String resourceGroupId; private StackGroupDriftDetectionDetail stackGroupDriftDetectionDetail; private String stackGroupId; private String stackGroupName; private String status; private String templateBody; private String templateContent; private String updateTime; private Builder() { } private Builder(StackGroup model) { this.administrationRoleName = model.administrationRoleName; this.autoDeployment = model.autoDeployment; this.createTime = model.createTime; this.description = model.description; this.executionRoleName = model.executionRoleName; this.parameters = model.parameters; this.permissionModel = model.permissionModel; this.rdFolderIds = model.rdFolderIds; this.resourceGroupId = model.resourceGroupId; this.stackGroupDriftDetectionDetail = model.stackGroupDriftDetectionDetail; this.stackGroupId = model.stackGroupId; this.stackGroupName = model.stackGroupName; this.status = model.status; this.templateBody = model.templateBody; this.templateContent = model.templateContent; this.updateTime = model.updateTime; } /** * <p>The parameters of the stack group.</p> * * <strong>example:</strong> * <p>AliyunROSStackGroupAdministrationRole</p> */ public Builder administrationRoleName(String administrationRoleName) { this.administrationRoleName = administrationRoleName; return this; } /** * <p>Indicates whether automatic deployment is enabled.</p> * <p>Valid values:</p> * <ul> * <li>true: Automatic deployment is enabled. If a member account is added to the folder to which the stack group belongs after automatic deployment is enabled, the stack group deploys its stack instances in the specified region where the added account is deployed. If the account is deleted from the folder, the stack instances in the specified region are deleted from the stack group.</li> * <li>false: Automatic deployment is disabled. After automatic deployment is disabled, the stack instances remain unchanged when the member account in the folder is changed.</li> * </ul> */ public Builder autoDeployment(AutoDeployment autoDeployment) { this.autoDeployment = autoDeployment; return this; } /** * CreateTime. */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The name of the stack group.</p> * * <strong>example:</strong> * <p>StackGroup Description</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The template body.</p> * * <strong>example:</strong> * <p>AliyunROSStackGroupExecutionRole</p> */ public Builder executionRoleName(String executionRoleName) { this.executionRoleName = executionRoleName; return this; } /** * <p>The key of the parameter.</p> */ public Builder parameters(java.util.List<Parameters> parameters) { this.parameters = parameters; return this; } /** * <p>The information about automatic deployment settings.</p> * <blockquote> * <p> This parameter is returned only when the PermissionModel parameter is set to SERVICE_MANAGED.</p> * </blockquote> * * <strong>example:</strong> * <p>SELF_MANAGED</p> */ public Builder permissionModel(String permissionModel) { this.permissionModel = permissionModel; return this; } /** * <p>The folder IDs of the resource directory. This parameter is used to deploy stack instances within all the accounts in the folders.</p> * <blockquote> * <p> This parameter is returned only when the PermissionModel parameter is set to SERVICE_MANAGED.</p> * </blockquote> */ public Builder rdFolderIds(java.util.List<String> rdFolderIds) { this.rdFolderIds = rdFolderIds; return this; } /** * <p>The permission model.</p> * <p>Valid values:</p> * <ul> * <li>SELF_MANAGED: the self-managed permission model</li> * <li>SERVICE_MANAGED: the service-managed permission model</li> * </ul> * <blockquote> * <p> For more information about the permission models of stack groups, see <a href="https://help.aliyun.com/document_detail/154578.html">Overview</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The time when drift detection was performed on the stack group.</p> */ public Builder stackGroupDriftDetectionDetail(StackGroupDriftDetectionDetail stackGroupDriftDetectionDetail) { this.stackGroupDriftDetectionDetail = stackGroupDriftDetectionDetail; return this; } /** * <p>The status of the stack group.</p> * <p>Valid values:</p> * <ul> * <li>ACTIVE</li> * <li>DELETED</li> * </ul> * * <strong>example:</strong> * <p>fd0ddef9-9540-4b42-a464-94f77835****</p> */ public Builder stackGroupId(String stackGroupId) { this.stackGroupId = stackGroupId; return this; } /** * <p>The name of the RAM role that is specified for the execution account when you create the self-managed stack group. The administrator role AliyunROSStackGroupAdministrationRole assumes the execution role. If this parameter is not specified, the default value AliyunROSStackGroupExecutionRole is returned.</p> * * <strong>example:</strong> * <p>MyStackGroup</p> */ public Builder stackGroupName(String stackGroupName) { this.stackGroupName = stackGroupName; return this; } /** * <p>The name of the RAM role that is specified for the administrator account in Resource Orchestration Service (ROS) when you create the self-managed stack group. If this parameter is not specified, the default value AliyunROSStackGroupAdministrationRole is returned.</p> * * <strong>example:</strong> * <p>ACTIVE</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The structure that contains the template body.</p> * <blockquote> * <p>We recommend that you use TemplateContent instead of TemplateBody.</p> * </blockquote> * * <strong>example:</strong> * <p>{&quot;ROSTemplateFormatVersion&quot;: &quot;2015-09-01&quot;}</p> */ public Builder templateBody(String templateBody) { this.templateBody = templateBody; return this; } /** * <p>The JSON-formatted structure that contains the template body. For more information, see <a href="https://help.aliyun.com/document_detail/28857.html">Template syntax</a>.</p> * * <strong>example:</strong> * <p>{ * &quot;ROSTemplateFormatVersion&quot;: &quot;2015-09-01&quot; * }</p> */ public Builder templateContent(String templateContent) { this.templateContent = templateContent; return this; } /** * UpdateTime. */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public StackGroup build() { return new StackGroup(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackInstanceRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackInstanceRequest} extends {@link RequestModel} * * <p>GetStackInstanceRequest</p> */ public class GetStackInstanceRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OutputOption") private String outputOption; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackGroupName") @com.aliyun.core.annotation.Validation(required = true) private String stackGroupName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackInstanceAccountId") @com.aliyun.core.annotation.Validation(required = true) private String stackInstanceAccountId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackInstanceRegionId") @com.aliyun.core.annotation.Validation(required = true) private String stackInstanceRegionId; private GetStackInstanceRequest(Builder builder) { super(builder); this.outputOption = builder.outputOption; this.regionId = builder.regionId; this.stackGroupName = builder.stackGroupName; this.stackInstanceAccountId = builder.stackInstanceAccountId; this.stackInstanceRegionId = builder.stackInstanceRegionId; } public static Builder builder() { return new Builder(); } public static GetStackInstanceRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return outputOption */ public String getOutputOption() { return this.outputOption; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return stackGroupName */ public String getStackGroupName() { return this.stackGroupName; } /** * @return stackInstanceAccountId */ public String getStackInstanceAccountId() { return this.stackInstanceAccountId; } /** * @return stackInstanceRegionId */ public String getStackInstanceRegionId() { return this.stackInstanceRegionId; } public static final class Builder extends Request.Builder<GetStackInstanceRequest, Builder> { private String outputOption; private String regionId; private String stackGroupName; private String stackInstanceAccountId; private String stackInstanceRegionId; private Builder() { super(); } private Builder(GetStackInstanceRequest request) { super(request); this.outputOption = request.outputOption; this.regionId = request.regionId; this.stackGroupName = request.stackGroupName; this.stackInstanceAccountId = request.stackInstanceAccountId; this.stackInstanceRegionId = request.stackInstanceRegionId; } /** * <p>Specifies whether to return the Outputs parameter. The Outputs parameter specifies the outputs of the stack. Valid values:</p> * <ul> * <li>Enabled: returns the Outputs parameter.</li> * <li>Disabled (default): does not return the Outputs parameter.</li> * </ul> * <blockquote> * <p> The Outputs parameter requires a long period of time to calculate. If you do not require the outputs of the stack, we recommend that you set OutputOption to Disabled to improve the response speed of the API operation.</p> * </blockquote> * * <strong>example:</strong> * <p>Disabled</p> */ public Builder outputOption(String outputOption) { this.putQueryParameter("OutputOption", outputOption); this.outputOption = outputOption; return this; } /** * <p>The region ID of the stack group. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The name of the stack group. The name must be unique within a region.<br>The name can be up to 255 characters in length, and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>MyStackGroup</p> */ public Builder stackGroupName(String stackGroupName) { this.putQueryParameter("StackGroupName", stackGroupName); this.stackGroupName = stackGroupName; return this; } /** * <p>The ID of the destination account to which the stack belongs.</p> * <ul> * <li>If the stack group is granted self-managed permissions, the stack belongs to an Alibaba Cloud account.</li> * <li>If the stack group is granted service-managed permissions, the stack belongs to a member in a resource directory.</li> * </ul> * <blockquote> * <p>For more information about the destination account, see <a href="https://help.aliyun.com/document_detail/154578.html">Overview</a>.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>151266687691****</p> */ public Builder stackInstanceAccountId(String stackInstanceAccountId) { this.putQueryParameter("StackInstanceAccountId", stackInstanceAccountId); this.stackInstanceAccountId = stackInstanceAccountId; return this; } /** * <p>The region ID of the stack.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-beijing</p> */ public Builder stackInstanceRegionId(String stackInstanceRegionId) { this.putQueryParameter("StackInstanceRegionId", stackInstanceRegionId); this.stackInstanceRegionId = stackInstanceRegionId; return this; } @Override public GetStackInstanceRequest build() { return new GetStackInstanceRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackInstanceResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackInstanceResponse} extends {@link TeaModel} * * <p>GetStackInstanceResponse</p> */ public class GetStackInstanceResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetStackInstanceResponseBody body; private GetStackInstanceResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetStackInstanceResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetStackInstanceResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetStackInstanceResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetStackInstanceResponseBody body); @Override GetStackInstanceResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetStackInstanceResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetStackInstanceResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetStackInstanceResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetStackInstanceResponseBody body) { this.body = body; return this; } @Override public GetStackInstanceResponse build() { return new GetStackInstanceResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackInstanceResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackInstanceResponseBody} extends {@link TeaModel} * * <p>GetStackInstanceResponseBody</p> */ public class GetStackInstanceResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("StackInstance") private StackInstance stackInstance; private GetStackInstanceResponseBody(Builder builder) { this.requestId = builder.requestId; this.stackInstance = builder.stackInstance; } public static Builder builder() { return new Builder(); } public static GetStackInstanceResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return stackInstance */ public StackInstance getStackInstance() { return this.stackInstance; } public static final class Builder { private String requestId; private StackInstance stackInstance; private Builder() { } private Builder(GetStackInstanceResponseBody model) { this.requestId = model.requestId; this.stackInstance = model.stackInstance; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>B8A6B693-82C8-419D-8796-DE99EC33CFF9</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information about the stack.</p> */ public Builder stackInstance(StackInstance stackInstance) { this.stackInstance = stackInstance; return this; } public GetStackInstanceResponseBody build() { return new GetStackInstanceResponseBody(this); } } /** * * {@link GetStackInstanceResponseBody} extends {@link TeaModel} * * <p>GetStackInstanceResponseBody</p> */ public static class ParameterOverrides extends TeaModel { @com.aliyun.core.annotation.NameInMap("ParameterKey") private String parameterKey; @com.aliyun.core.annotation.NameInMap("ParameterValue") private String parameterValue; private ParameterOverrides(Builder builder) { this.parameterKey = builder.parameterKey; this.parameterValue = builder.parameterValue; } public static Builder builder() { return new Builder(); } public static ParameterOverrides create() { return builder().build(); } /** * @return parameterKey */ public String getParameterKey() { return this.parameterKey; } /** * @return parameterValue */ public String getParameterValue() { return this.parameterValue; } public static final class Builder { private String parameterKey; private String parameterValue; private Builder() { } private Builder(ParameterOverrides model) { this.parameterKey = model.parameterKey; this.parameterValue = model.parameterValue; } /** * <p>The name of the parameter that is used to override a specific parameter.</p> * * <strong>example:</strong> * <p>Amount</p> */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * <p>The value of the parameter that is used to override a specific parameter.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder parameterValue(String parameterValue) { this.parameterValue = parameterValue; return this; } public ParameterOverrides build() { return new ParameterOverrides(this); } } } /** * * {@link GetStackInstanceResponseBody} extends {@link TeaModel} * * <p>GetStackInstanceResponseBody</p> */ public static class StackInstance extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccountId") private String accountId; @com.aliyun.core.annotation.NameInMap("DriftDetectionTime") private String driftDetectionTime; @com.aliyun.core.annotation.NameInMap("Outputs") private java.util.List<java.util.Map<String, ?>> outputs; @com.aliyun.core.annotation.NameInMap("ParameterOverrides") private java.util.List<ParameterOverrides> parameterOverrides; @com.aliyun.core.annotation.NameInMap("RdFolderId") private String rdFolderId; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("StackDriftStatus") private String stackDriftStatus; @com.aliyun.core.annotation.NameInMap("StackGroupId") private String stackGroupId; @com.aliyun.core.annotation.NameInMap("StackGroupName") private String stackGroupName; @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StatusReason") private String statusReason; private StackInstance(Builder builder) { this.accountId = builder.accountId; this.driftDetectionTime = builder.driftDetectionTime; this.outputs = builder.outputs; this.parameterOverrides = builder.parameterOverrides; this.rdFolderId = builder.rdFolderId; this.regionId = builder.regionId; this.stackDriftStatus = builder.stackDriftStatus; this.stackGroupId = builder.stackGroupId; this.stackGroupName = builder.stackGroupName; this.stackId = builder.stackId; this.status = builder.status; this.statusReason = builder.statusReason; } public static Builder builder() { return new Builder(); } public static StackInstance create() { return builder().build(); } /** * @return accountId */ public String getAccountId() { return this.accountId; } /** * @return driftDetectionTime */ public String getDriftDetectionTime() { return this.driftDetectionTime; } /** * @return outputs */ public java.util.List<java.util.Map<String, ?>> getOutputs() { return this.outputs; } /** * @return parameterOverrides */ public java.util.List<ParameterOverrides> getParameterOverrides() { return this.parameterOverrides; } /** * @return rdFolderId */ public String getRdFolderId() { return this.rdFolderId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return stackDriftStatus */ public String getStackDriftStatus() { return this.stackDriftStatus; } /** * @return stackGroupId */ public String getStackGroupId() { return this.stackGroupId; } /** * @return stackGroupName */ public String getStackGroupName() { return this.stackGroupName; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return statusReason */ public String getStatusReason() { return this.statusReason; } public static final class Builder { private String accountId; private String driftDetectionTime; private java.util.List<java.util.Map<String, ?>> outputs; private java.util.List<ParameterOverrides> parameterOverrides; private String rdFolderId; private String regionId; private String stackDriftStatus; private String stackGroupId; private String stackGroupName; private String stackId; private String status; private String statusReason; private Builder() { } private Builder(StackInstance model) { this.accountId = model.accountId; this.driftDetectionTime = model.driftDetectionTime; this.outputs = model.outputs; this.parameterOverrides = model.parameterOverrides; this.rdFolderId = model.rdFolderId; this.regionId = model.regionId; this.stackDriftStatus = model.stackDriftStatus; this.stackGroupId = model.stackGroupId; this.stackGroupName = model.stackGroupName; this.stackId = model.stackId; this.status = model.status; this.statusReason = model.statusReason; } /** * <p>The ID of the destination account to which the stack belongs.</p> * * <strong>example:</strong> * <p>151266687691****</p> */ public Builder accountId(String accountId) { this.accountId = accountId; return this; } /** * <p>The time when the most recent successful drift detection was performed on the stack group.</p> * <blockquote> * <p>This parameter is returned only if drift detection is performed on the stack group.</p> * </blockquote> * * <strong>example:</strong> * <p>2020-02-27T07:47:47</p> */ public Builder driftDetectionTime(String driftDetectionTime) { this.driftDetectionTime = driftDetectionTime; return this; } /** * <p>The outputs of the stack.</p> * <blockquote> * <p> This parameter is returned if OutputOption is set to Enabled.</p> * </blockquote> */ public Builder outputs(java.util.List<java.util.Map<String, ?>> outputs) { this.outputs = outputs; return this; } /** * <p>The parameters that are used to override specific parameters.</p> */ public Builder parameterOverrides(java.util.List<ParameterOverrides> parameterOverrides) { this.parameterOverrides = parameterOverrides; return this; } /** * <p>The ID of the folder in the resource directory.</p> * <blockquote> * <p>This parameter is returned only if the stack group is granted service-managed permissions.</p> * </blockquote> * * <strong>example:</strong> * <p>fd-4PvlVLOL8v</p> */ public Builder rdFolderId(String rdFolderId) { this.rdFolderId = rdFolderId; return this; } /** * <p>The region ID of the stack.</p> * * <strong>example:</strong> * <p>cn-beijing</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The state of the stack when the most recent successful drift detection was performed on the stack group.</p> * <p>Valid values:</p> * <ul> * <li>DRIFTED: The stack has drifted.</li> * <li>NOT_CHECKED: No successful drift detection is performed on the stack.</li> * <li>IN_SYNC: The stack is being synchronized.</li> * </ul> * <blockquote> * <p>This parameter is returned only if drift detection is performed on the stack group.</p> * </blockquote> * * <strong>example:</strong> * <p>IN_SYNC</p> */ public Builder stackDriftStatus(String stackDriftStatus) { this.stackDriftStatus = stackDriftStatus; return this; } /** * <p>The ID of the stack group.</p> * * <strong>example:</strong> * <p>fd0ddef9-9540-4b42-a464-94f77835****</p> */ public Builder stackGroupId(String stackGroupId) { this.stackGroupId = stackGroupId; return this; } /** * <p>The name of the stack group.</p> * * <strong>example:</strong> * <p>MyStackGroup</p> */ public Builder stackGroupName(String stackGroupName) { this.stackGroupName = stackGroupName; return this; } /** * <p>The stack ID.</p> * <blockquote> * <p>This parameter is returned only if the stack is in the CURRENT state.</p> * </blockquote> * * <strong>example:</strong> * <p>35ad60e3-6a92-42d8-8812-f0700d45****</p> */ public Builder stackId(String stackId) { this.stackId = stackId; return this; } /** * <p>The state of the stack.</p> * <p>Valid values:</p> * <ul> * <li><p>CURRENT: The stack is up-to-date with the stack group.</p> * </li> * <li><p>OUTDATED: The stack is not up-to-date with the stack group. Stacks are in the OUTDATED state due to the following possible reasons:</p> * <ul> * <li>When the CreateStackInstances operation is called to create stacks, the stacks fail to be created.</li> * <li>When the UpdateStackInstances or UpdateStackGroup operation is called to update stacks, the stacks fail to be updated, or only specific stacks are updated.</li> * <li>The creation or update operation is not complete.</li> * </ul> * </li> * </ul> * * <strong>example:</strong> * <p>CURRENT</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The reason why the stack instance is in the OUTDATED state.</p> * <blockquote> * <p>This parameter is returned only if the stack instance is in the OUTDATED state.</p> * </blockquote> * * <strong>example:</strong> * <p>User initiated stop</p> */ public Builder statusReason(String statusReason) { this.statusReason = statusReason; return this; } public StackInstance build() { return new StackInstance(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackPolicyRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackPolicyRequest} extends {@link RequestModel} * * <p>GetStackPolicyRequest</p> */ public class GetStackPolicyRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackId") @com.aliyun.core.annotation.Validation(required = true) private String stackId; private GetStackPolicyRequest(Builder builder) { super(builder); this.regionId = builder.regionId; this.stackId = builder.stackId; } public static Builder builder() { return new Builder(); } public static GetStackPolicyRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return stackId */ public String getStackId() { return this.stackId; } public static final class Builder extends Request.Builder<GetStackPolicyRequest, Builder> { private String regionId; private String stackId; private Builder() { super(); } private Builder(GetStackPolicyRequest request) { super(request); this.regionId = request.regionId; this.stackId = request.stackId; } /** * <p>The region ID of the stack. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the stack.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf691****</p> */ public Builder stackId(String stackId) { this.putQueryParameter("StackId", stackId); this.stackId = stackId; return this; } @Override public GetStackPolicyRequest build() { return new GetStackPolicyRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackPolicyResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackPolicyResponse} extends {@link TeaModel} * * <p>GetStackPolicyResponse</p> */ public class GetStackPolicyResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetStackPolicyResponseBody body; private GetStackPolicyResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetStackPolicyResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetStackPolicyResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetStackPolicyResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetStackPolicyResponseBody body); @Override GetStackPolicyResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetStackPolicyResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetStackPolicyResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetStackPolicyResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetStackPolicyResponseBody body) { this.body = body; return this; } @Override public GetStackPolicyResponse build() { return new GetStackPolicyResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackPolicyResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackPolicyResponseBody} extends {@link TeaModel} * * <p>GetStackPolicyResponseBody</p> */ public class GetStackPolicyResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("StackPolicyBody") private java.util.Map<String, ?> stackPolicyBody; private GetStackPolicyResponseBody(Builder builder) { this.requestId = builder.requestId; this.stackPolicyBody = builder.stackPolicyBody; } public static Builder builder() { return new Builder(); } public static GetStackPolicyResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return stackPolicyBody */ public java.util.Map<String, ?> getStackPolicyBody() { return this.stackPolicyBody; } public static final class Builder { private String requestId; private java.util.Map<String, ?> stackPolicyBody; private Builder() { } private Builder(GetStackPolicyResponseBody model) { this.requestId = model.requestId; this.stackPolicyBody = model.stackPolicyBody; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84B6E6F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.</p> * * <strong>example:</strong> * <p>{&quot;Statement&quot;: [{&quot;Action&quot;: &quot;Update:<em>&quot;, &quot;Effect&quot;: &quot;Allow&quot;,&quot;Principal&quot;: &quot;</em>&quot;,&quot;Resource&quot;: &quot;*&quot;}]}</p> */ public Builder stackPolicyBody(java.util.Map<String, ?> stackPolicyBody) { this.stackPolicyBody = stackPolicyBody; return this; } public GetStackPolicyResponseBody build() { return new GetStackPolicyResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackRequest} extends {@link RequestModel} * * <p>GetStackRequest</p> */ public class GetStackRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LogOption") private String logOption; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OutputOption") private String outputOption; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ShowResourceProgress") private String showResourceProgress; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackId") @com.aliyun.core.annotation.Validation(required = true) private String stackId; private GetStackRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.logOption = builder.logOption; this.outputOption = builder.outputOption; this.regionId = builder.regionId; this.showResourceProgress = builder.showResourceProgress; this.stackId = builder.stackId; } public static Builder builder() { return new Builder(); } public static GetStackRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return logOption */ public String getLogOption() { return this.logOption; } /** * @return outputOption */ public String getOutputOption() { return this.outputOption; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return showResourceProgress */ public String getShowResourceProgress() { return this.showResourceProgress; } /** * @return stackId */ public String getStackId() { return this.stackId; } public static final class Builder extends Request.Builder<GetStackRequest, Builder> { private String clientToken; private String logOption; private String outputOption; private String regionId; private String showResourceProgress; private String stackId; private Builder() { super(); } private Builder(GetStackRequest request) { super(request); this.clientToken = request.clientToken; this.logOption = request.logOption; this.outputOption = request.outputOption; this.regionId = request.regionId; this.showResourceProgress = request.showResourceProgress; this.stackId = request.stackId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests.<br>The token can be up to 64 characters in length.<br>For more information, see <a href="https://help.aliyun.com/document_detail/134212.html">Ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-42665544****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The option for returning logs. Valid values:</p> * <ul> * <li>None: does not return logs.</li> * <li>Stack (default): returns the logs of the stack.</li> * <li>Resource: returns the logs of resources in the stack.</li> * <li>All: returns all logs.</li> * </ul> * * <strong>example:</strong> * <p>Stack</p> */ public Builder logOption(String logOption) { this.putQueryParameter("LogOption", logOption); this.logOption = logOption; return this; } /** * <p>Specifies whether to return Outputs. Valid values:</p> * <ul> * <li>Enabled (default)</li> * <li>Disabled</li> * </ul> * <blockquote> * <p> The Outputs parameter requires a long period of time to calculate. If you do not require Outputs of the stack, we recommend that you set OutputOption to Disabled to improve the response speed of the GetStack operation.</p> * </blockquote> * * <strong>example:</strong> * <p>Disabled</p> */ public Builder outputOption(String outputOption) { this.putQueryParameter("OutputOption", outputOption); this.outputOption = outputOption; return this; } /** * <p>The region ID of the stack. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>Specifies whether to return information about ResourceProgress. Valid values:</p> * <ul> * <li>Disabled (default): does not return information about ResourceProgress.</li> * <li>PercentageOnly: returns StackOperationProgress and StackActionProgress of ResourceProgress.</li> * </ul> * <blockquote> * <p> ROS and Terraform stacks are supported. Creation, resumed creation, update, deletion, import, and rollback operations on stacks are supported.</p> * </blockquote> * <ul> * <li>EnabledIfCreateStack (not recommend): returns *Count and InProgressResourceDetails of ResourceProgress only during a stack creation operation.</li> * </ul> * <blockquote> * <p> During a creation operation, a stack is in one of the following states: CREATE_IN_PROGRESS, CREATE_COMPLETE, CREATE_FAILED, CREATE_ROLLBACK_IN_PROGRESS, CREATE_ROLLBACK_COMPLETE, and CREATE_ROLLBACK_FAILED.</p> * </blockquote> * * <strong>example:</strong> * <p>Disabled</p> */ public Builder showResourceProgress(String showResourceProgress) { this.putQueryParameter("ShowResourceProgress", showResourceProgress); this.showResourceProgress = showResourceProgress; return this; } /** * <p>The stack ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>c754d2a4-28f1-46df-b557-9586173a****</p> */ public Builder stackId(String stackId) { this.putQueryParameter("StackId", stackId); this.stackId = stackId; return this; } @Override public GetStackRequest build() { return new GetStackRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackResourceRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackResourceRequest} extends {@link RequestModel} * * <p>GetStackResourceRequest</p> */ public class GetStackResourceRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LogicalResourceId") @com.aliyun.core.annotation.Validation(required = true) private String logicalResourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceAttributes") private java.util.List<String> resourceAttributes; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ShowResourceAttributes") private Boolean showResourceAttributes; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackId") @com.aliyun.core.annotation.Validation(required = true) private String stackId; private GetStackResourceRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.logicalResourceId = builder.logicalResourceId; this.regionId = builder.regionId; this.resourceAttributes = builder.resourceAttributes; this.showResourceAttributes = builder.showResourceAttributes; this.stackId = builder.stackId; } public static Builder builder() { return new Builder(); } public static GetStackResourceRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return logicalResourceId */ public String getLogicalResourceId() { return this.logicalResourceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceAttributes */ public java.util.List<String> getResourceAttributes() { return this.resourceAttributes; } /** * @return showResourceAttributes */ public Boolean getShowResourceAttributes() { return this.showResourceAttributes; } /** * @return stackId */ public String getStackId() { return this.stackId; } public static final class Builder extends Request.Builder<GetStackResourceRequest, Builder> { private String clientToken; private String logicalResourceId; private String regionId; private java.util.List<String> resourceAttributes; private Boolean showResourceAttributes; private String stackId; private Builder() { super(); } private Builder(GetStackResourceRequest request) { super(request); this.clientToken = request.clientToken; this.logicalResourceId = request.logicalResourceId; this.regionId = request.regionId; this.resourceAttributes = request.resourceAttributes; this.showResourceAttributes = request.showResourceAttributes; this.stackId = request.stackId; } /** * <p>Specifies whether to query the resource properties. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-42665544****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The name of resource property N that you want to query.</p> * <blockquote> * <p> Maximum value of N: 20.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>WebServer</p> */ public Builder logicalResourceId(String logicalResourceId) { this.putQueryParameter("LogicalResourceId", logicalResourceId); this.logicalResourceId = logicalResourceId; return this; } /** * <p>The logical ID of the resource defined in the template.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The status of the resource. Valid values:</p> * <ul> * <li>CREATE_COMPLETE</li> * <li>CREATE_FAILED</li> * <li>CREATE_IN_PROGRESS</li> * <li>UPDATE_IN_PROGRESS</li> * <li>UPDATE_FAILED</li> * <li>UPDATE_COMPLETE</li> * <li>DELETE_IN_PROGRESS</li> * <li>DELETE_FAILED</li> * <li>CHECK_IN_PROGRESS</li> * <li>CHECK_FAILED</li> * <li>CHECK_COMPLETE</li> * <li>IMPORT_IN_PROGRESS</li> * <li>IMPORT_FAILED</li> * <li>IMPORT_COMPLETE</li> * </ul> */ public Builder resourceAttributes(java.util.List<String> resourceAttributes) { this.putQueryParameter("ResourceAttributes", resourceAttributes); this.resourceAttributes = resourceAttributes; return this; } /** * <p>The name of resource property N that you want to query.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder showResourceAttributes(Boolean showResourceAttributes) { this.putQueryParameter("ShowResourceAttributes", showResourceAttributes); this.showResourceAttributes = showResourceAttributes; return this; } /** * <p>The ID of the region to which the stack belongs. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf691****</p> */ public Builder stackId(String stackId) { this.putQueryParameter("StackId", stackId); this.stackId = stackId; return this; } @Override public GetStackResourceRequest build() { return new GetStackResourceRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackResourceResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackResourceResponse} extends {@link TeaModel} * * <p>GetStackResourceResponse</p> */ public class GetStackResourceResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetStackResourceResponseBody body; private GetStackResourceResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetStackResourceResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetStackResourceResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetStackResourceResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetStackResourceResponseBody body); @Override GetStackResourceResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetStackResourceResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetStackResourceResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetStackResourceResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetStackResourceResponseBody body) { this.body = body; return this; } @Override public GetStackResourceResponse build() { return new GetStackResourceResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackResourceResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackResourceResponseBody} extends {@link TeaModel} * * <p>GetStackResourceResponseBody</p> */ public class GetStackResourceResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DriftDetectionTime") private String driftDetectionTime; @com.aliyun.core.annotation.NameInMap("LogicalResourceId") private String logicalResourceId; @com.aliyun.core.annotation.NameInMap("Metadata") private java.util.Map<String, ?> metadata; @com.aliyun.core.annotation.NameInMap("ModuleInfo") private ModuleInfo moduleInfo; @com.aliyun.core.annotation.NameInMap("PhysicalResourceId") private String physicalResourceId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceAttributes") private java.util.List<java.util.Map<String, ?>> resourceAttributes; @com.aliyun.core.annotation.NameInMap("ResourceDriftStatus") private String resourceDriftStatus; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; @com.aliyun.core.annotation.NameInMap("StackName") private String stackName; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StatusReason") private String statusReason; @com.aliyun.core.annotation.NameInMap("UpdateTime") private String updateTime; private GetStackResourceResponseBody(Builder builder) { this.createTime = builder.createTime; this.description = builder.description; this.driftDetectionTime = builder.driftDetectionTime; this.logicalResourceId = builder.logicalResourceId; this.metadata = builder.metadata; this.moduleInfo = builder.moduleInfo; this.physicalResourceId = builder.physicalResourceId; this.requestId = builder.requestId; this.resourceAttributes = builder.resourceAttributes; this.resourceDriftStatus = builder.resourceDriftStatus; this.resourceType = builder.resourceType; this.stackId = builder.stackId; this.stackName = builder.stackName; this.status = builder.status; this.statusReason = builder.statusReason; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static GetStackResourceResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return driftDetectionTime */ public String getDriftDetectionTime() { return this.driftDetectionTime; } /** * @return logicalResourceId */ public String getLogicalResourceId() { return this.logicalResourceId; } /** * @return metadata */ public java.util.Map<String, ?> getMetadata() { return this.metadata; } /** * @return moduleInfo */ public ModuleInfo getModuleInfo() { return this.moduleInfo; } /** * @return physicalResourceId */ public String getPhysicalResourceId() { return this.physicalResourceId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceAttributes */ public java.util.List<java.util.Map<String, ?>> getResourceAttributes() { return this.resourceAttributes; } /** * @return resourceDriftStatus */ public String getResourceDriftStatus() { return this.resourceDriftStatus; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return stackName */ public String getStackName() { return this.stackName; } /** * @return status */ public String getStatus() { return this.status; } /** * @return statusReason */ public String getStatusReason() { return this.statusReason; } /** * @return updateTime */ public String getUpdateTime() { return this.updateTime; } public static final class Builder { private String createTime; private String description; private String driftDetectionTime; private String logicalResourceId; private java.util.Map<String, ?> metadata; private ModuleInfo moduleInfo; private String physicalResourceId; private String requestId; private java.util.List<java.util.Map<String, ?>> resourceAttributes; private String resourceDriftStatus; private String resourceType; private String stackId; private String stackName; private String status; private String statusReason; private String updateTime; private Builder() { } private Builder(GetStackResourceResponseBody model) { this.createTime = model.createTime; this.description = model.description; this.driftDetectionTime = model.driftDetectionTime; this.logicalResourceId = model.logicalResourceId; this.metadata = model.metadata; this.moduleInfo = model.moduleInfo; this.physicalResourceId = model.physicalResourceId; this.requestId = model.requestId; this.resourceAttributes = model.resourceAttributes; this.resourceDriftStatus = model.resourceDriftStatus; this.resourceType = model.resourceType; this.stackId = model.stackId; this.stackName = model.stackName; this.status = model.status; this.statusReason = model.statusReason; this.updateTime = model.updateTime; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>2019-08-01T06:01:23</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The reason why the resource is in its current state.</p> * * <strong>example:</strong> * <p>no description</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The ID of the stack.</p> * * <strong>example:</strong> * <p>2020-02-27T07:47:47</p> */ public Builder driftDetectionTime(String driftDetectionTime) { this.driftDetectionTime = driftDetectionTime; return this; } /** * <p>The time when the resource was updated.</p> * <p>The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>WebServer</p> */ public Builder logicalResourceId(String logicalResourceId) { this.logicalResourceId = logicalResourceId; return this; } /** * <p>The list of the resource properties.</p> * * <strong>example:</strong> * <p>{&quot;key&quot;: &quot;value&quot;}</p> */ public Builder metadata(java.util.Map<String, ?> metadata) { this.metadata = metadata; return this; } /** * <p>The information about the modules from which the resource is created. This parameter is returned only if the resource is created from modules.</p> */ public Builder moduleInfo(ModuleInfo moduleInfo) { this.moduleInfo = moduleInfo; return this; } /** * <p>The metadata.</p> * * <strong>example:</strong> * <p>d04af923-e6b7-4272-aeaa-47ec9777****</p> */ public Builder physicalResourceId(String physicalResourceId) { this.physicalResourceId = physicalResourceId; return this; } /** * <p>The physical ID of the resource.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84B6E6</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The status of the resource in the last successful drift detection. Valid values:</p> * <ul> * <li>DELETED: The actual configuration of the resource differs from its expected template configuration because the resource is deleted.</li> * <li>MODIFIED: The actual configuration of the resource differs from its expected template configuration.</li> * <li>NOT_CHECKED: ROS has not checked whether the actual configuration of the resource differs from its expected template configuration.</li> * <li>IN_SYNC: The actual configuration of the resource matches its expected template configuration.</li> * </ul> */ public Builder resourceAttributes(java.util.List<java.util.Map<String, ?>> resourceAttributes) { this.resourceAttributes = resourceAttributes; return this; } /** * <p>The time when the last successful drift detection was performed on the stack.</p> * * <strong>example:</strong> * <p>IN_SYNC</p> */ public Builder resourceDriftStatus(String resourceDriftStatus) { this.resourceDriftStatus = resourceDriftStatus; return this; } /** * <p>The logical ID of the resource defined in the template.</p> * * <strong>example:</strong> * <p>ALIYUN::ROS::WaitConditionHandle</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The ID of the stack.</p> * * <strong>example:</strong> * <p>efdf5c10-96a5-4fd7-ab89-68e7baa2****</p> */ public Builder stackId(String stackId) { this.stackId = stackId; return this; } /** * <p>The name of the stack.</p> * * <strong>example:</strong> * <p>test-describe-resource</p> */ public Builder stackName(String stackName) { this.stackName = stackName; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>CREATE_COMPLETE</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The time when the resource was created.</p> * <p>The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>state changed</p> */ public Builder statusReason(String statusReason) { this.statusReason = statusReason; return this; } /** * <p>The name of the stack.</p> * <p>The name can be up to 255 characters in length, and can contain digits, letters, hyphens (-), and underscores (_). The name must start with a digit or letter.</p> * * <strong>example:</strong> * <p>2019-08-01T06:01:29</p> */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public GetStackResourceResponseBody build() { return new GetStackResourceResponseBody(this); } } /** * * {@link GetStackResourceResponseBody} extends {@link TeaModel} * * <p>GetStackResourceResponseBody</p> */ public static class ModuleInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("LogicalIdHierarchy") private String logicalIdHierarchy; @com.aliyun.core.annotation.NameInMap("TypeHierarchy") private String typeHierarchy; private ModuleInfo(Builder builder) { this.logicalIdHierarchy = builder.logicalIdHierarchy; this.typeHierarchy = builder.typeHierarchy; } public static Builder builder() { return new Builder(); } public static ModuleInfo create() { return builder().build(); } /** * @return logicalIdHierarchy */ public String getLogicalIdHierarchy() { return this.logicalIdHierarchy; } /** * @return typeHierarchy */ public String getTypeHierarchy() { return this.typeHierarchy; } public static final class Builder { private String logicalIdHierarchy; private String typeHierarchy; private Builder() { } private Builder(ModuleInfo model) { this.logicalIdHierarchy = model.logicalIdHierarchy; this.typeHierarchy = model.typeHierarchy; } /** * <p>The concatenated logical IDs of one or more modules that contain the resource. The modules are listed from the outermost layer and separated by forward slashes (<code>/</code>).</p> * <p>In the following example, the resource is created from Module B nested within Parent Module A:</p> * <p><code>moduleA/moduleB</code></p> * * <strong>example:</strong> * <p>moduleA/moduleB</p> */ public Builder logicalIdHierarchy(String logicalIdHierarchy) { this.logicalIdHierarchy = logicalIdHierarchy; return this; } /** * <p>The concatenated types of one or more modules that contain the resource. The module types are listed from the outermost layer and separated by forward slashes (<code>/</code>).</p> * <p>In the following example, the resource is created from a module of the <code>MODULE::ROS::Child::Example</code> type that is nested within a parent module of the <code>MODULE::ROS::Parent::Example</code> type:</p> * <p><code>MODULE::ROS::Parent::Example/MODULE::ROS::Child::Example</code></p> * * <strong>example:</strong> * <p>MODULE::ROS::Parent::Example/MODULE::ROS::Child::Example</p> */ public Builder typeHierarchy(String typeHierarchy) { this.typeHierarchy = typeHierarchy; return this; } public ModuleInfo build() { return new ModuleInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackResponse} extends {@link TeaModel} * * <p>GetStackResponse</p> */ public class GetStackResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetStackResponseBody body; private GetStackResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetStackResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetStackResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetStackResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetStackResponseBody body); @Override GetStackResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetStackResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetStackResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetStackResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetStackResponseBody body) { this.body = body; return this; } @Override public GetStackResponse build() { return new GetStackResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetStackResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetStackResponseBody} extends {@link TeaModel} * * <p>GetStackResponseBody</p> */ public class GetStackResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CheckedStackResourceCount") private Integer checkedStackResourceCount; @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("DeletionProtection") private String deletionProtection; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DisableRollback") private Boolean disableRollback; @com.aliyun.core.annotation.NameInMap("DriftDetectionTime") private String driftDetectionTime; @com.aliyun.core.annotation.NameInMap("Interface") private String _interface; @com.aliyun.core.annotation.NameInMap("Log") private Log log; @com.aliyun.core.annotation.NameInMap("NotCheckedStackResourceCount") private Integer notCheckedStackResourceCount; @com.aliyun.core.annotation.NameInMap("NotificationURLs") private java.util.List<String> notificationURLs; @com.aliyun.core.annotation.NameInMap("OperationInfo") private OperationInfo operationInfo; @com.aliyun.core.annotation.NameInMap("OrderIds") private java.util.List<String> orderIds; @com.aliyun.core.annotation.NameInMap("Outputs") private java.util.List<java.util.Map<String, ?>> outputs; @com.aliyun.core.annotation.NameInMap("Parameters") private java.util.List<Parameters> parameters; @com.aliyun.core.annotation.NameInMap("ParentStackId") private String parentStackId; @com.aliyun.core.annotation.NameInMap("RamRoleName") private String ramRoleName; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("ResourceProgress") private ResourceProgress resourceProgress; @com.aliyun.core.annotation.NameInMap("RollbackFailedRootReason") private String rollbackFailedRootReason; @com.aliyun.core.annotation.NameInMap("RootStackId") private String rootStackId; @com.aliyun.core.annotation.NameInMap("ServiceManaged") private Boolean serviceManaged; @com.aliyun.core.annotation.NameInMap("ServiceName") private String serviceName; @com.aliyun.core.annotation.NameInMap("StackDriftStatus") private String stackDriftStatus; @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; @com.aliyun.core.annotation.NameInMap("StackName") private String stackName; @com.aliyun.core.annotation.NameInMap("StackType") private String stackType; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StatusReason") private String statusReason; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.NameInMap("TemplateDescription") private String templateDescription; @com.aliyun.core.annotation.NameInMap("TemplateId") private String templateId; @com.aliyun.core.annotation.NameInMap("TemplateScratchId") private String templateScratchId; @com.aliyun.core.annotation.NameInMap("TemplateURL") private String templateURL; @com.aliyun.core.annotation.NameInMap("TemplateVersion") private String templateVersion; @com.aliyun.core.annotation.NameInMap("TimeoutInMinutes") private Integer timeoutInMinutes; @com.aliyun.core.annotation.NameInMap("UpdateTime") private String updateTime; private GetStackResponseBody(Builder builder) { this.checkedStackResourceCount = builder.checkedStackResourceCount; this.createTime = builder.createTime; this.deletionProtection = builder.deletionProtection; this.description = builder.description; this.disableRollback = builder.disableRollback; this.driftDetectionTime = builder.driftDetectionTime; this._interface = builder._interface; this.log = builder.log; this.notCheckedStackResourceCount = builder.notCheckedStackResourceCount; this.notificationURLs = builder.notificationURLs; this.operationInfo = builder.operationInfo; this.orderIds = builder.orderIds; this.outputs = builder.outputs; this.parameters = builder.parameters; this.parentStackId = builder.parentStackId; this.ramRoleName = builder.ramRoleName; this.regionId = builder.regionId; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; this.resourceProgress = builder.resourceProgress; this.rollbackFailedRootReason = builder.rollbackFailedRootReason; this.rootStackId = builder.rootStackId; this.serviceManaged = builder.serviceManaged; this.serviceName = builder.serviceName; this.stackDriftStatus = builder.stackDriftStatus; this.stackId = builder.stackId; this.stackName = builder.stackName; this.stackType = builder.stackType; this.status = builder.status; this.statusReason = builder.statusReason; this.tags = builder.tags; this.templateDescription = builder.templateDescription; this.templateId = builder.templateId; this.templateScratchId = builder.templateScratchId; this.templateURL = builder.templateURL; this.templateVersion = builder.templateVersion; this.timeoutInMinutes = builder.timeoutInMinutes; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static GetStackResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return checkedStackResourceCount */ public Integer getCheckedStackResourceCount() { return this.checkedStackResourceCount; } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return deletionProtection */ public String getDeletionProtection() { return this.deletionProtection; } /** * @return description */ public String getDescription() { return this.description; } /** * @return disableRollback */ public Boolean getDisableRollback() { return this.disableRollback; } /** * @return driftDetectionTime */ public String getDriftDetectionTime() { return this.driftDetectionTime; } /** * @return _interface */ public String get_interface() { return this._interface; } /** * @return log */ public Log getLog() { return this.log; } /** * @return notCheckedStackResourceCount */ public Integer getNotCheckedStackResourceCount() { return this.notCheckedStackResourceCount; } /** * @return notificationURLs */ public java.util.List<String> getNotificationURLs() { return this.notificationURLs; } /** * @return operationInfo */ public OperationInfo getOperationInfo() { return this.operationInfo; } /** * @return orderIds */ public java.util.List<String> getOrderIds() { return this.orderIds; } /** * @return outputs */ public java.util.List<java.util.Map<String, ?>> getOutputs() { return this.outputs; } /** * @return parameters */ public java.util.List<Parameters> getParameters() { return this.parameters; } /** * @return parentStackId */ public String getParentStackId() { return this.parentStackId; } /** * @return ramRoleName */ public String getRamRoleName() { return this.ramRoleName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceProgress */ public ResourceProgress getResourceProgress() { return this.resourceProgress; } /** * @return rollbackFailedRootReason */ public String getRollbackFailedRootReason() { return this.rollbackFailedRootReason; } /** * @return rootStackId */ public String getRootStackId() { return this.rootStackId; } /** * @return serviceManaged */ public Boolean getServiceManaged() { return this.serviceManaged; } /** * @return serviceName */ public String getServiceName() { return this.serviceName; } /** * @return stackDriftStatus */ public String getStackDriftStatus() { return this.stackDriftStatus; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return stackName */ public String getStackName() { return this.stackName; } /** * @return stackType */ public String getStackType() { return this.stackType; } /** * @return status */ public String getStatus() { return this.status; } /** * @return statusReason */ public String getStatusReason() { return this.statusReason; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return templateDescription */ public String getTemplateDescription() { return this.templateDescription; } /** * @return templateId */ public String getTemplateId() { return this.templateId; } /** * @return templateScratchId */ public String getTemplateScratchId() { return this.templateScratchId; } /** * @return templateURL */ public String getTemplateURL() { return this.templateURL; } /** * @return templateVersion */ public String getTemplateVersion() { return this.templateVersion; } /** * @return timeoutInMinutes */ public Integer getTimeoutInMinutes() { return this.timeoutInMinutes; } /** * @return updateTime */ public String getUpdateTime() { return this.updateTime; } public static final class Builder { private Integer checkedStackResourceCount; private String createTime; private String deletionProtection; private String description; private Boolean disableRollback; private String driftDetectionTime; private String _interface; private Log log; private Integer notCheckedStackResourceCount; private java.util.List<String> notificationURLs; private OperationInfo operationInfo; private java.util.List<String> orderIds; private java.util.List<java.util.Map<String, ?>> outputs; private java.util.List<Parameters> parameters; private String parentStackId; private String ramRoleName; private String regionId; private String requestId; private String resourceGroupId; private ResourceProgress resourceProgress; private String rollbackFailedRootReason; private String rootStackId; private Boolean serviceManaged; private String serviceName; private String stackDriftStatus; private String stackId; private String stackName; private String stackType; private String status; private String statusReason; private java.util.List<Tags> tags; private String templateDescription; private String templateId; private String templateScratchId; private String templateURL; private String templateVersion; private Integer timeoutInMinutes; private String updateTime; private Builder() { } private Builder(GetStackResponseBody model) { this.checkedStackResourceCount = model.checkedStackResourceCount; this.createTime = model.createTime; this.deletionProtection = model.deletionProtection; this.description = model.description; this.disableRollback = model.disableRollback; this.driftDetectionTime = model.driftDetectionTime; this._interface = model._interface; this.log = model.log; this.notCheckedStackResourceCount = model.notCheckedStackResourceCount; this.notificationURLs = model.notificationURLs; this.operationInfo = model.operationInfo; this.orderIds = model.orderIds; this.outputs = model.outputs; this.parameters = model.parameters; this.parentStackId = model.parentStackId; this.ramRoleName = model.ramRoleName; this.regionId = model.regionId; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; this.resourceProgress = model.resourceProgress; this.rollbackFailedRootReason = model.rollbackFailedRootReason; this.rootStackId = model.rootStackId; this.serviceManaged = model.serviceManaged; this.serviceName = model.serviceName; this.stackDriftStatus = model.stackDriftStatus; this.stackId = model.stackId; this.stackName = model.stackName; this.stackType = model.stackType; this.status = model.status; this.statusReason = model.statusReason; this.tags = model.tags; this.templateDescription = model.templateDescription; this.templateId = model.templateId; this.templateScratchId = model.templateScratchId; this.templateURL = model.templateURL; this.templateVersion = model.templateVersion; this.timeoutInMinutes = model.timeoutInMinutes; this.updateTime = model.updateTime; } /** * <p>The number of resources on which drift detection was performed.</p> * <blockquote> * <p> This parameter is returned only if the most recent drift detection on the stack was successful.</p> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder checkedStackResourceCount(Integer checkedStackResourceCount) { this.checkedStackResourceCount = checkedStackResourceCount; return this; } /** * <p>The time when the stack was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2020-09-16T08:21:40</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>Indicates whether deletion protection is enabled for the stack. Valid values:</p> * <ul> * <li>Enabled: Deletion protection is enabled for the stack.</li> * <li>Disabled: Deletion protection is disabled for the stack. You can delete the stack by using the ROS console or by calling the DeleteStack operation.</li> * </ul> * <blockquote> * <p> Deletion protection of a nested stack is the same as deletion protection of its root stack.</p> * </blockquote> * * <strong>example:</strong> * <p>Disabled</p> */ public Builder deletionProtection(String deletionProtection) { this.deletionProtection = deletionProtection; return this; } /** * <p>The description of the stack.</p> * * <strong>example:</strong> * <p>Create a VPC.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>Indicates whether rollback is disabled when the stack fails to be created. Valid values:</p> * <ul> * <li>true</li> * <li>false (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder disableRollback(Boolean disableRollback) { this.disableRollback = disableRollback; return this; } /** * <p>The time when the most recent successful drift detection was performed on the stack.</p> * * <strong>example:</strong> * <p>2020-09-16T09:21:40</p> */ public Builder driftDetectionTime(String driftDetectionTime) { this.driftDetectionTime = driftDetectionTime; return this; } /** * <p>The description of the console user interface (UI).</p> * * <strong>example:</strong> * <p>{}</p> */ public Builder _interface(String _interface) { this._interface = _interface; return this; } /** * <p>The log of the stack.</p> */ public Builder log(Log log) { this.log = log; return this; } /** * <p>The number of resources on which drift detection was not performed.</p> * <blockquote> * <p> This parameter is returned only if the most recent drift detection on the stack was successful.</p> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder notCheckedStackResourceCount(Integer notCheckedStackResourceCount) { this.notCheckedStackResourceCount = notCheckedStackResourceCount; return this; } /** * <p>The callback URLs for receiving stack events.</p> */ public Builder notificationURLs(java.util.List<String> notificationURLs) { this.notificationURLs = notificationURLs; return this; } /** * <p>The supplementary information that is returned if an error occurs on a stack operation.</p> * <blockquote> * <p> This parameter is returned together with at least one sub-parameter and only under specific conditions. For example, the supplementary information is returned when an API operation of another Alibaba Cloud service fails to be called.</p> * </blockquote> */ public Builder operationInfo(OperationInfo operationInfo) { this.operationInfo = operationInfo; return this; } /** * <p>The order IDs. This parameter is returned only if you configured manual payment when you created a subscription stack.</p> */ public Builder orderIds(java.util.List<String> orderIds) { this.orderIds = orderIds; return this; } /** * <p>The outputs of the stack.</p> */ public Builder outputs(java.util.List<java.util.Map<String, ?>> outputs) { this.outputs = outputs; return this; } /** * <p>The parameters of the stack.</p> */ public Builder parameters(java.util.List<Parameters> parameters) { this.parameters = parameters; return this; } /** * <p>The ID of the parent stack.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf692****</p> */ public Builder parentStackId(String parentStackId) { this.parentStackId = parentStackId; return this; } /** * <p>The name of the Resource Access Management (RAM) role. ROS assumes the RAM role to create the stack and uses the credentials of the role to call the APIs of Alibaba Cloud services.<br>ROS assumes the RAM role to perform operations on the stack. If you have permissions to perform operations on the stack, ROS assumes the RAM role even if you do not have permissions to use the RAM role. You must make sure that permissions are granted to the RAM role based on the principle of least privilege.<br>If this parameter is not specified, ROS uses the existing role that is associated with the stack. If no roles are available, ROS uses a temporary credential that is generated from the credentials of your account.<br>The RAM role name can be up to 64 characters in length.</p> * * <strong>example:</strong> * <p>test-role</p> */ public Builder ramRoleName(String ramRoleName) { this.ramRoleName = ramRoleName; return this; } /** * <p>The region ID of the stack. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84B6E6F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The resource creation progress.</p> */ public Builder resourceProgress(ResourceProgress resourceProgress) { this.resourceProgress = resourceProgress; return this; } /** * <p>当资源栈状态为回滚失败时,该字段展示导致回滚的前一阶段执行失败的原因。</p> * * <strong>example:</strong> * <p>Resource UPDATE failed: Exception: resources.FailToCreate: FailToCreate: reason</p> */ public Builder rollbackFailedRootReason(String rollbackFailedRootReason) { this.rollbackFailedRootReason = rollbackFailedRootReason; return this; } /** * <p>The ID of the root stack. This parameter is returned if the specified stack is a nested stack.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf692****</p> */ public Builder rootStackId(String rootStackId) { this.rootStackId = rootStackId; return this; } /** * <p>Indicates whether the stack is a managed stack. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder serviceManaged(Boolean serviceManaged) { this.serviceManaged = serviceManaged; return this; } /** * <p>The name of the service to which the managed stack belongs.</p> * * <strong>example:</strong> * <p>ACVS</p> */ public Builder serviceName(String serviceName) { this.serviceName = serviceName; return this; } /** * <p>The state of the stack on which the most recent successful drift detection was performed. Valid values:</p> * <ul> * <li>DRIFTED: The stack has drifted.</li> * <li>NOT_CHECKED: No successful drift detection is performed on the stack.</li> * <li>IN_SYNC: The stack is being synchronized.</li> * </ul> * * <strong>example:</strong> * <p>IN_SYNC</p> */ public Builder stackDriftStatus(String stackDriftStatus) { this.stackDriftStatus = stackDriftStatus; return this; } /** * <p>The stack ID.</p> * * <strong>example:</strong> * <p>c754d2a4-28f1-46df-b557-9586173a****</p> */ public Builder stackId(String stackId) { this.stackId = stackId; return this; } /** * <p>The stack name.<br>The name can be up to 255 characters in length, and can contain digits, letters, hyphens (-), and underscores (_). The name must start with a digit or letter.</p> * * <strong>example:</strong> * <p>MyStack</p> */ public Builder stackName(String stackName) { this.stackName = stackName; return this; } /** * <p>The stack type. Valid values:</p> * <ul> * <li>ROS: ROS stack. The stack is created by using a ROS template.</li> * <li>Terraform: Terraform stack. The stack is created by using a Terraform template.</li> * </ul> * * <strong>example:</strong> * <p>ROS</p> */ public Builder stackType(String stackType) { this.stackType = stackType; return this; } /** * <p>The state of the stack. Valid values:</p> * <ul> * <li>CREATE_IN_PROGRESS: The stack is being created.</li> * <li>CREATE_FAILED: The stack failed to be created.</li> * <li>CREATE_COMPLETE: The stack is created.</li> * <li>UPDATE_IN_PROGRESS: The stack is being updated.</li> * <li>UPDATE_FAILED: The stack failed to be updated.</li> * <li>UPDATE_COMPLETE: The stack is updated.</li> * <li>DELETE_IN_PROGRESS: The stack is being deleted.</li> * <li>DELETE_FAILED: The stack failed to be deleted.</li> * <li>CREATE_ROLLBACK_IN_PROGRESS: The resources are being rolled back after the stack failed to be created.</li> * <li>CREATE_ROLLBACK_FAILED: The resources failed to be rolled back after the stack failed to be created.</li> * <li>CREATE_ROLLBACK_COMPLETE: The resources are rolled back after the stack failed to be created.</li> * <li>ROLLBACK_IN_PROGRESS: The resources of the stack are being rolled back.</li> * <li>ROLLBACK_FAILED: The resources of the stack failed to be rolled back.</li> * <li>ROLLBACK_COMPLETE: The resources of the stack are rolled back.</li> * <li>CHECK_IN_PROGRESS: The stack is being validated.</li> * <li>CHECK_FAILED: The stack failed to be validated.</li> * <li>CHECK_COMPLETE: The stack is validated.</li> * <li>REVIEW_IN_PROGRESS: The stack is being reviewed.</li> * <li>IMPORT_CREATE_IN_PROGRESS: The stack is being created by using imported resources.</li> * <li>IMPORT_CREATE_FAILED: The stack failed to be created by using imported resources.</li> * <li>IMPORT_CREATE_COMPLETE: The stack is created by using imported resources.</li> * <li>IMPORT_CREATE_ROLLBACK_IN_PROGRESS: The resources are being rolled back after the stack failed to be created by using imported resources.</li> * <li>IMPORT_CREATE_ROLLBACK_FAILED: The resources failed to be rolled back after the stack failed to be created by using imported resources.</li> * <li>IMPORT_CREATE_ROLLBACK_COMPLETE: The resources are rolled back after the stack failed to be created by using imported resources.</li> * <li>IMPORT_UPDATE_IN_PROGRESS: The stack is being updated by using imported resources.</li> * <li>IMPORT_UPDATE_FAILED: The stack failed to be updated by using imported resources.</li> * <li>IMPORT_UPDATE_COMPLETE: The stack is updated by using imported resources.</li> * <li>IMPORT_UPDATE_ROLLBACK_IN_PROGRESS: The resources are being rolled back after the stack failed to be updated by using imported resources.</li> * <li>IMPORT_UPDATE_ROLLBACK_FAILED: The resources failed to be rolled back after the stack failed to be updated by using imported resources.</li> * <li>IMPORT_UPDATE_ROLLBACK_COMPLETE: The resources are rolled back after the stack failed to be updated by using imported resources.</li> * </ul> * * <strong>example:</strong> * <p>CREATE_COMPLETE</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The reason why the stack is in its current state.</p> * * <strong>example:</strong> * <p>Stack CREATE completed successfully</p> */ public Builder statusReason(String statusReason) { this.statusReason = statusReason; return this; } /** * <p>The tags of the stack.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The description of the template.</p> * * <strong>example:</strong> * <p>Create a VPC.</p> */ public Builder templateDescription(String templateDescription) { this.templateDescription = templateDescription; return this; } /** * <p>The template ID. This parameter is returned only if the current stack template is a custom template or shared template.</p> * <p>If the template is a shared template, the value of this parameter is the same as the value of TemplateARN.</p> * * <strong>example:</strong> * <p>a52f81be-496f-4e1c-a286-8852ab54****</p> */ public Builder templateId(String templateId) { this.templateId = templateId; return this; } /** * <p>The ID of the resource scenario. This parameter is returned only if the current template of the stack is generated from a resource scenario.</p> * * <strong>example:</strong> * <p>ts-7f7a704cf71c49a6****</p> */ public Builder templateScratchId(String templateScratchId) { this.templateScratchId = templateScratchId; return this; } /** * <p>The URL of the file that contains the template body. This parameter is returned only if the current template of the stack is from a URL. The URL can point to a template that is located on an HTTP or HTTPS web server or in an Object Storage Service (OSS) bucket.</p> * * <strong>example:</strong> * <p>oss://ros/template/demo</p> */ public Builder templateURL(String templateURL) { this.templateURL = templateURL; return this; } /** * <p>The version of the template. This parameter is returned only if the current stack template is a custom template or shared template.</p> * <p>If the template is a shared template, this parameter is returned only if VersionOption is set to AllVersions.</p> * <p>Valid values: v1 to v100.</p> * * <strong>example:</strong> * <p>v1</p> */ public Builder templateVersion(String templateVersion) { this.templateVersion = templateVersion; return this; } /** * <p>The timeout period for creating the stack. Unit: minutes.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder timeoutInMinutes(Integer timeoutInMinutes) { this.timeoutInMinutes = timeoutInMinutes; return this; } /** * <p>The time when the stack was updated. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2020-09-17T08:21:40</p> */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public GetStackResponseBody build() { return new GetStackResponseBody(this); } } /** * * {@link GetStackResponseBody} extends {@link TeaModel} * * <p>GetStackResponseBody</p> */ public static class Logs extends TeaModel { @com.aliyun.core.annotation.NameInMap("Content") private String content; @com.aliyun.core.annotation.NameInMap("Keys") private java.util.List<String> keys; private Logs(Builder builder) { this.content = builder.content; this.keys = builder.keys; } public static Builder builder() { return new Builder(); } public static Logs create() { return builder().build(); } /** * @return content */ public String getContent() { return this.content; } /** * @return keys */ public java.util.List<String> getKeys() { return this.keys; } public static final class Builder { private String content; private java.util.List<String> keys; private Builder() { } private Builder(Logs model) { this.content = model.content; this.keys = model.keys; } /** * <p>The content of a resource log.</p> * * <strong>example:</strong> * <p>[]</p> */ public Builder content(String content) { this.content = content; return this; } /** * <p>The keywords of a resource log.</p> */ public Builder keys(java.util.List<String> keys) { this.keys = keys; return this; } public Logs build() { return new Logs(this); } } } /** * * {@link GetStackResponseBody} extends {@link TeaModel} * * <p>GetStackResponseBody</p> */ public static class ResourceLogs extends TeaModel { @com.aliyun.core.annotation.NameInMap("Logs") private java.util.List<Logs> logs; @com.aliyun.core.annotation.NameInMap("ResourceName") private String resourceName; private ResourceLogs(Builder builder) { this.logs = builder.logs; this.resourceName = builder.resourceName; } public static Builder builder() { return new Builder(); } public static ResourceLogs create() { return builder().build(); } /** * @return logs */ public java.util.List<Logs> getLogs() { return this.logs; } /** * @return resourceName */ public String getResourceName() { return this.resourceName; } public static final class Builder { private java.util.List<Logs> logs; private String resourceName; private Builder() { } private Builder(ResourceLogs model) { this.logs = model.logs; this.resourceName = model.resourceName; } /** * <p>All the logs that are associated with the resources.</p> */ public Builder logs(java.util.List<Logs> logs) { this.logs = logs; return this; } /** * <p>The name of the resource that is defined in the template.</p> * * <strong>example:</strong> * <p>MyResourceCleaner</p> */ public Builder resourceName(String resourceName) { this.resourceName = resourceName; return this; } public ResourceLogs build() { return new ResourceLogs(this); } } } /** * * {@link GetStackResponseBody} extends {@link TeaModel} * * <p>GetStackResponseBody</p> */ public static class TerraformLogs extends TeaModel { @com.aliyun.core.annotation.NameInMap("Command") private String command; @com.aliyun.core.annotation.NameInMap("Content") private String content; @com.aliyun.core.annotation.NameInMap("Stream") private String stream; private TerraformLogs(Builder builder) { this.command = builder.command; this.content = builder.content; this.stream = builder.stream; } public static Builder builder() { return new Builder(); } public static TerraformLogs create() { return builder().build(); } /** * @return command */ public String getCommand() { return this.command; } /** * @return content */ public String getContent() { return this.content; } /** * @return stream */ public String getStream() { return this.stream; } public static final class Builder { private String command; private String content; private String stream; private Builder() { } private Builder(TerraformLogs model) { this.command = model.command; this.content = model.content; this.stream = model.stream; } /** * <p>The name of the Terraform command that is run. Valid values:</p> * <ul> * <li>apply</li> * <li>plan</li> * <li>destroy</li> * <li>version</li> * </ul> * <p>For more information about Terraform commands, see <a href="https://www.terraform.io/cli/commands">Basic CLI Features</a>.</p> * * <strong>example:</strong> * <p>apply</p> */ public Builder command(String command) { this.command = command; return this; } /** * <p>The content of the output stream that is returned after the command is run.</p> * * <strong>example:</strong> * <p>Apply complete! Resources: 42 added, 0 changed, 0 destroyed.</p> */ public Builder content(String content) { this.content = content; return this; } /** * <p>The output stream. Valid values:</p> * <ul> * <li>stdout: standard output stream</li> * <li>stderr: standard error stream</li> * </ul> * * <strong>example:</strong> * <p>stdout</p> */ public Builder stream(String stream) { this.stream = stream; return this; } public TerraformLogs build() { return new TerraformLogs(this); } } } /** * * {@link GetStackResponseBody} extends {@link TeaModel} * * <p>GetStackResponseBody</p> */ public static class Log extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceLogs") private java.util.List<ResourceLogs> resourceLogs; @com.aliyun.core.annotation.NameInMap("TerraformLogs") private java.util.List<TerraformLogs> terraformLogs; private Log(Builder builder) { this.resourceLogs = builder.resourceLogs; this.terraformLogs = builder.terraformLogs; } public static Builder builder() { return new Builder(); } public static Log create() { return builder().build(); } /** * @return resourceLogs */ public java.util.List<ResourceLogs> getResourceLogs() { return this.resourceLogs; } /** * @return terraformLogs */ public java.util.List<TerraformLogs> getTerraformLogs() { return this.terraformLogs; } public static final class Builder { private java.util.List<ResourceLogs> resourceLogs; private java.util.List<TerraformLogs> terraformLogs; private Builder() { } private Builder(Log model) { this.resourceLogs = model.resourceLogs; this.terraformLogs = model.terraformLogs; } /** * <p>The logs of resources in the stack. This parameter is returned if LogOption is set to Resource or All.</p> * <blockquote> * <p> The logs are returned only for resources of specific types, such as the <code>ALIYUN::ROS::ResourceCleaner</code> type.</p> * </blockquote> */ public Builder resourceLogs(java.util.List<ResourceLogs> resourceLogs) { this.resourceLogs = resourceLogs; return this; } /** * <p>The logs generated when the Terraform stack is run. This parameter is returned only for a Terraform stack. This parameter is returned if LogOption is left empty or set to Stack or All.</p> * <blockquote> * <p> This parameter is not returned for a running stack. The logs are generated from the most recent operation on the stack, such as the creation, resumed creation, update, or deletion operation.</p> * </blockquote> */ public Builder terraformLogs(java.util.List<TerraformLogs> terraformLogs) { this.terraformLogs = terraformLogs; return this; } public Log build() { return new Log(this); } } } /** * * {@link GetStackResponseBody} extends {@link TeaModel} * * <p>GetStackResponseBody</p> */ public static class OperationInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Action") private String action; @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("LogicalResourceId") private String logicalResourceId; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private OperationInfo(Builder builder) { this.action = builder.action; this.code = builder.code; this.logicalResourceId = builder.logicalResourceId; this.message = builder.message; this.requestId = builder.requestId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static OperationInfo create() { return builder().build(); } /** * @return action */ public String getAction() { return this.action; } /** * @return code */ public String getCode() { return this.code; } /** * @return logicalResourceId */ public String getLogicalResourceId() { return this.logicalResourceId; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private String action; private String code; private String logicalResourceId; private String message; private String requestId; private String resourceType; private Builder() { } private Builder(OperationInfo model) { this.action = model.action; this.code = model.code; this.logicalResourceId = model.logicalResourceId; this.message = model.message; this.requestId = model.requestId; this.resourceType = model.resourceType; } /** * <p>The name of the API operation that belongs to another Alibaba Cloud service.</p> * * <strong>example:</strong> * <p>DeleteSecurityGroup</p> */ public Builder action(String action) { this.action = action; return this; } /** * <p>The error code.</p> * * <strong>example:</strong> * <p>DependencyViolation</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The logical ID of the resource on which the operation error occurs.</p> * * <strong>example:</strong> * <p>EcsSecurityGroup</p> */ public Builder logicalResourceId(String logicalResourceId) { this.logicalResourceId = logicalResourceId; return this; } /** * <p>The error message.</p> * * <strong>example:</strong> * <p>There is still instance(s) in the specified security group.</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The ID of the request that is initiated to call the API operation of another Alibaba Cloud service.</p> * * <strong>example:</strong> * <p>071D6166-3F6B-5C7B-A1F0-0113FBB643A8</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The type of the resource on which the operation error occurs.</p> * * <strong>example:</strong> * <p>ALIYUN::ECS::SecurityGroup</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public OperationInfo build() { return new OperationInfo(this); } } } /** * * {@link GetStackResponseBody} extends {@link TeaModel} * * <p>GetStackResponseBody</p> */ public static class Parameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("ParameterKey") private String parameterKey; @com.aliyun.core.annotation.NameInMap("ParameterValue") private String parameterValue; private Parameters(Builder builder) { this.parameterKey = builder.parameterKey; this.parameterValue = builder.parameterValue; } public static Builder builder() { return new Builder(); } public static Parameters create() { return builder().build(); } /** * @return parameterKey */ public String getParameterKey() { return this.parameterKey; } /** * @return parameterValue */ public String getParameterValue() { return this.parameterValue; } public static final class Builder { private String parameterKey; private String parameterValue; private Builder() { } private Builder(Parameters model) { this.parameterKey = model.parameterKey; this.parameterValue = model.parameterValue; } /** * <p>The parameter name.</p> * * <strong>example:</strong> * <p>ALIYUN::Region</p> */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * <p>The parameter value.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder parameterValue(String parameterValue) { this.parameterValue = parameterValue; return this; } public Parameters build() { return new Parameters(this); } } } /** * * {@link GetStackResponseBody} extends {@link TeaModel} * * <p>GetStackResponseBody</p> */ public static class InProgressResourceDetails extends TeaModel { @com.aliyun.core.annotation.NameInMap("ProgressTargetValue") private Float progressTargetValue; @com.aliyun.core.annotation.NameInMap("ProgressValue") private Float progressValue; @com.aliyun.core.annotation.NameInMap("ResourceName") private String resourceName; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private InProgressResourceDetails(Builder builder) { this.progressTargetValue = builder.progressTargetValue; this.progressValue = builder.progressValue; this.resourceName = builder.resourceName; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static InProgressResourceDetails create() { return builder().build(); } /** * @return progressTargetValue */ public Float getProgressTargetValue() { return this.progressTargetValue; } /** * @return progressValue */ public Float getProgressValue() { return this.progressValue; } /** * @return resourceName */ public String getResourceName() { return this.resourceName; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private Float progressTargetValue; private Float progressValue; private String resourceName; private String resourceType; private Builder() { } private Builder(InProgressResourceDetails model) { this.progressTargetValue = model.progressTargetValue; this.progressValue = model.progressValue; this.resourceName = model.resourceName; this.resourceType = model.resourceType; } /** * <p>The desired progress value of the resource.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder progressTargetValue(Float progressTargetValue) { this.progressTargetValue = progressTargetValue; return this; } /** * <p>The current progress value of the resource.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder progressValue(Float progressValue) { this.progressValue = progressValue; return this; } /** * <p>The resource name.</p> * * <strong>example:</strong> * <p>WaitCondition</p> */ public Builder resourceName(String resourceName) { this.resourceName = resourceName; return this; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>ALIYUN::ROS::WaitCondition</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public InProgressResourceDetails build() { return new InProgressResourceDetails(this); } } } /** * * {@link GetStackResponseBody} extends {@link TeaModel} * * <p>GetStackResponseBody</p> */ public static class ResourceProgress extends TeaModel { @com.aliyun.core.annotation.NameInMap("FailedResourceCount") private Integer failedResourceCount; @com.aliyun.core.annotation.NameInMap("InProgressResourceCount") private Integer inProgressResourceCount; @com.aliyun.core.annotation.NameInMap("InProgressResourceDetails") private java.util.List<InProgressResourceDetails> inProgressResourceDetails; @com.aliyun.core.annotation.NameInMap("PendingResourceCount") private Integer pendingResourceCount; @com.aliyun.core.annotation.NameInMap("StackActionProgress") private Float stackActionProgress; @com.aliyun.core.annotation.NameInMap("StackOperationProgress") private Float stackOperationProgress; @com.aliyun.core.annotation.NameInMap("SuccessResourceCount") private Integer successResourceCount; @com.aliyun.core.annotation.NameInMap("TotalResourceCount") private Integer totalResourceCount; private ResourceProgress(Builder builder) { this.failedResourceCount = builder.failedResourceCount; this.inProgressResourceCount = builder.inProgressResourceCount; this.inProgressResourceDetails = builder.inProgressResourceDetails; this.pendingResourceCount = builder.pendingResourceCount; this.stackActionProgress = builder.stackActionProgress; this.stackOperationProgress = builder.stackOperationProgress; this.successResourceCount = builder.successResourceCount; this.totalResourceCount = builder.totalResourceCount; } public static Builder builder() { return new Builder(); } public static ResourceProgress create() { return builder().build(); } /** * @return failedResourceCount */ public Integer getFailedResourceCount() { return this.failedResourceCount; } /** * @return inProgressResourceCount */ public Integer getInProgressResourceCount() { return this.inProgressResourceCount; } /** * @return inProgressResourceDetails */ public java.util.List<InProgressResourceDetails> getInProgressResourceDetails() { return this.inProgressResourceDetails; } /** * @return pendingResourceCount */ public Integer getPendingResourceCount() { return this.pendingResourceCount; } /** * @return stackActionProgress */ public Float getStackActionProgress() { return this.stackActionProgress; } /** * @return stackOperationProgress */ public Float getStackOperationProgress() { return this.stackOperationProgress; } /** * @return successResourceCount */ public Integer getSuccessResourceCount() { return this.successResourceCount; } /** * @return totalResourceCount */ public Integer getTotalResourceCount() { return this.totalResourceCount; } public static final class Builder { private Integer failedResourceCount; private Integer inProgressResourceCount; private java.util.List<InProgressResourceDetails> inProgressResourceDetails; private Integer pendingResourceCount; private Float stackActionProgress; private Float stackOperationProgress; private Integer successResourceCount; private Integer totalResourceCount; private Builder() { } private Builder(ResourceProgress model) { this.failedResourceCount = model.failedResourceCount; this.inProgressResourceCount = model.inProgressResourceCount; this.inProgressResourceDetails = model.inProgressResourceDetails; this.pendingResourceCount = model.pendingResourceCount; this.stackActionProgress = model.stackActionProgress; this.stackOperationProgress = model.stackOperationProgress; this.successResourceCount = model.successResourceCount; this.totalResourceCount = model.totalResourceCount; } /** * <p>The number of resources that failed to be created.</p> * <blockquote> * <p> This parameter is returned only if <code>ShowResourceProgress</code> is set to <code>EnabledIfCreateStack</code>.</p> * </blockquote> * * <strong>example:</strong> * <p>0</p> */ public Builder failedResourceCount(Integer failedResourceCount) { this.failedResourceCount = failedResourceCount; return this; } /** * <p>The number of resources that are being created.</p> * <blockquote> * <p> This parameter is returned only if <code>ShowResourceProgress</code> is set to <code>EnabledIfCreateStack</code>.</p> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder inProgressResourceCount(Integer inProgressResourceCount) { this.inProgressResourceCount = inProgressResourceCount; return this; } /** * <p>The progress details of resources that are being created.</p> * <blockquote> * <p> This parameter is returned only if <code>ShowResourceProgress</code> is set to <code>EnabledIfCreateStack</code>.</p> * </blockquote> */ public Builder inProgressResourceDetails(java.util.List<InProgressResourceDetails> inProgressResourceDetails) { this.inProgressResourceDetails = inProgressResourceDetails; return this; } /** * <p>The number of resources to be created.</p> * <blockquote> * <p> This parameter is returned only if <code>ShowResourceProgress</code> is set to <code>EnabledIfCreateStack</code>.</p> * </blockquote> * * <strong>example:</strong> * <p>0</p> */ public Builder pendingResourceCount(Integer pendingResourceCount) { this.pendingResourceCount = pendingResourceCount; return this; } /** * <p>The creation or rollback progress of the stack, in percentage. Valid values: 0 to 100.</p> * <p>The value progressively increases from 0 to 100 during a stack creation operation. If the stack is created, the value reaches 100. If the stack fails to be created, a rollback is started for the stack resources, and the value progressively increases from the percentage of the remaining progress (100 - Progress value generated when the stack fails to be created). The value increases to 100 when the stack resources are rolled back. This parameter indicates the creation progress during a stack creation operation and indicates the rollback progress during a stack rollback operation.</p> * <blockquote> * <p> This parameter is returned only if <code>ShowResourceProgress</code> is set to <code>PercentageOnly</code>.</p> * </blockquote> * * <strong>example:</strong> * <p>100</p> */ public Builder stackActionProgress(Float stackActionProgress) { this.stackActionProgress = stackActionProgress; return this; } /** * <p>The overall creation progress of the stack, in percentage. Valid values: 0 to 100.</p> * <p>The value progressively increases from 0 to 100 during a stack creation operation. If the stack is created, the value reaches 100. If the stack fails to be created, a rollback is started for the stack resources, and the value progressively decreases. The value decreases to 0 when the stack resources are rolled back. This parameter indicates only the overall creation progress, regardless of whether during a stack creation or rollback operation.</p> * <blockquote> * <p> This parameter is returned only if <code>ShowResourceProgress</code> is set to <code>PercentageOnly</code>.</p> * </blockquote> * * <strong>example:</strong> * <p>100</p> */ public Builder stackOperationProgress(Float stackOperationProgress) { this.stackOperationProgress = stackOperationProgress; return this; } /** * <p>The number of resources that are created.</p> * <blockquote> * <p> This parameter is returned only if <code>ShowResourceProgress</code> is set to <code>EnabledIfCreateStack</code>.</p> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder successResourceCount(Integer successResourceCount) { this.successResourceCount = successResourceCount; return this; } /** * <p>The total number of resources.</p> * <blockquote> * <p> This parameter is returned only if <code>ShowResourceProgress</code> is set to <code>EnabledIfCreateStack</code>.</p> * </blockquote> * * <strong>example:</strong> * <p>2</p> */ public Builder totalResourceCount(Integer totalResourceCount) { this.totalResourceCount = totalResourceCount; return this; } public ResourceProgress build() { return new ResourceProgress(this); } } } /** * * {@link GetStackResponseBody} extends {@link TeaModel} * * <p>GetStackResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key of the stack.</p> * * <strong>example:</strong> * <p>usage</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the stack.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateEstimateCostRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateEstimateCostRequest} extends {@link RequestModel} * * <p>GetTemplateEstimateCostRequest</p> */ public class GetTemplateEstimateCostRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Parameters") private java.util.List<Parameters> parameters; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("TemplateBody") private String templateBody; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateId") private String templateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateScratchId") private String templateScratchId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateScratchRegionId") private String templateScratchRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateURL") private String templateURL; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateVersion") private String templateVersion; private GetTemplateEstimateCostRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.parameters = builder.parameters; this.regionId = builder.regionId; this.stackId = builder.stackId; this.templateBody = builder.templateBody; this.templateId = builder.templateId; this.templateScratchId = builder.templateScratchId; this.templateScratchRegionId = builder.templateScratchRegionId; this.templateURL = builder.templateURL; this.templateVersion = builder.templateVersion; } public static Builder builder() { return new Builder(); } public static GetTemplateEstimateCostRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return parameters */ public java.util.List<Parameters> getParameters() { return this.parameters; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return templateBody */ public String getTemplateBody() { return this.templateBody; } /** * @return templateId */ public String getTemplateId() { return this.templateId; } /** * @return templateScratchId */ public String getTemplateScratchId() { return this.templateScratchId; } /** * @return templateScratchRegionId */ public String getTemplateScratchRegionId() { return this.templateScratchRegionId; } /** * @return templateURL */ public String getTemplateURL() { return this.templateURL; } /** * @return templateVersion */ public String getTemplateVersion() { return this.templateVersion; } public static final class Builder extends Request.Builder<GetTemplateEstimateCostRequest, Builder> { private String clientToken; private java.util.List<Parameters> parameters; private String regionId; private String stackId; private String templateBody; private String templateId; private String templateScratchId; private String templateScratchRegionId; private String templateURL; private String templateVersion; private Builder() { super(); } private Builder(GetTemplateEstimateCostRequest request) { super(request); this.clientToken = request.clientToken; this.parameters = request.parameters; this.regionId = request.regionId; this.stackId = request.stackId; this.templateBody = request.templateBody; this.templateId = request.templateId; this.templateScratchId = request.templateScratchId; this.templateScratchRegionId = request.templateScratchRegionId; this.templateURL = request.templateURL; this.templateVersion = request.templateVersion; } /** * <p>The name of parameter N. If you do not specify the name and value of a parameter, ROS uses the default name and value that are specified in the template.</p> * <p>Maximum value of N: 200.</p> * <p>Examples:</p> * <ul> * <li>Parameters.1.ParameterKey: <code>Name</code></li> * <li>Parameters.2.ParameterKey: <code>Netmode</code></li> * </ul> * <blockquote> * <p> The Parameters parameter is optional. If you want to specify Parameters, you must specify both Parameters.N.ParameterKey and Parameters.N.ParameterValue.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-42665544****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The region ID of the scenario. The default value is the same as the value of the RegionId parameter.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> */ public Builder parameters(java.util.List<Parameters> parameters) { this.putQueryParameter("Parameters", parameters); this.parameters = parameters; return this; } /** * <p>The ID of the template. This parameter applies to shared and private templates.</p> * <blockquote> * <p> You must specify only one of the following parameters: TemplateBody, TemplateURL, TemplateId, and TemplateScratchId.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The stack ID.</p> * <p>This parameter is used to query the estimated price in a configuration change scenario.</p> * <p>Assume that the specified stack contains only one Elastic Compute Service (ECS) instance and the instance type is ecs.s6-c1m2.large. You downgrade the instance type to ecs.s6-c1m1.small and specify a new ApsaraDB RDS instance in the template that is used for the price inquiry. The queried result is the sum of the downgrade refund of the ECS instance and the price of the new ApsaraDB RDS instance.</p> * * <strong>example:</strong> * <p>c754d2a4-28f1-46df-b557-9586173a****</p> */ public Builder stackId(String stackId) { this.putQueryParameter("StackId", stackId); this.stackId = stackId; return this; } /** * TemplateBody. */ public Builder templateBody(String templateBody) { this.putBodyParameter("TemplateBody", templateBody); this.templateBody = templateBody; return this; } /** * <p>The value of parameter N.</p> * <p>Maximum value of N: 200.</p> * <p>Examples:</p> * <ul> * <li>Parameters.1.ParameterValue: <code>DemoEip</code></li> * <li>Parameters.2.ParameterValue: <code>public</code></li> * </ul> * <blockquote> * <p> The Parameters parameter is optional. If you want to specify Parameters, you must specify both Parameters.N.ParameterKey and Parameters.N.ParameterValue.</p> * </blockquote> * * <strong>example:</strong> * <p>5ecd1e10-b0e9-4389-a565-e4c15efc****</p> */ public Builder templateId(String templateId) { this.putQueryParameter("TemplateId", templateId); this.templateId = templateId; return this; } /** * <p>The ID of the scenario.</p> * * <strong>example:</strong> * <p>ts-aa9c62feab844a6b****</p> */ public Builder templateScratchId(String templateScratchId) { this.putQueryParameter("TemplateScratchId", templateScratchId); this.templateScratchId = templateScratchId; return this; } /** * <p>The region ID of the scenario. The default value is the same as the value of the RegionId parameter.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder templateScratchRegionId(String templateScratchRegionId) { this.putQueryParameter("TemplateScratchRegionId", templateScratchRegionId); this.templateScratchRegionId = templateScratchRegionId; return this; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that the value is unique among different requests.</p> * <p>The token can be up to 64 characters in length, and can contain letters, digits, hyphens (-), and underscores (_).</p> * <p>For more information, see <a href="https://help.aliyun.com/document_detail/134212.html">Ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>oss://ros-template/demo</p> */ public Builder templateURL(String templateURL) { this.putQueryParameter("TemplateURL", templateURL); this.templateURL = templateURL; return this; } /** * <p>The ID of the scenario.</p> * <p>For more information about how to query the IDs of scenarios, see <a href="https://help.aliyun.com/document_detail/363050.html">ListTemplateScratches</a>.</p> * <blockquote> * <p> You must specify only one of the following parameters: TemplateBody, TemplateURL, TemplateId, and TemplateScratchId.</p> * </blockquote> * * <strong>example:</strong> * <p>v1</p> */ public Builder templateVersion(String templateVersion) { this.putQueryParameter("TemplateVersion", templateVersion); this.templateVersion = templateVersion; return this; } @Override public GetTemplateEstimateCostRequest build() { return new GetTemplateEstimateCostRequest(this); } } /** * * {@link GetTemplateEstimateCostRequest} extends {@link TeaModel} * * <p>GetTemplateEstimateCostRequest</p> */ public static class Parameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("ParameterKey") @com.aliyun.core.annotation.Validation(required = true) private String parameterKey; @com.aliyun.core.annotation.NameInMap("ParameterValue") @com.aliyun.core.annotation.Validation(required = true) private String parameterValue; private Parameters(Builder builder) { this.parameterKey = builder.parameterKey; this.parameterValue = builder.parameterValue; } public static Builder builder() { return new Builder(); } public static Parameters create() { return builder().build(); } /** * @return parameterKey */ public String getParameterKey() { return this.parameterKey; } /** * @return parameterValue */ public String getParameterValue() { return this.parameterValue; } public static final class Builder { private String parameterKey; private String parameterValue; private Builder() { } private Builder(Parameters model) { this.parameterKey = model.parameterKey; this.parameterValue = model.parameterValue; } /** * <p>The ID of the request.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>Name</p> */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * <p>Details of the resource.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>DemoEip</p> */ public Builder parameterValue(String parameterValue) { this.parameterValue = parameterValue; return this; } public Parameters build() { return new Parameters(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateEstimateCostResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateEstimateCostResponse} extends {@link TeaModel} * * <p>GetTemplateEstimateCostResponse</p> */ public class GetTemplateEstimateCostResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetTemplateEstimateCostResponseBody body; private GetTemplateEstimateCostResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetTemplateEstimateCostResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetTemplateEstimateCostResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetTemplateEstimateCostResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetTemplateEstimateCostResponseBody body); @Override GetTemplateEstimateCostResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetTemplateEstimateCostResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetTemplateEstimateCostResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetTemplateEstimateCostResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetTemplateEstimateCostResponseBody body) { this.body = body; return this; } @Override public GetTemplateEstimateCostResponse build() { return new GetTemplateEstimateCostResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateEstimateCostResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateEstimateCostResponseBody} extends {@link TeaModel} * * <p>GetTemplateEstimateCostResponseBody</p> */ public class GetTemplateEstimateCostResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Resources") private java.util.Map<String, ?> resources; private GetTemplateEstimateCostResponseBody(Builder builder) { this.requestId = builder.requestId; this.resources = builder.resources; } public static Builder builder() { return new Builder(); } public static GetTemplateEstimateCostResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resources */ public java.util.Map<String, ?> getResources() { return this.resources; } public static final class Builder { private String requestId; private java.util.Map<String, ?> resources; private Builder() { } private Builder(GetTemplateEstimateCostResponseBody model) { this.requestId = model.requestId; this.resources = model.resources; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>6DEA36EF-C97D-5658-A4AC-4F5DB08D1A89</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The resource details.</p> * * <strong>example:</strong> * <p>[{&quot;LogicalResourceIdPattern&quot;: &quot;wait1&quot;, &quot;ResourceType&quot;: &quot;time_sleep&quot;, &quot;ResourcePath&quot;: &quot;wait1&quot;}, {&quot;LogicalResourceIdPattern&quot;: &quot;wait2&quot;, &quot;ResourceType&quot;: &quot;time_sleep&quot;, &quot;ResourcePath&quot;: &quot;wait2&quot;}]</p> */ public Builder resources(java.util.Map<String, ?> resources) { this.resources = resources; return this; } public GetTemplateEstimateCostResponseBody build() { return new GetTemplateEstimateCostResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateParameterConstraintsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateParameterConstraintsRequest} extends {@link RequestModel} * * <p>GetTemplateParameterConstraintsRequest</p> */ public class GetTemplateParameterConstraintsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Parameters") private java.util.List<Parameters> parameters; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ParametersKeyFilter") private java.util.List<String> parametersKeyFilter; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ParametersOrder") private java.util.List<String> parametersOrder; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("TemplateBody") private String templateBody; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateId") private String templateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateURL") private String templateURL; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateVersion") private String templateVersion; private GetTemplateParameterConstraintsRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.parameters = builder.parameters; this.parametersKeyFilter = builder.parametersKeyFilter; this.parametersOrder = builder.parametersOrder; this.regionId = builder.regionId; this.stackId = builder.stackId; this.templateBody = builder.templateBody; this.templateId = builder.templateId; this.templateURL = builder.templateURL; this.templateVersion = builder.templateVersion; } public static Builder builder() { return new Builder(); } public static GetTemplateParameterConstraintsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return parameters */ public java.util.List<Parameters> getParameters() { return this.parameters; } /** * @return parametersKeyFilter */ public java.util.List<String> getParametersKeyFilter() { return this.parametersKeyFilter; } /** * @return parametersOrder */ public java.util.List<String> getParametersOrder() { return this.parametersOrder; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return templateBody */ public String getTemplateBody() { return this.templateBody; } /** * @return templateId */ public String getTemplateId() { return this.templateId; } /** * @return templateURL */ public String getTemplateURL() { return this.templateURL; } /** * @return templateVersion */ public String getTemplateVersion() { return this.templateVersion; } public static final class Builder extends Request.Builder<GetTemplateParameterConstraintsRequest, Builder> { private String clientToken; private java.util.List<Parameters> parameters; private java.util.List<String> parametersKeyFilter; private java.util.List<String> parametersOrder; private String regionId; private String stackId; private String templateBody; private String templateId; private String templateURL; private String templateVersion; private Builder() { super(); } private Builder(GetTemplateParameterConstraintsRequest request) { super(request); this.clientToken = request.clientToken; this.parameters = request.parameters; this.parametersKeyFilter = request.parametersKeyFilter; this.parametersOrder = request.parametersOrder; this.regionId = request.regionId; this.stackId = request.stackId; this.templateBody = request.templateBody; this.templateId = request.templateId; this.templateURL = request.templateURL; this.templateVersion = request.templateVersion; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the value, but you must make sure that the value is unique among different requests. The token can be up to 64 characters in length, and can contain letters, digits, hyphens (-), and underscores (_).</p> * <p>For more information, see <a href="https://help.aliyun.com/document_detail/134212.html">Ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-42665544****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The name of parameter N in the template.</p> */ public Builder parameters(java.util.List<Parameters> parameters) { this.putQueryParameter("Parameters", parameters); this.parameters = parameters; return this; } /** * <p>The parameters whose values you want to query.</p> */ public Builder parametersKeyFilter(java.util.List<String> parametersKeyFilter) { String parametersKeyFilterShrink = shrink(parametersKeyFilter, "ParametersKeyFilter", "json"); this.putQueryParameter("ParametersKeyFilter", parametersKeyFilterShrink); this.parametersKeyFilter = parametersKeyFilter; return this; } /** * <p>The order in which associated parameters are arranged.</p> * <blockquote> * <p> By default, the order of the associated parameters specified in the <code>Metadata</code> section of the template is used.</p> * </blockquote> */ public Builder parametersOrder(java.util.List<String> parametersOrder) { String parametersOrderShrink = shrink(parametersOrder, "ParametersOrder", "json"); this.putQueryParameter("ParametersOrder", parametersOrderShrink); this.parametersOrder = parametersOrder; return this; } /** * <p>The region ID of the template.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the stack.</p> * * <strong>example:</strong> * <p>c754d2a4-28f1-46df-b557-9586173a****</p> */ public Builder stackId(String stackId) { this.putQueryParameter("StackId", stackId); this.stackId = stackId; return this; } /** * <p>The structure that contains the template body.</p> * <p>The template body must be 1 to 524,288 bytes in length. If the length of the template body exceeds the upper limit, we recommend that you add parameters to the HTTP POST request body to prevent request failures caused by excessively long URLs.</p> * <blockquote> * <p> You must specify only one of the following parameters: TemplateBody, TemplateURL, and TemplateId.</p> * </blockquote> * * <strong>example:</strong> * <p>{&quot;Parameters&quot;:{&quot;ZoneInfo&quot;:{&quot;Type&quot;: &quot;String&quot;},&quot;InstanceType&quot;: {&quot;Type&quot;: &quot;String&quot;}},&quot;ROSTemplateFormatVersion&quot;: &quot;2015-09-01&quot;,&quot;Resources&quot;:{&quot;ECS&quot;:{&quot;Properties&quot;:{&quot;ZoneId&quot;:{&quot;Ref&quot;: &quot;ZoneInfo&quot;},&quot;InstanceType&quot;: {&quot;Ref&quot;: &quot;InstanceType&quot;}},&quot;Type&quot;: &quot;ALIYUN::ECS::Instance&quot;}}}</p> */ public Builder templateBody(String templateBody) { this.putBodyParameter("TemplateBody", templateBody); this.templateBody = templateBody; return this; } /** * <p>The ID of the template. This parameter applies to shared and private templates.</p> * <blockquote> * <p> You must specify only one of the following parameters: TemplateBody, TemplateURL, and TemplateId.</p> * </blockquote> * * <strong>example:</strong> * <p>5ecd1e10-b0e9-4389-a565-e4c15efc****</p> */ public Builder templateId(String templateId) { this.putQueryParameter("TemplateId", templateId); this.templateId = templateId; return this; } /** * <p>The URL of the file that contains the template body. The URL must point to a template that is located on an HTTP or HTTPS web server or in an Object Storage Service (OSS) bucket, such as oss://ros/stack-policy/demo or oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The template body can be up to 524,288 bytes in length. If you do not specify the region ID of the OSS bucket, the value of the RegionId parameter is used.</p> * <blockquote> * <p> You must specify only one of the following parameters: TemplateBody, TemplateURL, and TemplateId.</p> * </blockquote> * * <strong>example:</strong> * <p>oss://ros-template/demo</p> */ public Builder templateURL(String templateURL) { this.putQueryParameter("TemplateURL", templateURL); this.templateURL = templateURL; return this; } /** * <p>The version of the template. If you do not specify this parameter, the latest version is used.</p> * <blockquote> * <p> This parameter takes effect only if the TemplateId parameter is specified.</p> * </blockquote> * * <strong>example:</strong> * <p>v1</p> */ public Builder templateVersion(String templateVersion) { this.putQueryParameter("TemplateVersion", templateVersion); this.templateVersion = templateVersion; return this; } @Override public GetTemplateParameterConstraintsRequest build() { return new GetTemplateParameterConstraintsRequest(this); } } /** * * {@link GetTemplateParameterConstraintsRequest} extends {@link TeaModel} * * <p>GetTemplateParameterConstraintsRequest</p> */ public static class Parameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("ParameterKey") @com.aliyun.core.annotation.Validation(required = true) private String parameterKey; @com.aliyun.core.annotation.NameInMap("ParameterValue") @com.aliyun.core.annotation.Validation(required = true) private String parameterValue; private Parameters(Builder builder) { this.parameterKey = builder.parameterKey; this.parameterValue = builder.parameterValue; } public static Builder builder() { return new Builder(); } public static Parameters create() { return builder().build(); } /** * @return parameterKey */ public String getParameterKey() { return this.parameterKey; } /** * @return parameterValue */ public String getParameterValue() { return this.parameterValue; } public static final class Builder { private String parameterKey; private String parameterValue; private Builder() { } private Builder(Parameters model) { this.parameterKey = model.parameterKey; this.parameterValue = model.parameterValue; } /** * <p>The name of parameter N in the template.</p> * <blockquote> * <p> The Parameters parameter is optional. If you specify the Parameters parameter, you must specify the Parameters.N.ParameterKey parameter.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ZoneInfo</p> */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * <p>The value of parameter N in the template.</p> * <blockquote> * <p> The Parameters parameter is optional. If you specify the Parameters parameter, you must specify the Parameters.N.ParameterValue parameter.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou-h</p> */ public Builder parameterValue(String parameterValue) { this.parameterValue = parameterValue; return this; } public Parameters build() { return new Parameters(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateParameterConstraintsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateParameterConstraintsResponse} extends {@link TeaModel} * * <p>GetTemplateParameterConstraintsResponse</p> */ public class GetTemplateParameterConstraintsResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetTemplateParameterConstraintsResponseBody body; private GetTemplateParameterConstraintsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetTemplateParameterConstraintsResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetTemplateParameterConstraintsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetTemplateParameterConstraintsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetTemplateParameterConstraintsResponseBody body); @Override GetTemplateParameterConstraintsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetTemplateParameterConstraintsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetTemplateParameterConstraintsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetTemplateParameterConstraintsResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetTemplateParameterConstraintsResponseBody body) { this.body = body; return this; } @Override public GetTemplateParameterConstraintsResponse build() { return new GetTemplateParameterConstraintsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateParameterConstraintsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateParameterConstraintsResponseBody} extends {@link TeaModel} * * <p>GetTemplateParameterConstraintsResponseBody</p> */ public class GetTemplateParameterConstraintsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ParameterConstraints") private java.util.List<ParameterConstraints> parameterConstraints; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GetTemplateParameterConstraintsResponseBody(Builder builder) { this.parameterConstraints = builder.parameterConstraints; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GetTemplateParameterConstraintsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return parameterConstraints */ public java.util.List<ParameterConstraints> getParameterConstraints() { return this.parameterConstraints; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<ParameterConstraints> parameterConstraints; private String requestId; private Builder() { } private Builder(GetTemplateParameterConstraintsResponseBody model) { this.parameterConstraints = model.parameterConstraints; this.requestId = model.requestId; } /** * <p>The constraints of the parameters.</p> */ public Builder parameterConstraints(java.util.List<ParameterConstraints> parameterConstraints) { this.parameterConstraints = parameterConstraints; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>9816785B-BCF8-514D-8B76-C1EC2BC954FC</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GetTemplateParameterConstraintsResponseBody build() { return new GetTemplateParameterConstraintsResponseBody(this); } } /** * * {@link GetTemplateParameterConstraintsResponseBody} extends {@link TeaModel} * * <p>GetTemplateParameterConstraintsResponseBody</p> */ public static class NotSupportResources extends TeaModel { @com.aliyun.core.annotation.NameInMap("PropertyName") private String propertyName; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private NotSupportResources(Builder builder) { this.propertyName = builder.propertyName; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static NotSupportResources create() { return builder().build(); } /** * @return propertyName */ public String getPropertyName() { return this.propertyName; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private String propertyName; private String resourceType; private Builder() { } private Builder(NotSupportResources model) { this.propertyName = model.propertyName; this.resourceType = model.resourceType; } /** * <p>The name of the resource property.</p> * * <strong>example:</strong> * <p>InstanceName</p> */ public Builder propertyName(String propertyName) { this.propertyName = propertyName; return this; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>ALIYUN::ECS::InstanceGroup</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public NotSupportResources build() { return new NotSupportResources(this); } } } /** * * {@link GetTemplateParameterConstraintsResponseBody} extends {@link TeaModel} * * <p>GetTemplateParameterConstraintsResponseBody</p> */ public static class OriginalConstraints extends TeaModel { @com.aliyun.core.annotation.NameInMap("AllowedValues") private java.util.List<?> allowedValues; @com.aliyun.core.annotation.NameInMap("Behavior") private String behavior; @com.aliyun.core.annotation.NameInMap("BehaviorReason") private String behaviorReason; @com.aliyun.core.annotation.NameInMap("PropertiesData") private String propertiesData; @com.aliyun.core.annotation.NameInMap("PropertyName") private String propertyName; @com.aliyun.core.annotation.NameInMap("RequestInfo") private String requestInfo; @com.aliyun.core.annotation.NameInMap("ResourceName") private String resourceName; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private OriginalConstraints(Builder builder) { this.allowedValues = builder.allowedValues; this.behavior = builder.behavior; this.behaviorReason = builder.behaviorReason; this.propertiesData = builder.propertiesData; this.propertyName = builder.propertyName; this.requestInfo = builder.requestInfo; this.resourceName = builder.resourceName; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static OriginalConstraints create() { return builder().build(); } /** * @return allowedValues */ public java.util.List<?> getAllowedValues() { return this.allowedValues; } /** * @return behavior */ public String getBehavior() { return this.behavior; } /** * @return behaviorReason */ public String getBehaviorReason() { return this.behaviorReason; } /** * @return propertiesData */ public String getPropertiesData() { return this.propertiesData; } /** * @return propertyName */ public String getPropertyName() { return this.propertyName; } /** * @return requestInfo */ public String getRequestInfo() { return this.requestInfo; } /** * @return resourceName */ public String getResourceName() { return this.resourceName; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private java.util.List<?> allowedValues; private String behavior; private String behaviorReason; private String propertiesData; private String propertyName; private String requestInfo; private String resourceName; private String resourceType; private Builder() { } private Builder(OriginalConstraints model) { this.allowedValues = model.allowedValues; this.behavior = model.behavior; this.behaviorReason = model.behaviorReason; this.propertiesData = model.propertiesData; this.propertyName = model.propertyName; this.requestInfo = model.requestInfo; this.resourceName = model.resourceName; this.resourceType = model.resourceType; } /** * <p>The values of the parameter.</p> */ public Builder allowedValues(java.util.List<?> allowedValues) { this.allowedValues = allowedValues; return this; } /** * <p>Behavior of the parameter</p> * * <strong>example:</strong> * <p>QueryError</p> */ public Builder behavior(String behavior) { this.behavior = behavior; return this; } /** * <p>The reason for the parameter behavior</p> * * <strong>example:</strong> * <p>No resource property refer to the parameter</p> */ public Builder behaviorReason(String behaviorReason) { this.behaviorReason = behaviorReason; return this; } /** * PropertiesData. */ public Builder propertiesData(String propertiesData) { this.propertiesData = propertiesData; return this; } /** * <p>The name of the resource property.</p> * * <strong>example:</strong> * <p>ZoneId</p> */ public Builder propertyName(String propertyName) { this.propertyName = propertyName; return this; } /** * RequestInfo. */ public Builder requestInfo(String requestInfo) { this.requestInfo = requestInfo; return this; } /** * <p>The name of the resource that is defined in the template.</p> * * <strong>example:</strong> * <p>MyECS</p> */ public Builder resourceName(String resourceName) { this.resourceName = resourceName; return this; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>ALIYUN::ECS::InstanceGroup</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public OriginalConstraints build() { return new OriginalConstraints(this); } } } /** * * {@link GetTemplateParameterConstraintsResponseBody} extends {@link TeaModel} * * <p>GetTemplateParameterConstraintsResponseBody</p> */ public static class QueryErrors extends TeaModel { @com.aliyun.core.annotation.NameInMap("ErrorMessage") private String errorMessage; @com.aliyun.core.annotation.NameInMap("ResourceName") private String resourceName; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private QueryErrors(Builder builder) { this.errorMessage = builder.errorMessage; this.resourceName = builder.resourceName; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static QueryErrors create() { return builder().build(); } /** * @return errorMessage */ public String getErrorMessage() { return this.errorMessage; } /** * @return resourceName */ public String getResourceName() { return this.resourceName; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private String errorMessage; private String resourceName; private String resourceType; private Builder() { } private Builder(QueryErrors model) { this.errorMessage = model.errorMessage; this.resourceName = model.resourceName; this.resourceType = model.resourceType; } /** * <p>The error message.</p> * * <strong>example:</strong> * <p>ALIYUN::ECS::InstanceGroup</p> */ public Builder errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } /** * <p>The resource name.</p> * * <strong>example:</strong> * <p>MyECS</p> */ public Builder resourceName(String resourceName) { this.resourceName = resourceName; return this; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>InstanceType is needed while query DataDisk</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public QueryErrors build() { return new QueryErrors(this); } } } /** * * {@link GetTemplateParameterConstraintsResponseBody} extends {@link TeaModel} * * <p>GetTemplateParameterConstraintsResponseBody</p> */ public static class QueryTimeoutDetails extends TeaModel { @com.aliyun.core.annotation.NameInMap("ErrorMessage") private String errorMessage; @com.aliyun.core.annotation.NameInMap("ResourceName") private String resourceName; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private QueryTimeoutDetails(Builder builder) { this.errorMessage = builder.errorMessage; this.resourceName = builder.resourceName; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static QueryTimeoutDetails create() { return builder().build(); } /** * @return errorMessage */ public String getErrorMessage() { return this.errorMessage; } /** * @return resourceName */ public String getResourceName() { return this.resourceName; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private String errorMessage; private String resourceName; private String resourceType; private Builder() { } private Builder(QueryTimeoutDetails model) { this.errorMessage = model.errorMessage; this.resourceName = model.resourceName; this.resourceType = model.resourceType; } /** * <p>Error message.</p> * * <strong>example:</strong> * <p>query property SlaveZoneIds.* in resource rds error, error message: query 8 seconds timeout</p> */ public Builder errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } /** * <p>Resource name.</p> * * <strong>example:</strong> * <p>rds</p> */ public Builder resourceName(String resourceName) { this.resourceName = resourceName; return this; } /** * <p>Resource type.</p> * * <strong>example:</strong> * <p>ALIYUN::RDS::DBInstance</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public QueryTimeoutDetails build() { return new QueryTimeoutDetails(this); } } } /** * * {@link GetTemplateParameterConstraintsResponseBody} extends {@link TeaModel} * * <p>GetTemplateParameterConstraintsResponseBody</p> */ public static class ParameterConstraints extends TeaModel { @com.aliyun.core.annotation.NameInMap("AllowedValues") private java.util.List<String> allowedValues; @com.aliyun.core.annotation.NameInMap("AssociationParameterNames") private java.util.List<String> associationParameterNames; @com.aliyun.core.annotation.NameInMap("Behavior") private String behavior; @com.aliyun.core.annotation.NameInMap("BehaviorReason") private String behaviorReason; @com.aliyun.core.annotation.NameInMap("IllegalValueByParameterConstraints") private java.util.List<?> illegalValueByParameterConstraints; @com.aliyun.core.annotation.NameInMap("IllegalValueByRules") private java.util.List<?> illegalValueByRules; @com.aliyun.core.annotation.NameInMap("NotSupportResources") private java.util.List<NotSupportResources> notSupportResources; @com.aliyun.core.annotation.NameInMap("OriginalConstraints") private java.util.List<OriginalConstraints> originalConstraints; @com.aliyun.core.annotation.NameInMap("ParameterKey") private String parameterKey; @com.aliyun.core.annotation.NameInMap("QueryErrors") private java.util.List<QueryErrors> queryErrors; @com.aliyun.core.annotation.NameInMap("QueryTimeoutDetails") private java.util.List<QueryTimeoutDetails> queryTimeoutDetails; @com.aliyun.core.annotation.NameInMap("Type") private String type; private ParameterConstraints(Builder builder) { this.allowedValues = builder.allowedValues; this.associationParameterNames = builder.associationParameterNames; this.behavior = builder.behavior; this.behaviorReason = builder.behaviorReason; this.illegalValueByParameterConstraints = builder.illegalValueByParameterConstraints; this.illegalValueByRules = builder.illegalValueByRules; this.notSupportResources = builder.notSupportResources; this.originalConstraints = builder.originalConstraints; this.parameterKey = builder.parameterKey; this.queryErrors = builder.queryErrors; this.queryTimeoutDetails = builder.queryTimeoutDetails; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static ParameterConstraints create() { return builder().build(); } /** * @return allowedValues */ public java.util.List<String> getAllowedValues() { return this.allowedValues; } /** * @return associationParameterNames */ public java.util.List<String> getAssociationParameterNames() { return this.associationParameterNames; } /** * @return behavior */ public String getBehavior() { return this.behavior; } /** * @return behaviorReason */ public String getBehaviorReason() { return this.behaviorReason; } /** * @return illegalValueByParameterConstraints */ public java.util.List<?> getIllegalValueByParameterConstraints() { return this.illegalValueByParameterConstraints; } /** * @return illegalValueByRules */ public java.util.List<?> getIllegalValueByRules() { return this.illegalValueByRules; } /** * @return notSupportResources */ public java.util.List<NotSupportResources> getNotSupportResources() { return this.notSupportResources; } /** * @return originalConstraints */ public java.util.List<OriginalConstraints> getOriginalConstraints() { return this.originalConstraints; } /** * @return parameterKey */ public String getParameterKey() { return this.parameterKey; } /** * @return queryErrors */ public java.util.List<QueryErrors> getQueryErrors() { return this.queryErrors; } /** * @return queryTimeoutDetails */ public java.util.List<QueryTimeoutDetails> getQueryTimeoutDetails() { return this.queryTimeoutDetails; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private java.util.List<String> allowedValues; private java.util.List<String> associationParameterNames; private String behavior; private String behaviorReason; private java.util.List<?> illegalValueByParameterConstraints; private java.util.List<?> illegalValueByRules; private java.util.List<NotSupportResources> notSupportResources; private java.util.List<OriginalConstraints> originalConstraints; private String parameterKey; private java.util.List<QueryErrors> queryErrors; private java.util.List<QueryTimeoutDetails> queryTimeoutDetails; private String type; private Builder() { } private Builder(ParameterConstraints model) { this.allowedValues = model.allowedValues; this.associationParameterNames = model.associationParameterNames; this.behavior = model.behavior; this.behaviorReason = model.behaviorReason; this.illegalValueByParameterConstraints = model.illegalValueByParameterConstraints; this.illegalValueByRules = model.illegalValueByRules; this.notSupportResources = model.notSupportResources; this.originalConstraints = model.originalConstraints; this.parameterKey = model.parameterKey; this.queryErrors = model.queryErrors; this.queryTimeoutDetails = model.queryTimeoutDetails; this.type = model.type; } /** * <p>The values of the parameter.</p> */ public Builder allowedValues(java.util.List<String> allowedValues) { this.allowedValues = allowedValues; return this; } /** * <p>The names of the associated parameters.</p> */ public Builder associationParameterNames(java.util.List<String> associationParameterNames) { this.associationParameterNames = associationParameterNames; return this; } /** * <p>The behavior of the parameter. Valid values:</p> * <ul> * <li>NoLimit: No limit is imposed on the value of this parameter.</li> * <li>NotSupport: The value of this parameter cannot be queried.</li> * <li>QueryError: This parameter failed to be queried.</li> * </ul> * <blockquote> * <p>If AllowedValues is not returned, Behavior and BehaviorReason are returned.</p> * </blockquote> * * <strong>example:</strong> * <p>NoLimit</p> */ public Builder behavior(String behavior) { this.behavior = behavior; return this; } /** * <p>The reason why the behavior of the parameter is returned.</p> * * <strong>example:</strong> * <p>No resource property refer to the parameter</p> */ public Builder behaviorReason(String behaviorReason) { this.behaviorReason = behaviorReason; return this; } /** * <p>The values that do not conform to the parameter constraints.</p> * <blockquote> * <p>If AllowedValues is returned, IllegalValueByParameterConstraints and IllegalValueByRules are returned at the same time.</p> * </blockquote> */ public Builder illegalValueByParameterConstraints(java.util.List<?> illegalValueByParameterConstraints) { this.illegalValueByParameterConstraints = illegalValueByParameterConstraints; return this; } /** * <p>The values that do not match the rules in the template.</p> * <blockquote> * <p>If AllowedValues is returned, IllegalValueByParameterConstraints and IllegalValueByRules are returned at the same time.</p> * </blockquote> */ public Builder illegalValueByRules(java.util.List<?> illegalValueByRules) { this.illegalValueByRules = illegalValueByRules; return this; } /** * <p>The unsupported resource in the template.</p> */ public Builder notSupportResources(java.util.List<NotSupportResources> notSupportResources) { this.notSupportResources = notSupportResources; return this; } /** * <p>The original constraint information.</p> */ public Builder originalConstraints(java.util.List<OriginalConstraints> originalConstraints) { this.originalConstraints = originalConstraints; return this; } /** * <p>The name of the parameter.</p> * * <strong>example:</strong> * <p>ZoneInfo</p> */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * <p>The error that is returned when the request fails.</p> */ public Builder queryErrors(java.util.List<QueryErrors> queryErrors) { this.queryErrors = queryErrors; return this; } /** * <p>Query the details of timeout.</p> */ public Builder queryTimeoutDetails(java.util.List<QueryTimeoutDetails> queryTimeoutDetails) { this.queryTimeoutDetails = queryTimeoutDetails; return this; } /** * <p>The data type of the parameter.</p> * * <strong>example:</strong> * <p>String</p> */ public Builder type(String type) { this.type = type; return this; } public ParameterConstraints build() { return new ParameterConstraints(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateRecommendParametersRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateRecommendParametersRequest} extends {@link RequestModel} * * <p>GetTemplateRecommendParametersRequest</p> */ public class GetTemplateRecommendParametersRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Parameters") private java.util.List<Parameters> parameters; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateBody") private String templateBody; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateId") private String templateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateURL") private String templateURL; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateVersion") private String templateVersion; private GetTemplateRecommendParametersRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.parameters = builder.parameters; this.regionId = builder.regionId; this.templateBody = builder.templateBody; this.templateId = builder.templateId; this.templateURL = builder.templateURL; this.templateVersion = builder.templateVersion; } public static Builder builder() { return new Builder(); } public static GetTemplateRecommendParametersRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return parameters */ public java.util.List<Parameters> getParameters() { return this.parameters; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return templateBody */ public String getTemplateBody() { return this.templateBody; } /** * @return templateId */ public String getTemplateId() { return this.templateId; } /** * @return templateURL */ public String getTemplateURL() { return this.templateURL; } /** * @return templateVersion */ public String getTemplateVersion() { return this.templateVersion; } public static final class Builder extends Request.Builder<GetTemplateRecommendParametersRequest, Builder> { private String clientToken; private java.util.List<Parameters> parameters; private String regionId; private String templateBody; private String templateId; private String templateURL; private String templateVersion; private Builder() { super(); } private Builder(GetTemplateRecommendParametersRequest request) { super(request); this.clientToken = request.clientToken; this.parameters = request.parameters; this.regionId = request.regionId; this.templateBody = request.templateBody; this.templateId = request.templateId; this.templateURL = request.templateURL; this.templateVersion = request.templateVersion; } /** * ClientToken. */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * Parameters. */ public Builder parameters(java.util.List<Parameters> parameters) { this.putQueryParameter("Parameters", parameters); this.parameters = parameters; return this; } /** * <p>This parameter is required.</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * TemplateBody. */ public Builder templateBody(String templateBody) { this.putQueryParameter("TemplateBody", templateBody); this.templateBody = templateBody; return this; } /** * TemplateId. */ public Builder templateId(String templateId) { this.putQueryParameter("TemplateId", templateId); this.templateId = templateId; return this; } /** * TemplateURL. */ public Builder templateURL(String templateURL) { this.putQueryParameter("TemplateURL", templateURL); this.templateURL = templateURL; return this; } /** * TemplateVersion. */ public Builder templateVersion(String templateVersion) { this.putQueryParameter("TemplateVersion", templateVersion); this.templateVersion = templateVersion; return this; } @Override public GetTemplateRecommendParametersRequest build() { return new GetTemplateRecommendParametersRequest(this); } } /** * * {@link GetTemplateRecommendParametersRequest} extends {@link TeaModel} * * <p>GetTemplateRecommendParametersRequest</p> */ public static class Parameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("ParameterCandidateValues") private java.util.List<String> parameterCandidateValues; @com.aliyun.core.annotation.NameInMap("ParameterKey") private String parameterKey; @com.aliyun.core.annotation.NameInMap("ParameterValue") private String parameterValue; private Parameters(Builder builder) { this.parameterCandidateValues = builder.parameterCandidateValues; this.parameterKey = builder.parameterKey; this.parameterValue = builder.parameterValue; } public static Builder builder() { return new Builder(); } public static Parameters create() { return builder().build(); } /** * @return parameterCandidateValues */ public java.util.List<String> getParameterCandidateValues() { return this.parameterCandidateValues; } /** * @return parameterKey */ public String getParameterKey() { return this.parameterKey; } /** * @return parameterValue */ public String getParameterValue() { return this.parameterValue; } public static final class Builder { private java.util.List<String> parameterCandidateValues; private String parameterKey; private String parameterValue; private Builder() { } private Builder(Parameters model) { this.parameterCandidateValues = model.parameterCandidateValues; this.parameterKey = model.parameterKey; this.parameterValue = model.parameterValue; } /** * ParameterCandidateValues. */ public Builder parameterCandidateValues(java.util.List<String> parameterCandidateValues) { this.parameterCandidateValues = parameterCandidateValues; return this; } /** * ParameterKey. */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * ParameterValue. */ public Builder parameterValue(String parameterValue) { this.parameterValue = parameterValue; return this; } public Parameters build() { return new Parameters(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateRecommendParametersResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateRecommendParametersResponse} extends {@link TeaModel} * * <p>GetTemplateRecommendParametersResponse</p> */ public class GetTemplateRecommendParametersResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetTemplateRecommendParametersResponseBody body; private GetTemplateRecommendParametersResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetTemplateRecommendParametersResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetTemplateRecommendParametersResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetTemplateRecommendParametersResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetTemplateRecommendParametersResponseBody body); @Override GetTemplateRecommendParametersResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetTemplateRecommendParametersResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetTemplateRecommendParametersResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetTemplateRecommendParametersResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetTemplateRecommendParametersResponseBody body) { this.body = body; return this; } @Override public GetTemplateRecommendParametersResponse build() { return new GetTemplateRecommendParametersResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateRecommendParametersResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateRecommendParametersResponseBody} extends {@link TeaModel} * * <p>GetTemplateRecommendParametersResponseBody</p> */ public class GetTemplateRecommendParametersResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RecommendParameterValues") private java.util.List<RecommendParameterValues> recommendParameterValues; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GetTemplateRecommendParametersResponseBody(Builder builder) { this.recommendParameterValues = builder.recommendParameterValues; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GetTemplateRecommendParametersResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return recommendParameterValues */ public java.util.List<RecommendParameterValues> getRecommendParameterValues() { return this.recommendParameterValues; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<RecommendParameterValues> recommendParameterValues; private String requestId; private Builder() { } private Builder(GetTemplateRecommendParametersResponseBody model) { this.recommendParameterValues = model.recommendParameterValues; this.requestId = model.requestId; } /** * RecommendParameterValues. */ public Builder recommendParameterValues(java.util.List<RecommendParameterValues> recommendParameterValues) { this.recommendParameterValues = recommendParameterValues; return this; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GetTemplateRecommendParametersResponseBody build() { return new GetTemplateRecommendParametersResponseBody(this); } } /** * * {@link GetTemplateRecommendParametersResponseBody} extends {@link TeaModel} * * <p>GetTemplateRecommendParametersResponseBody</p> */ public static class RecommendParameterValues extends TeaModel { @com.aliyun.core.annotation.NameInMap("ParameterKey") private String parameterKey; @com.aliyun.core.annotation.NameInMap("RecommendValue") private String recommendValue; private RecommendParameterValues(Builder builder) { this.parameterKey = builder.parameterKey; this.recommendValue = builder.recommendValue; } public static Builder builder() { return new Builder(); } public static RecommendParameterValues create() { return builder().build(); } /** * @return parameterKey */ public String getParameterKey() { return this.parameterKey; } /** * @return recommendValue */ public String getRecommendValue() { return this.recommendValue; } public static final class Builder { private String parameterKey; private String recommendValue; private Builder() { } private Builder(RecommendParameterValues model) { this.parameterKey = model.parameterKey; this.recommendValue = model.recommendValue; } /** * ParameterKey. */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * RecommendValue. */ public Builder recommendValue(String recommendValue) { this.recommendValue = recommendValue; return this; } public RecommendParameterValues build() { return new RecommendParameterValues(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateRequest} extends {@link RequestModel} * * <p>GetTemplateRequest</p> */ public class GetTemplateRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ChangeSetId") private String changeSetId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IncludePermission") private String includePermission; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IncludeTags") private String includeTags; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackGroupName") private String stackGroupName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateId") private String templateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateStage") private String templateStage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateVersion") private String templateVersion; private GetTemplateRequest(Builder builder) { super(builder); this.changeSetId = builder.changeSetId; this.includePermission = builder.includePermission; this.includeTags = builder.includeTags; this.regionId = builder.regionId; this.stackGroupName = builder.stackGroupName; this.stackId = builder.stackId; this.templateId = builder.templateId; this.templateStage = builder.templateStage; this.templateVersion = builder.templateVersion; } public static Builder builder() { return new Builder(); } public static GetTemplateRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return changeSetId */ public String getChangeSetId() { return this.changeSetId; } /** * @return includePermission */ public String getIncludePermission() { return this.includePermission; } /** * @return includeTags */ public String getIncludeTags() { return this.includeTags; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return stackGroupName */ public String getStackGroupName() { return this.stackGroupName; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return templateId */ public String getTemplateId() { return this.templateId; } /** * @return templateStage */ public String getTemplateStage() { return this.templateStage; } /** * @return templateVersion */ public String getTemplateVersion() { return this.templateVersion; } public static final class Builder extends Request.Builder<GetTemplateRequest, Builder> { private String changeSetId; private String includePermission; private String includeTags; private String regionId; private String stackGroupName; private String stackId; private String templateId; private String templateStage; private String templateVersion; private Builder() { super(); } private Builder(GetTemplateRequest request) { super(request); this.changeSetId = request.changeSetId; this.includePermission = request.includePermission; this.includeTags = request.includeTags; this.regionId = request.regionId; this.stackGroupName = request.stackGroupName; this.stackId = request.stackId; this.templateId = request.templateId; this.templateStage = request.templateStage; this.templateVersion = request.templateVersion; } /** * <p>The ID of the change set.</p> * <blockquote> * <p>You must specify one of the following parameters: StackId, ChangeSetId, StackGroupName, and TemplateId.</p> * </blockquote> * * <strong>example:</strong> * <p>1f6521a4-05af-4975-afe9-bc4b45ad****</p> */ public Builder changeSetId(String changeSetId) { this.putQueryParameter("ChangeSetId", changeSetId); this.changeSetId = changeSetId; return this; } /** * <p>Specifies whether to query the shared information about the template. Valid values:</p> * <ul> * <li>Enabled</li> * <li>Disabled (default)</li> * </ul> * <blockquote> * <p>Only the template owner can query the shared information of a template.</p> * </blockquote> * * <strong>example:</strong> * <p>Enabled</p> */ public Builder includePermission(String includePermission) { this.putQueryParameter("IncludePermission", includePermission); this.includePermission = includePermission; return this; } /** * <p>Specifies whether to query the information about tags. Valid values:</p> * <ul> * <li>Enabled</li> * <li>Disabled (default)</li> * </ul> * <blockquote> * <p>This parameter takes effect only if you specify TemplateId.</p> * </blockquote> * * <strong>example:</strong> * <p>Enabled</p> */ public Builder includeTags(String includeTags) { this.putQueryParameter("IncludeTags", includeTags); this.includeTags = includeTags; return this; } /** * <p>The region ID of the stack or stack group that uses the template. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The name of the stack group.</p> * <blockquote> * <p>You must specify one of the following parameters: StackId, ChangeSetId, StackGroupName, and TemplateId.</p> * </blockquote> * * <strong>example:</strong> * <p>MyStackGroup</p> */ public Builder stackGroupName(String stackGroupName) { this.putQueryParameter("StackGroupName", stackGroupName); this.stackGroupName = stackGroupName; return this; } /** * <p>The ID of the stack.</p> * <blockquote> * <p>You must specify one of the following parameters: StackId, ChangeSetId, StackGroupName, and TemplateId.</p> * </blockquote> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf691****</p> */ public Builder stackId(String stackId) { this.putQueryParameter("StackId", stackId); this.stackId = stackId; return this; } /** * <p>The ID of the template.</p> * <p>This parameter applies to shared and private templates. If the template is a shared template, the value of TemplateId is the same as the value of TemplateARN. You can use the template ID to query a shared template.</p> * <blockquote> * <p>You must specify one of the following parameters: StackId, ChangeSetId, StackGroupName, and TemplateId.</p> * </blockquote> * * <strong>example:</strong> * <p>5ecd1e10-b0e9-4389-a565-e4c15efc****</p> */ public Builder templateId(String templateId) { this.putQueryParameter("TemplateId", templateId); this.templateId = templateId; return this; } /** * <p>The stage of the template. This parameter takes effect only if you specify StackId, ChangeSetId, or StackGroupName.</p> * <p>Valid values:</p> * <ul> * <li>Processed (default): returns the processed template.</li> * <li>Original: returns the original template.</li> * </ul> * * <strong>example:</strong> * <p>Processed</p> */ public Builder templateStage(String templateStage) { this.putQueryParameter("TemplateStage", templateStage); this.templateStage = templateStage; return this; } /** * <p>The version of the template. This parameter takes effect only if you specify TemplateId.<br>If the template is a shared template, you can specify this parameter only if VersionOption is set to AllVersions. For more information, see <a href="https://help.aliyun.com/document_detail/194768.html">SetTemplatePermission</a>.</p> * <p>Valid values: v1 to v100.</p> * * <strong>example:</strong> * <p>v1</p> */ public Builder templateVersion(String templateVersion) { this.putQueryParameter("TemplateVersion", templateVersion); this.templateVersion = templateVersion; return this; } @Override public GetTemplateRequest build() { return new GetTemplateRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateResponse} extends {@link TeaModel} * * <p>GetTemplateResponse</p> */ public class GetTemplateResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetTemplateResponseBody body; private GetTemplateResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetTemplateResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetTemplateResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetTemplateResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetTemplateResponseBody body); @Override GetTemplateResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetTemplateResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetTemplateResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetTemplateResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetTemplateResponseBody body) { this.body = body; return this; } @Override public GetTemplateResponse build() { return new GetTemplateResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateResponseBody} extends {@link TeaModel} * * <p>GetTemplateResponseBody</p> */ public class GetTemplateResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AdditionalInfo") private java.util.Map<String, ?> additionalInfo; @com.aliyun.core.annotation.NameInMap("ChangeSetId") private String changeSetId; @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Interface") private String _interface; @com.aliyun.core.annotation.NameInMap("OwnerId") private String ownerId; @com.aliyun.core.annotation.NameInMap("Permissions") private java.util.List<Permissions> permissions; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("ShareType") private String shareType; @com.aliyun.core.annotation.NameInMap("StackGroupName") private String stackGroupName; @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.NameInMap("TemplateARN") private String templateARN; @com.aliyun.core.annotation.NameInMap("TemplateBody") private String templateBody; @com.aliyun.core.annotation.NameInMap("TemplateId") private String templateId; @com.aliyun.core.annotation.NameInMap("TemplateName") private String templateName; @com.aliyun.core.annotation.NameInMap("TemplateVersion") private String templateVersion; @com.aliyun.core.annotation.NameInMap("UpdateTime") private String updateTime; private GetTemplateResponseBody(Builder builder) { this.additionalInfo = builder.additionalInfo; this.changeSetId = builder.changeSetId; this.createTime = builder.createTime; this.description = builder.description; this._interface = builder._interface; this.ownerId = builder.ownerId; this.permissions = builder.permissions; this.regionId = builder.regionId; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; this.shareType = builder.shareType; this.stackGroupName = builder.stackGroupName; this.stackId = builder.stackId; this.tags = builder.tags; this.templateARN = builder.templateARN; this.templateBody = builder.templateBody; this.templateId = builder.templateId; this.templateName = builder.templateName; this.templateVersion = builder.templateVersion; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static GetTemplateResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return additionalInfo */ public java.util.Map<String, ?> getAdditionalInfo() { return this.additionalInfo; } /** * @return changeSetId */ public String getChangeSetId() { return this.changeSetId; } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return _interface */ public String get_interface() { return this._interface; } /** * @return ownerId */ public String getOwnerId() { return this.ownerId; } /** * @return permissions */ public java.util.List<Permissions> getPermissions() { return this.permissions; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return shareType */ public String getShareType() { return this.shareType; } /** * @return stackGroupName */ public String getStackGroupName() { return this.stackGroupName; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return templateARN */ public String getTemplateARN() { return this.templateARN; } /** * @return templateBody */ public String getTemplateBody() { return this.templateBody; } /** * @return templateId */ public String getTemplateId() { return this.templateId; } /** * @return templateName */ public String getTemplateName() { return this.templateName; } /** * @return templateVersion */ public String getTemplateVersion() { return this.templateVersion; } /** * @return updateTime */ public String getUpdateTime() { return this.updateTime; } public static final class Builder { private java.util.Map<String, ?> additionalInfo; private String changeSetId; private String createTime; private String description; private String _interface; private String ownerId; private java.util.List<Permissions> permissions; private String regionId; private String requestId; private String resourceGroupId; private String shareType; private String stackGroupName; private String stackId; private java.util.List<Tags> tags; private String templateARN; private String templateBody; private String templateId; private String templateName; private String templateVersion; private String updateTime; private Builder() { } private Builder(GetTemplateResponseBody model) { this.additionalInfo = model.additionalInfo; this.changeSetId = model.changeSetId; this.createTime = model.createTime; this.description = model.description; this._interface = model._interface; this.ownerId = model.ownerId; this.permissions = model.permissions; this.regionId = model.regionId; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; this.shareType = model.shareType; this.stackGroupName = model.stackGroupName; this.stackId = model.stackId; this.tags = model.tags; this.templateARN = model.templateARN; this.templateBody = model.templateBody; this.templateId = model.templateId; this.templateName = model.templateName; this.templateVersion = model.templateVersion; this.updateTime = model.updateTime; } /** * <p>Supplementary information for the public template.</p> * * <strong>example:</strong> * <p>{&quot;DeploymentDuration&quot;:null,&quot;Title&quot;:&quot;Self-Built_ElasticSearch_Snapshot_Saved_To_OSS&quot;,&quot;Labels&quot;:{&quot;ResourceTypes&quot;:[&quot;ALIYUN::ECS::Instance&quot;,&quot;ALIYUN::ECS::SecurityGroup&quot;,&quot;ALIYUN::ECS::VPC&quot;,&quot;ALIYUN::ECS::VSwitch&quot;,&quot;ALIYUN::OSS::Bucket&quot;,&quot;ALIYUN::ROS::WaitCondition&quot;,&quot;ALIYUN::ROS::WaitConditionHandle&quot;],&quot;DeployTypes&quot;:[&quot;ROS&quot;],&quot;ApplicationScenes&quot;:[&quot;其他&quot;]},&quot;Provider&quot;:&quot;ROS&quot;,&quot;Categories&quot;:[&quot;Solution&quot;]}</p> */ public Builder additionalInfo(java.util.Map<String, ?> additionalInfo) { this.additionalInfo = additionalInfo; return this; } /** * <p>The ID of the change set. This parameter is returned only if you specify ChangeSetId.</p> * * <strong>example:</strong> * <p>e85abe0c-6528-43fb-ae93-fdf8de22****</p> */ public Builder changeSetId(String changeSetId) { this.changeSetId = changeSetId; return this; } /** * <p>The time when the template was created. This parameter is returned only if you specify TemplateId.</p> * <blockquote> * <ul> * <li>If you specify TemplateVersion, the creation time of the template whose version is specified by TemplateVersion is returned.</li> * <li>If you do not specify TemplateVersion, the creation time of the template whose version is the default version is returned.</li> * </ul> * </blockquote> * * <strong>example:</strong> * <p>2020-11-18T08:49:26</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The description of the template. This parameter is returned only if you specify TemplateId.</p> * * <strong>example:</strong> * <p>ROS template for create ECS instance.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The description of the web UI in the ROS console.</p> * * <strong>example:</strong> * <p>{}</p> */ public Builder _interface(String _interface) { this._interface = _interface; return this; } /** * <p>The ID of the Alibaba Cloud account to which the template belongs. This parameter is returned only if you specify TemplateId.</p> * * <strong>example:</strong> * <p>151266687691****</p> */ public Builder ownerId(String ownerId) { this.ownerId = ownerId; return this; } /** * <p>Details of the sharing status of the template. This parameter is returned only if you specify TemplateId and set IncludePermission to Enabled.</p> * <blockquote> * <ul> * <li>If TemplateVersion is not specified or does not take effect, the details of the sharing status of the template whose version is the default version is returned.</li> * <li>If TemplateVersion is specified and takes effect, the details of the sharing status of the template whose version is specified by TemplateVersion is returned.</li> * </ul> * </blockquote> */ public Builder permissions(java.util.List<Permissions> permissions) { this.permissions = permissions; return this; } /** * <p>The region ID of the stack or stack group that uses the template. This parameter is returned only if you specify StackId, ChangeSetId, or StackGroupName.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The sharing type of the template. This parameter is returned only if you specify TemplateId.</p> * <p>Valid values:</p> * <ul> * <li>Private: The template belongs to the template owner.</li> * <li>Shared: The template is shared by other users.</li> * </ul> * * <strong>example:</strong> * <p>Private</p> */ public Builder shareType(String shareType) { this.shareType = shareType; return this; } /** * <p>The name of the stack group. This parameter is returned only if you specify StackGroupName.</p> * * <strong>example:</strong> * <p>MyStackGroup</p> */ public Builder stackGroupName(String stackGroupName) { this.stackGroupName = stackGroupName; return this; } /** * <p>The ID of the stack. This parameter is returned only if you specify StackId.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf691****</p> */ public Builder stackId(String stackId) { this.stackId = stackId; return this; } /** * <p>The tags of the template.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The Alibaba Cloud Resource Name (ARN) of the template. This parameter is returned only if you specify TemplateId.</p> * * <strong>example:</strong> * <p>acs:ros:<em>:151266687691</em><em><strong>:template/a52f81be-496f-4e1c-a286-8852ab54</strong></em>*</p> */ public Builder templateARN(String templateARN) { this.templateARN = templateARN; return this; } /** * <p>The content of the template.</p> * * <strong>example:</strong> * <p>{&quot;ROSTemplateFormatVersion&quot;: &quot;2015-09-01&quot;}</p> */ public Builder templateBody(String templateBody) { this.templateBody = templateBody; return this; } /** * <p>The ID of the template. This parameter is returned only if you specify TemplateId.</p> * <p>If the template is a shared template, the value of this parameter is the same as the value of TemplateARN.</p> * * <strong>example:</strong> * <p>a52f81be-496f-4e1c-a286-8852ab54****</p> */ public Builder templateId(String templateId) { this.templateId = templateId; return this; } /** * <p>The name of the template. This parameter is returned only if you specify TemplateId.</p> * <blockquote> * <ul> * <li>If you specify TemplateVersion, the name of the template whose version is specified by TemplateVersion is returned.</li> * <li>If you not specify TemplateVersion, the name of the template whose version is the default version is returned.</li> * </ul> * </blockquote> * * <strong>example:</strong> * <p>MyTemplate</p> */ public Builder templateName(String templateName) { this.templateName = templateName; return this; } /** * <p>The version of the template. This parameter is returned only if you specify TemplateId.<br>If TemplateVersion is not specified or does not take effect, the default version is used.</p> * <p>If the template is a shared template, this parameter is returned only if you set VersionOption to AllVersions.</p> * * <strong>example:</strong> * <p>v1</p> */ public Builder templateVersion(String templateVersion) { this.templateVersion = templateVersion; return this; } /** * <p>The time when the template was last updated. This parameter is returned only if you specify TemplateId.</p> * <blockquote> * <ul> * <li>If you specify TemplateVersion, the last update time of the template whose version is specified by TemplateVersion is returned.</li> * <li>If you do not specify TemplateVersion, the last update time of the template whose version is the default version is returned.</li> * </ul> * </blockquote> * * <strong>example:</strong> * <p>2020-12-07T06:11:48</p> */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public GetTemplateResponseBody build() { return new GetTemplateResponseBody(this); } } /** * * {@link GetTemplateResponseBody} extends {@link TeaModel} * * <p>GetTemplateResponseBody</p> */ public static class Permissions extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccountId") private String accountId; @com.aliyun.core.annotation.NameInMap("ShareOption") private String shareOption; @com.aliyun.core.annotation.NameInMap("ShareSource") private String shareSource; @com.aliyun.core.annotation.NameInMap("TemplateVersion") private String templateVersion; @com.aliyun.core.annotation.NameInMap("VersionOption") private String versionOption; private Permissions(Builder builder) { this.accountId = builder.accountId; this.shareOption = builder.shareOption; this.shareSource = builder.shareSource; this.templateVersion = builder.templateVersion; this.versionOption = builder.versionOption; } public static Builder builder() { return new Builder(); } public static Permissions create() { return builder().build(); } /** * @return accountId */ public String getAccountId() { return this.accountId; } /** * @return shareOption */ public String getShareOption() { return this.shareOption; } /** * @return shareSource */ public String getShareSource() { return this.shareSource; } /** * @return templateVersion */ public String getTemplateVersion() { return this.templateVersion; } /** * @return versionOption */ public String getVersionOption() { return this.versionOption; } public static final class Builder { private String accountId; private String shareOption; private String shareSource; private String templateVersion; private String versionOption; private Builder() { } private Builder(Permissions model) { this.accountId = model.accountId; this.shareOption = model.shareOption; this.shareSource = model.shareSource; this.templateVersion = model.templateVersion; this.versionOption = model.versionOption; } /** * <p>The ID of the Alibaba Cloud account with which the template is shared.</p> * * <strong>example:</strong> * <p>142437958638****</p> */ public Builder accountId(String accountId) { this.accountId = accountId; return this; } /** * <p>The sharing option.</p> * <p>The value ShareToAccounts indicates that the template is shared with one or more Alibaba Cloud accounts.</p> * * <strong>example:</strong> * <p>ShareToAccounts</p> */ public Builder shareOption(String shareOption) { this.shareOption = shareOption; return this; } /** * <p>The service that is used for resource sharing. Valid values:</p> * <ul> * <li>ROS: Resources are shared from ROS by using the ROS console or calling the ROS API.</li> * <li>ResourceDirectory: Resources are shared with accounts in a resource directory from Resource Management by using the resource sharing feature.<blockquote> * <ul> * <li>The number of accounts with which resources are shared from ROS is independent of the number of accounts with which resources are shared from the resource directory.</li> * <li>The shared resources from ROS cannot override or overwrite the shared resources from the resource directory.</li> * <li>The shared resources from the resource directory can overwrite the shared resources from ROS.</li> * </ul> * </blockquote> * </li> * </ul> * * <strong>example:</strong> * <p>ROS</p> */ public Builder shareSource(String shareSource) { this.shareSource = shareSource; return this; } /** * <p>The version of the shared template. This parameter is returned only if you set ShareOption to ShareToAccounts and set VersionOption to Specified or Current.</p> * <p>Valid values: v1 to v100.</p> * * <strong>example:</strong> * <p>v1</p> */ public Builder templateVersion(String templateVersion) { this.templateVersion = templateVersion; return this; } /** * <p>The version option for the shared template. This parameter is returned only if you set ShareOption to ShareToAccounts.</p> * <p>Valid values:</p> * <ul> * <li>AllVersions: All template versions are shared.</li> * <li>Latest: Only the latest template version is shared. When the version of the template is updated, Resource Orchestration Service (ROS) updates the shared version to the latest version.</li> * <li>Current: Only the latest template version is shared. When the version of the template is updated, ROS does not update the shared version.</li> * <li>Specified: Only the specified template version is shared.</li> * </ul> * * <strong>example:</strong> * <p>AllVersions</p> */ public Builder versionOption(String versionOption) { this.versionOption = versionOption; return this; } public Permissions build() { return new Permissions(this); } } } /** * * {@link GetTemplateResponseBody} extends {@link TeaModel} * * <p>GetTemplateResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key of the template.</p> * * <strong>example:</strong> * <p>usage</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the template.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateScratchRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateScratchRequest} extends {@link RequestModel} * * <p>GetTemplateScratchRequest</p> */ public class GetTemplateScratchRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ShowDataOption") private String showDataOption; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateScratchId") private String templateScratchId; private GetTemplateScratchRequest(Builder builder) { super(builder); this.regionId = builder.regionId; this.showDataOption = builder.showDataOption; this.templateScratchId = builder.templateScratchId; } public static Builder builder() { return new Builder(); } public static GetTemplateScratchRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return showDataOption */ public String getShowDataOption() { return this.showDataOption; } /** * @return templateScratchId */ public String getTemplateScratchId() { return this.templateScratchId; } public static final class Builder extends Request.Builder<GetTemplateScratchRequest, Builder> { private String regionId; private String showDataOption; private String templateScratchId; private Builder() { super(); } private Builder(GetTemplateScratchRequest request) { super(request); this.regionId = request.regionId; this.showDataOption = request.showDataOption; this.templateScratchId = request.templateScratchId; } /** * <p>The region ID of the resource scenario.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The data display option. Valid values:</p> * <ul> * <li>Sources: displays only the data of source nodes. This setting takes effect only when TemplateScratchType is set to ArchitectureDetection.</li> * <li>Source: displays only the data of the source node. This setting takes effect only when TemplateScratchType is not set to ArchitectureDetection.</li> * <li>Provisions: displays only the data of new nodes. This setting takes effect only when TemplateScratchType is not set to ArchitectureDetection.</li> * <li>All: displays all data.</li> * </ul> * <p>For more information about source nodes and new nodes, see <a href="https://help.aliyun.com/document_detail/352074.html">Overview</a>.</p> * <blockquote> * <p> If you do not specify this parameter, the node data is not displayed.</p> * </blockquote> * * <strong>example:</strong> * <p>Source</p> */ public Builder showDataOption(String showDataOption) { this.putQueryParameter("ShowDataOption", showDataOption); this.showDataOption = showDataOption; return this; } /** * <p>The ID of the resource scenario.</p> * * <strong>example:</strong> * <p>ts-7f7a704cf71c49a6****</p> */ public Builder templateScratchId(String templateScratchId) { this.putQueryParameter("TemplateScratchId", templateScratchId); this.templateScratchId = templateScratchId; return this; } @Override public GetTemplateScratchRequest build() { return new GetTemplateScratchRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateScratchResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateScratchResponse} extends {@link TeaModel} * * <p>GetTemplateScratchResponse</p> */ public class GetTemplateScratchResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetTemplateScratchResponseBody body; private GetTemplateScratchResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetTemplateScratchResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetTemplateScratchResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetTemplateScratchResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetTemplateScratchResponseBody body); @Override GetTemplateScratchResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetTemplateScratchResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetTemplateScratchResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetTemplateScratchResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetTemplateScratchResponseBody body) { this.body = body; return this; } @Override public GetTemplateScratchResponse build() { return new GetTemplateScratchResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateScratchResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateScratchResponseBody} extends {@link TeaModel} * * <p>GetTemplateScratchResponseBody</p> */ public class GetTemplateScratchResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TemplateScratch") private TemplateScratch templateScratch; private GetTemplateScratchResponseBody(Builder builder) { this.requestId = builder.requestId; this.templateScratch = builder.templateScratch; } public static Builder builder() { return new Builder(); } public static GetTemplateScratchResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return templateScratch */ public TemplateScratch getTemplateScratch() { return this.templateScratch; } public static final class Builder { private String requestId; private TemplateScratch templateScratch; private Builder() { } private Builder(GetTemplateScratchResponseBody model) { this.requestId = model.requestId; this.templateScratch = model.templateScratch; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>A8E0EF98-6FBD-5656-8298-FC8194F0F7B7</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The resource scenario.</p> */ public Builder templateScratch(TemplateScratch templateScratch) { this.templateScratch = templateScratch; return this; } public GetTemplateScratchResponseBody build() { return new GetTemplateScratchResponseBody(this); } } /** * * {@link GetTemplateScratchResponseBody} extends {@link TeaModel} * * <p>GetTemplateScratchResponseBody</p> */ public static class PreferenceParameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("ParameterKey") private String parameterKey; @com.aliyun.core.annotation.NameInMap("ParameterValue") private String parameterValue; private PreferenceParameters(Builder builder) { this.parameterKey = builder.parameterKey; this.parameterValue = builder.parameterValue; } public static Builder builder() { return new Builder(); } public static PreferenceParameters create() { return builder().build(); } /** * @return parameterKey */ public String getParameterKey() { return this.parameterKey; } /** * @return parameterValue */ public String getParameterValue() { return this.parameterValue; } public static final class Builder { private String parameterKey; private String parameterValue; private Builder() { } private Builder(PreferenceParameters model) { this.parameterKey = model.parameterKey; this.parameterValue = model.parameterValue; } /** * <p>The parameter name.</p> * * <strong>example:</strong> * <p>DeletionPolicy</p> */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * <p>The parameter value.</p> * * <strong>example:</strong> * <p>Retain</p> */ public Builder parameterValue(String parameterValue) { this.parameterValue = parameterValue; return this; } public PreferenceParameters build() { return new PreferenceParameters(this); } } } /** * * {@link GetTemplateScratchResponseBody} extends {@link TeaModel} * * <p>GetTemplateScratchResponseBody</p> */ public static class SourceResourceGroup extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("ResourceTypeFilter") private java.util.List<String> resourceTypeFilter; private SourceResourceGroup(Builder builder) { this.resourceGroupId = builder.resourceGroupId; this.resourceTypeFilter = builder.resourceTypeFilter; } public static Builder builder() { return new Builder(); } public static SourceResourceGroup create() { return builder().build(); } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceTypeFilter */ public java.util.List<String> getResourceTypeFilter() { return this.resourceTypeFilter; } public static final class Builder { private String resourceGroupId; private java.util.List<String> resourceTypeFilter; private Builder() { } private Builder(SourceResourceGroup model) { this.resourceGroupId = model.resourceGroupId; this.resourceTypeFilter = model.resourceTypeFilter; } /** * <p>The ID of the source resource group.</p> * * <strong>example:</strong> * <p>rg-acfmzawhxxc****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The resource type filters.</p> */ public Builder resourceTypeFilter(java.util.List<String> resourceTypeFilter) { this.resourceTypeFilter = resourceTypeFilter; return this; } public SourceResourceGroup build() { return new SourceResourceGroup(this); } } } /** * * {@link GetTemplateScratchResponseBody} extends {@link TeaModel} * * <p>GetTemplateScratchResponseBody</p> */ public static class SourceResources extends TeaModel { @com.aliyun.core.annotation.NameInMap("RelatedResourceTypeFilter") private java.util.List<String> relatedResourceTypeFilter; @com.aliyun.core.annotation.NameInMap("ResourceId") private String resourceId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private SourceResources(Builder builder) { this.relatedResourceTypeFilter = builder.relatedResourceTypeFilter; this.resourceId = builder.resourceId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static SourceResources create() { return builder().build(); } /** * @return relatedResourceTypeFilter */ public java.util.List<String> getRelatedResourceTypeFilter() { return this.relatedResourceTypeFilter; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private java.util.List<String> relatedResourceTypeFilter; private String resourceId; private String resourceType; private Builder() { } private Builder(SourceResources model) { this.relatedResourceTypeFilter = model.relatedResourceTypeFilter; this.resourceId = model.resourceId; this.resourceType = model.resourceType; } /** * <p>The related resource type filters.</p> */ public Builder relatedResourceTypeFilter(java.util.List<String> relatedResourceTypeFilter) { this.relatedResourceTypeFilter = relatedResourceTypeFilter; return this; } /** * <p>The resource ID.</p> * * <strong>example:</strong> * <p>vpc-m5e7cv7e9mz69sszb****</p> */ public Builder resourceId(String resourceId) { this.resourceId = resourceId; return this; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>ALIYUN::ECS::VPC</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public SourceResources build() { return new SourceResources(this); } } } /** * * {@link GetTemplateScratchResponseBody} extends {@link TeaModel} * * <p>GetTemplateScratchResponseBody</p> */ public static class SourceTag extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceTags") private java.util.Map<String, ?> resourceTags; @com.aliyun.core.annotation.NameInMap("ResourceTypeFilter") private java.util.List<String> resourceTypeFilter; private SourceTag(Builder builder) { this.resourceTags = builder.resourceTags; this.resourceTypeFilter = builder.resourceTypeFilter; } public static Builder builder() { return new Builder(); } public static SourceTag create() { return builder().build(); } /** * @return resourceTags */ public java.util.Map<String, ?> getResourceTags() { return this.resourceTags; } /** * @return resourceTypeFilter */ public java.util.List<String> getResourceTypeFilter() { return this.resourceTypeFilter; } public static final class Builder { private java.util.Map<String, ?> resourceTags; private java.util.List<String> resourceTypeFilter; private Builder() { } private Builder(SourceTag model) { this.resourceTags = model.resourceTags; this.resourceTypeFilter = model.resourceTypeFilter; } /** * <p>The source tags.</p> * * <strong>example:</strong> * <p>{&quot;a&quot;: &quot;b&quot;}</p> */ public Builder resourceTags(java.util.Map<String, ?> resourceTags) { this.resourceTags = resourceTags; return this; } /** * <p>The resource type filters.</p> */ public Builder resourceTypeFilter(java.util.List<String> resourceTypeFilter) { this.resourceTypeFilter = resourceTypeFilter; return this; } public SourceTag build() { return new SourceTag(this); } } } /** * * {@link GetTemplateScratchResponseBody} extends {@link TeaModel} * * <p>GetTemplateScratchResponseBody</p> */ public static class StackProvision extends TeaModel { @com.aliyun.core.annotation.NameInMap("Creatable") private Boolean creatable; @com.aliyun.core.annotation.NameInMap("Importable") private Boolean importable; private StackProvision(Builder builder) { this.creatable = builder.creatable; this.importable = builder.importable; } public static Builder builder() { return new Builder(); } public static StackProvision create() { return builder().build(); } /** * @return creatable */ public Boolean getCreatable() { return this.creatable; } /** * @return importable */ public Boolean getImportable() { return this.importable; } public static final class Builder { private Boolean creatable; private Boolean importable; private Builder() { } private Builder(StackProvision model) { this.creatable = model.creatable; this.importable = model.importable; } /** * <p>Indicates whether the resource is replicated by calling the <a href="https://help.aliyun.com/document_detail/132086.html">CreateStack</a> operation. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder creatable(Boolean creatable) { this.creatable = creatable; return this; } /** * <p>Indicates whether the resource is managed by calling the <a href="https://help.aliyun.com/document_detail/131051.html">CreateChangeSet</a> operation. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder importable(Boolean importable) { this.importable = importable; return this; } public StackProvision build() { return new StackProvision(this); } } } /** * * {@link GetTemplateScratchResponseBody} extends {@link TeaModel} * * <p>GetTemplateScratchResponseBody</p> */ public static class Stacks extends TeaModel { @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; @com.aliyun.core.annotation.NameInMap("UsageType") private String usageType; private Stacks(Builder builder) { this.regionId = builder.regionId; this.stackId = builder.stackId; this.usageType = builder.usageType; } public static Builder builder() { return new Builder(); } public static Stacks create() { return builder().build(); } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return usageType */ public String getUsageType() { return this.usageType; } public static final class Builder { private String regionId; private String stackId; private String usageType; private Builder() { } private Builder(Stacks model) { this.regionId = model.regionId; this.stackId = model.stackId; this.usageType = model.usageType; } /** * <p>The region ID of the stack.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The stack ID.</p> * * <strong>example:</strong> * <p>3708bf6a-3a67-44d4-9eb1-c56704b9****</p> */ public Builder stackId(String stackId) { this.stackId = stackId; return this; } /** * <p>The purpose of the stack. Valid values:</p> * <ul> * <li>ResourceImport: resource management</li> * <li>ArchitectureReplication: resource replication</li> * </ul> * * <strong>example:</strong> * <p>ArchitectureReplication</p> */ public Builder usageType(String usageType) { this.usageType = usageType; return this; } public Stacks build() { return new Stacks(this); } } } /** * * {@link GetTemplateScratchResponseBody} extends {@link TeaModel} * * <p>GetTemplateScratchResponseBody</p> */ public static class TemplateScratch extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("FailedCode") private String failedCode; @com.aliyun.core.annotation.NameInMap("LogicalIdStrategy") private String logicalIdStrategy; @com.aliyun.core.annotation.NameInMap("PreferenceParameters") private java.util.List<PreferenceParameters> preferenceParameters; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("SourceResourceGroup") private SourceResourceGroup sourceResourceGroup; @com.aliyun.core.annotation.NameInMap("SourceResources") private java.util.List<SourceResources> sourceResources; @com.aliyun.core.annotation.NameInMap("SourceTag") private SourceTag sourceTag; @com.aliyun.core.annotation.NameInMap("StackProvision") private StackProvision stackProvision; @com.aliyun.core.annotation.NameInMap("Stacks") private java.util.List<Stacks> stacks; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StatusReason") private String statusReason; @com.aliyun.core.annotation.NameInMap("TemplateScratchData") private java.util.Map<String, ?> templateScratchData; @com.aliyun.core.annotation.NameInMap("TemplateScratchId") private String templateScratchId; @com.aliyun.core.annotation.NameInMap("TemplateScratchType") private String templateScratchType; @com.aliyun.core.annotation.NameInMap("UpdateTime") private String updateTime; private TemplateScratch(Builder builder) { this.createTime = builder.createTime; this.description = builder.description; this.failedCode = builder.failedCode; this.logicalIdStrategy = builder.logicalIdStrategy; this.preferenceParameters = builder.preferenceParameters; this.resourceGroupId = builder.resourceGroupId; this.sourceResourceGroup = builder.sourceResourceGroup; this.sourceResources = builder.sourceResources; this.sourceTag = builder.sourceTag; this.stackProvision = builder.stackProvision; this.stacks = builder.stacks; this.status = builder.status; this.statusReason = builder.statusReason; this.templateScratchData = builder.templateScratchData; this.templateScratchId = builder.templateScratchId; this.templateScratchType = builder.templateScratchType; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static TemplateScratch create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return failedCode */ public String getFailedCode() { return this.failedCode; } /** * @return logicalIdStrategy */ public String getLogicalIdStrategy() { return this.logicalIdStrategy; } /** * @return preferenceParameters */ public java.util.List<PreferenceParameters> getPreferenceParameters() { return this.preferenceParameters; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return sourceResourceGroup */ public SourceResourceGroup getSourceResourceGroup() { return this.sourceResourceGroup; } /** * @return sourceResources */ public java.util.List<SourceResources> getSourceResources() { return this.sourceResources; } /** * @return sourceTag */ public SourceTag getSourceTag() { return this.sourceTag; } /** * @return stackProvision */ public StackProvision getStackProvision() { return this.stackProvision; } /** * @return stacks */ public java.util.List<Stacks> getStacks() { return this.stacks; } /** * @return status */ public String getStatus() { return this.status; } /** * @return statusReason */ public String getStatusReason() { return this.statusReason; } /** * @return templateScratchData */ public java.util.Map<String, ?> getTemplateScratchData() { return this.templateScratchData; } /** * @return templateScratchId */ public String getTemplateScratchId() { return this.templateScratchId; } /** * @return templateScratchType */ public String getTemplateScratchType() { return this.templateScratchType; } /** * @return updateTime */ public String getUpdateTime() { return this.updateTime; } public static final class Builder { private String createTime; private String description; private String failedCode; private String logicalIdStrategy; private java.util.List<PreferenceParameters> preferenceParameters; private String resourceGroupId; private SourceResourceGroup sourceResourceGroup; private java.util.List<SourceResources> sourceResources; private SourceTag sourceTag; private StackProvision stackProvision; private java.util.List<Stacks> stacks; private String status; private String statusReason; private java.util.Map<String, ?> templateScratchData; private String templateScratchId; private String templateScratchType; private String updateTime; private Builder() { } private Builder(TemplateScratch model) { this.createTime = model.createTime; this.description = model.description; this.failedCode = model.failedCode; this.logicalIdStrategy = model.logicalIdStrategy; this.preferenceParameters = model.preferenceParameters; this.resourceGroupId = model.resourceGroupId; this.sourceResourceGroup = model.sourceResourceGroup; this.sourceResources = model.sourceResources; this.sourceTag = model.sourceTag; this.stackProvision = model.stackProvision; this.stacks = model.stacks; this.status = model.status; this.statusReason = model.statusReason; this.templateScratchData = model.templateScratchData; this.templateScratchId = model.templateScratchId; this.templateScratchType = model.templateScratchType; this.updateTime = model.updateTime; } /** * <p>The time at which the resource scenario was created.</p> * <p>The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2021-12-22T01:49:22</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The description of the resource scenario.</p> * * <strong>example:</strong> * <p>The description of the resource scenario.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The status code of the resource scenario that fails to be created.</p> * <blockquote> * <p>This parameter is returned only if you set Status to GENERATE_FAILED.</p> * </blockquote> * * <strong>example:</strong> * <p>InvalidZoneId</p> */ public Builder failedCode(String failedCode) { this.failedCode = failedCode; return this; } /** * <p>The policy based on which the logical ID is generated. Valid values:</p> * <ul> * <li>LongTypePrefixAndIndexSuffix (default): long-type prefix + index-type suffix</li> * <li>LongTypePrefixAndHashSuffix: long-type prefix + hash-type suffix</li> * <li>ShortTypePrefixAndHashSuffix: short-type prefix + hash-type suffix</li> * </ul> * * <strong>example:</strong> * <p>LongTypePrefixAndIndexSuffix</p> */ public Builder logicalIdStrategy(String logicalIdStrategy) { this.logicalIdStrategy = logicalIdStrategy; return this; } /** * <p>The preference parameters of the resource scenario.</p> */ public Builder preferenceParameters(java.util.List<PreferenceParameters> preferenceParameters) { this.preferenceParameters = preferenceParameters; return this; } /** * <p>The ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-acfmzmhzoaad5oq</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The source resource group.</p> */ public Builder sourceResourceGroup(SourceResourceGroup sourceResourceGroup) { this.sourceResourceGroup = sourceResourceGroup; return this; } /** * <p>The source resources.</p> */ public Builder sourceResources(java.util.List<SourceResources> sourceResources) { this.sourceResources = sourceResources; return this; } /** * <p>The source tag.</p> */ public Builder sourceTag(SourceTag sourceTag) { this.sourceTag = sourceTag; return this; } /** * <p>The preset information of the stack.</p> */ public Builder stackProvision(StackProvision stackProvision) { this.stackProvision = stackProvision; return this; } /** * <p>The stacks that are associated with the resource scenario.</p> */ public Builder stacks(java.util.List<Stacks> stacks) { this.stacks = stacks; return this; } /** * <p>The state of the resource scenario. Valid values:</p> * <ul> * <li>GENERATE_IN_PROGRESS: The resource scenario is being created.</li> * <li>GENERATE_COMPLETE: The resource scenario is created.</li> * <li>GENERATE_FAILED: The resource scenario fails to be created.</li> * </ul> * * <strong>example:</strong> * <p>GENERATE_COMPLETE</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The reason why the resource scenario fails to be created.</p> * <blockquote> * <p>This parameter is returned only if you set Status to GENERATE_FAILED.</p> * </blockquote> * * <strong>example:</strong> * <p>Resource ALIYUN::ECS::VPC vpc-m5eauuq80anx59v28**** could not be found for template scratch.</p> */ public Builder statusReason(String statusReason) { this.statusReason = statusReason; return this; } /** * <p>The resource scenario data.</p> */ public Builder templateScratchData(java.util.Map<String, ?> templateScratchData) { this.templateScratchData = templateScratchData; return this; } /** * <p>The ID of the resource scenario.</p> * * <strong>example:</strong> * <p>ts-7f7a704cf71c49a6****</p> */ public Builder templateScratchId(String templateScratchId) { this.templateScratchId = templateScratchId; return this; } /** * <p>The type of the resource scenario. Valid values:</p> * <ul> * <li>ResourceImport: resource management</li> * <li>ArchitectureReplication: resource replication</li> * </ul> * * <strong>example:</strong> * <p>ArchitectureReplication</p> */ public Builder templateScratchType(String templateScratchType) { this.templateScratchType = templateScratchType; return this; } /** * <p>The time at which the resource scenario was updated.</p> * <p>The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2021-12-22T01:49:23</p> */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public TemplateScratch build() { return new TemplateScratch(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateSummaryRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateSummaryRequest} extends {@link RequestModel} * * <p>GetTemplateSummaryRequest</p> */ public class GetTemplateSummaryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ChangeSetId") private String changeSetId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Parameters") private java.util.List<Parameters> parameters; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackGroupName") private String stackGroupName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateBody") private String templateBody; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateId") private String templateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateURL") private String templateURL; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateVersion") private String templateVersion; private GetTemplateSummaryRequest(Builder builder) { super(builder); this.changeSetId = builder.changeSetId; this.clientToken = builder.clientToken; this.parameters = builder.parameters; this.regionId = builder.regionId; this.stackGroupName = builder.stackGroupName; this.stackId = builder.stackId; this.templateBody = builder.templateBody; this.templateId = builder.templateId; this.templateURL = builder.templateURL; this.templateVersion = builder.templateVersion; } public static Builder builder() { return new Builder(); } public static GetTemplateSummaryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return changeSetId */ public String getChangeSetId() { return this.changeSetId; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return parameters */ public java.util.List<Parameters> getParameters() { return this.parameters; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return stackGroupName */ public String getStackGroupName() { return this.stackGroupName; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return templateBody */ public String getTemplateBody() { return this.templateBody; } /** * @return templateId */ public String getTemplateId() { return this.templateId; } /** * @return templateURL */ public String getTemplateURL() { return this.templateURL; } /** * @return templateVersion */ public String getTemplateVersion() { return this.templateVersion; } public static final class Builder extends Request.Builder<GetTemplateSummaryRequest, Builder> { private String changeSetId; private String clientToken; private java.util.List<Parameters> parameters; private String regionId; private String stackGroupName; private String stackId; private String templateBody; private String templateId; private String templateURL; private String templateVersion; private Builder() { super(); } private Builder(GetTemplateSummaryRequest request) { super(request); this.changeSetId = request.changeSetId; this.clientToken = request.clientToken; this.parameters = request.parameters; this.regionId = request.regionId; this.stackGroupName = request.stackGroupName; this.stackId = request.stackId; this.templateBody = request.templateBody; this.templateId = request.templateId; this.templateURL = request.templateURL; this.templateVersion = request.templateVersion; } /** * <p>The ID of the change set.</p> * <p>You can specify only one of the following parameters: TemplateBody, TemplateURL, TemplateId, StackId, ChangeSetId, and StackGroupName.</p> * * <strong>example:</strong> * <p>1f6521a4-05af-4975-afe9-bc4b45ad****</p> */ public Builder changeSetId(String changeSetId) { this.putQueryParameter("ChangeSetId", changeSetId); this.changeSetId = changeSetId; return this; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests.<br>The token can be up to 64 characters in length, and can contain letters, digits, hyphens (-), and underscores (_).<br>For more information, see <a href="https://help.aliyun.com/document_detail/134212.html">Ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-42665544****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The parameters that are defined in the template.</p> */ public Builder parameters(java.util.List<Parameters> parameters) { this.putQueryParameter("Parameters", parameters); this.parameters = parameters; return this; } /** * <p>The region ID of the stack or stack group that uses the template. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter takes effect only when one of the following parameters are specified: StackId, ChangeSetId, and StackGroupName.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The name of the stack group.</p> * <p>You can specify only one of the following parameters: TemplateBody, TemplateURL, TemplateId, StackId, ChangeSetId, and StackGroupName.</p> * * <strong>example:</strong> * <p>my-stack-group</p> */ public Builder stackGroupName(String stackGroupName) { this.putQueryParameter("StackGroupName", stackGroupName); this.stackGroupName = stackGroupName; return this; } /** * <p>The stack ID.</p> * <p>You can specify only one of the following parameters: TemplateBody, TemplateURL, TemplateId, StackId, ChangeSetId, and StackGroupName.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf691****</p> */ public Builder stackId(String stackId) { this.putQueryParameter("StackId", stackId); this.stackId = stackId; return this; } /** * <p>The structure that contains the template body. The template body must be 1 to 524,288 bytes in length.<br>If the length of the template body exceeds the upper limit, we recommend that you add parameters to the HTTP POST request body to prevent request failures caused by excessively long URLs.<br>You can specify only one of the following parameters: TemplateBody, TemplateURL, TemplateId, StackId, ChangeSetId, and StackGroupName.</p> * * <strong>example:</strong> * <p>{&quot;ROSTemplateFormatVersion&quot;:&quot;2015-09-01&quot;}</p> */ public Builder templateBody(String templateBody) { this.putQueryParameter("TemplateBody", templateBody); this.templateBody = templateBody; return this; } /** * <p>The template ID. This parameter applies to shared and private templates.</p> * <p>You can specify only one of the following parameters: TemplateBody, TemplateURL, TemplateId, StackId, ChangeSetId, and StackGroupName.</p> * * <strong>example:</strong> * <p>5ecd1e10-b0e9-4389-a565-e4c15efc****</p> */ public Builder templateId(String templateId) { this.putQueryParameter("TemplateId", templateId); this.templateId = templateId; return this; } /** * <p>The URL of the file that contains the template body. The URL must point to a template that is located on an HTTP or HTTPS web server or in an Object Storage Service (OSS) bucket, such as oss://ros/template/demo or oss://ros/template/demo?RegionId=cn-hangzhou. The template body can be up to 524,288 bytes in length.</p> * <blockquote> * <p>If you do not specify the region ID of the OSS bucket, the value of RegionId is used.</p> * </blockquote> * <p>You can specify only one of the following parameters: TemplateBody, TemplateURL, TemplateId, StackId, ChangeSetId, and StackGroupName.</p> * <p>The URL can be up to 1,024 bytes in length.</p> * * <strong>example:</strong> * <p>oss://ros/template/demo</p> */ public Builder templateURL(String templateURL) { this.putQueryParameter("TemplateURL", templateURL); this.templateURL = templateURL; return this; } /** * <p>The version of the template. This parameter takes effect when TemplateId is specified.</p> * * <strong>example:</strong> * <p>v1</p> */ public Builder templateVersion(String templateVersion) { this.putQueryParameter("TemplateVersion", templateVersion); this.templateVersion = templateVersion; return this; } @Override public GetTemplateSummaryRequest build() { return new GetTemplateSummaryRequest(this); } } /** * * {@link GetTemplateSummaryRequest} extends {@link TeaModel} * * <p>GetTemplateSummaryRequest</p> */ public static class Parameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("ParameterKey") private String parameterKey; @com.aliyun.core.annotation.NameInMap("ParameterValue") private String parameterValue; private Parameters(Builder builder) { this.parameterKey = builder.parameterKey; this.parameterValue = builder.parameterValue; } public static Builder builder() { return new Builder(); } public static Parameters create() { return builder().build(); } /** * @return parameterKey */ public String getParameterKey() { return this.parameterKey; } /** * @return parameterValue */ public String getParameterValue() { return this.parameterValue; } public static final class Builder { private String parameterKey; private String parameterValue; private Builder() { } private Builder(Parameters model) { this.parameterKey = model.parameterKey; this.parameterValue = model.parameterValue; } /** * <p>The name of parameter N that is defined in the template. If you do not specify the name and value of a parameter, Resource Orchestration Service (ROS) uses the default name and value that are defined in the template.</p> * <p>Maximum value of N: 200.</p> * <blockquote> * <p>The Parameters parameter is optional. If you specify Parameters, you must specify both Parameters.N.ParameterKey and Parameters.N.ParameterValue.</p> * </blockquote> * * <strong>example:</strong> * <p>InstanceId</p> */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * <p>The value of parameter N that is defined in the template.</p> * <p>Maximum value of N: 200.</p> * <blockquote> * <p>The Parameters parameter is optional. If you specify Parameters, you must specify both Parameters.N.ParameterKey and Parameters.N.ParameterValue.</p> * </blockquote> * * <strong>example:</strong> * <p>i-rotp2e20whfrs2****</p> */ public Builder parameterValue(String parameterValue) { this.parameterValue = parameterValue; return this; } public Parameters build() { return new Parameters(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateSummaryResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateSummaryResponse} extends {@link TeaModel} * * <p>GetTemplateSummaryResponse</p> */ public class GetTemplateSummaryResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private GetTemplateSummaryResponseBody body; private GetTemplateSummaryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetTemplateSummaryResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public GetTemplateSummaryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetTemplateSummaryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetTemplateSummaryResponseBody body); @Override GetTemplateSummaryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetTemplateSummaryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetTemplateSummaryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetTemplateSummaryResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(GetTemplateSummaryResponseBody body) { this.body = body; return this; } @Override public GetTemplateSummaryResponse build() { return new GetTemplateSummaryResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/GetTemplateSummaryResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 GetTemplateSummaryResponseBody} extends {@link TeaModel} * * <p>GetTemplateSummaryResponseBody</p> */ public class GetTemplateSummaryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Metadata") private java.util.Map<String, ?> metadata; @com.aliyun.core.annotation.NameInMap("Parameters") private java.util.List<java.util.Map<String, ?>> parameters; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceIdentifierSummaries") private java.util.List<ResourceIdentifierSummaries> resourceIdentifierSummaries; @com.aliyun.core.annotation.NameInMap("ResourceTypes") private java.util.List<String> resourceTypes; @com.aliyun.core.annotation.NameInMap("Version") private String version; private GetTemplateSummaryResponseBody(Builder builder) { this.description = builder.description; this.metadata = builder.metadata; this.parameters = builder.parameters; this.requestId = builder.requestId; this.resourceIdentifierSummaries = builder.resourceIdentifierSummaries; this.resourceTypes = builder.resourceTypes; this.version = builder.version; } public static Builder builder() { return new Builder(); } public static GetTemplateSummaryResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return metadata */ public java.util.Map<String, ?> getMetadata() { return this.metadata; } /** * @return parameters */ public java.util.List<java.util.Map<String, ?>> getParameters() { return this.parameters; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceIdentifierSummaries */ public java.util.List<ResourceIdentifierSummaries> getResourceIdentifierSummaries() { return this.resourceIdentifierSummaries; } /** * @return resourceTypes */ public java.util.List<String> getResourceTypes() { return this.resourceTypes; } /** * @return version */ public String getVersion() { return this.version; } public static final class Builder { private String description; private java.util.Map<String, ?> metadata; private java.util.List<java.util.Map<String, ?>> parameters; private String requestId; private java.util.List<ResourceIdentifierSummaries> resourceIdentifierSummaries; private java.util.List<String> resourceTypes; private String version; private Builder() { } private Builder(GetTemplateSummaryResponseBody model) { this.description = model.description; this.metadata = model.metadata; this.parameters = model.parameters; this.requestId = model.requestId; this.resourceIdentifierSummaries = model.resourceIdentifierSummaries; this.resourceTypes = model.resourceTypes; this.version = model.version; } /** * <p>The description of the stack template.</p> * * <strong>example:</strong> * <p>No description</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The metadata that is defined in the template.</p> * * <strong>example:</strong> * <p>{&quot;key&quot;: &quot;value&quot;}</p> */ public Builder metadata(java.util.Map<String, ?> metadata) { this.metadata = metadata; return this; } /** * <p>The declarations of the parameters in the template.</p> */ public Builder parameters(java.util.List<java.util.Map<String, ?>> parameters) { this.parameters = parameters; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84B6E6</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The resource identifier summaries.<br>A summary describes the resource that you want to import and the properties that are used to identify the resource during the import. For example, VpcId is an identifier property of ALIYUN::ECS::VPC.</p> */ public Builder resourceIdentifierSummaries(java.util.List<ResourceIdentifierSummaries> resourceIdentifierSummaries) { this.resourceIdentifierSummaries = resourceIdentifierSummaries; return this; } /** * <p>All resource types that are used in the template.</p> */ public Builder resourceTypes(java.util.List<String> resourceTypes) { this.resourceTypes = resourceTypes; return this; } /** * <p>The version of the template.</p> * * <strong>example:</strong> * <p>2015-09-01</p> */ public Builder version(String version) { this.version = version; return this; } public GetTemplateSummaryResponseBody build() { return new GetTemplateSummaryResponseBody(this); } } /** * * {@link GetTemplateSummaryResponseBody} extends {@link TeaModel} * * <p>GetTemplateSummaryResponseBody</p> */ public static class ResourceIdentifierSummaries extends TeaModel { @com.aliyun.core.annotation.NameInMap("LogicalResourceIds") private java.util.List<String> logicalResourceIds; @com.aliyun.core.annotation.NameInMap("ResourceIdentifiers") private java.util.List<String> resourceIdentifiers; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private ResourceIdentifierSummaries(Builder builder) { this.logicalResourceIds = builder.logicalResourceIds; this.resourceIdentifiers = builder.resourceIdentifiers; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static ResourceIdentifierSummaries create() { return builder().build(); } /** * @return logicalResourceIds */ public java.util.List<String> getLogicalResourceIds() { return this.logicalResourceIds; } /** * @return resourceIdentifiers */ public java.util.List<String> getResourceIdentifiers() { return this.resourceIdentifiers; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private java.util.List<String> logicalResourceIds; private java.util.List<String> resourceIdentifiers; private String resourceType; private Builder() { } private Builder(ResourceIdentifierSummaries model) { this.logicalResourceIds = model.logicalResourceIds; this.resourceIdentifiers = model.resourceIdentifiers; this.resourceType = model.resourceType; } /** * <p>The logical IDs of all resources of the type that is specified by ResouceType in the template.</p> */ public Builder logicalResourceIds(java.util.List<String> logicalResourceIds) { this.logicalResourceIds = logicalResourceIds; return this; } /** * <p>The resource properties. You can use a resource property to identify the resource that you want to manage. For example, VpcId is an identifier property of ALIYUN::ECS::VPC.</p> */ public Builder resourceIdentifiers(java.util.List<String> resourceIdentifiers) { this.resourceIdentifiers = resourceIdentifiers; return this; } /** * <p>The resource type.</p> * <blockquote> * <p>The resource import feature is supported for the resource type.</p> * </blockquote> * * <strong>example:</strong> * <p>ALIYUN::ECS::VPC</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public ResourceIdentifierSummaries build() { return new ResourceIdentifierSummaries(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ImportStacksToStackGroupRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ImportStacksToStackGroupRequest} extends {@link RequestModel} * * <p>ImportStacksToStackGroupRequest</p> */ public class ImportStacksToStackGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperationDescription") private String operationDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperationPreferences") private java.util.Map<String, ?> operationPreferences; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceDirectoryFolderIds") private java.util.List<String> resourceDirectoryFolderIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackArns") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> stackArns; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackGroupName") @com.aliyun.core.annotation.Validation(required = true) private String stackGroupName; private ImportStacksToStackGroupRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.operationDescription = builder.operationDescription; this.operationPreferences = builder.operationPreferences; this.regionId = builder.regionId; this.resourceDirectoryFolderIds = builder.resourceDirectoryFolderIds; this.stackArns = builder.stackArns; this.stackGroupName = builder.stackGroupName; } public static Builder builder() { return new Builder(); } public static ImportStacksToStackGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return operationDescription */ public String getOperationDescription() { return this.operationDescription; } /** * @return operationPreferences */ public java.util.Map<String, ?> getOperationPreferences() { return this.operationPreferences; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceDirectoryFolderIds */ public java.util.List<String> getResourceDirectoryFolderIds() { return this.resourceDirectoryFolderIds; } /** * @return stackArns */ public java.util.List<String> getStackArns() { return this.stackArns; } /** * @return stackGroupName */ public String getStackGroupName() { return this.stackGroupName; } public static final class Builder extends Request.Builder<ImportStacksToStackGroupRequest, Builder> { private String clientToken; private String operationDescription; private java.util.Map<String, ?> operationPreferences; private String regionId; private java.util.List<String> resourceDirectoryFolderIds; private java.util.List<String> stackArns; private String stackGroupName; private Builder() { super(); } private Builder(ImportStacksToStackGroupRequest request) { super(request); this.clientToken = request.clientToken; this.operationDescription = request.operationDescription; this.operationPreferences = request.operationPreferences; this.regionId = request.regionId; this.resourceDirectoryFolderIds = request.resourceDirectoryFolderIds; this.stackArns = request.stackArns; this.stackGroupName = request.stackGroupName; } /** * <p>Ensures the idempotence of the request. This value is generated by the client and must be globally unique. * It cannot exceed 64 characters and can include letters, numbers, hyphens (-), and underscores (_). * For more information, see <a href="https://help.aliyun.com/document_detail/134212.html">How to Ensure Idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-42665544****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Description of the operation.</p> * * <strong>example:</strong> * <p>Import ops stacks to stack group</p> */ public Builder operationDescription(String operationDescription) { this.putQueryParameter("OperationDescription", operationDescription); this.operationDescription = operationDescription; return this; } /** * <p>Operation settings for importing stacks into the stack group.</p> * <p>Includes the following parameters:</p> * <ul> * <li><p>{&quot;FailureToleranceCount&quot;: N}</p> * <p>Failure tolerance count. The number of accounts in which the stack can fail in each region. If this number is exceeded, the operation in that region will stop. If the operation in one region stops, it will not continue in other regions.</p> * <p> The range of N: 0~20.</p> * <p> If FailureToleranceCount is not specified, the default value is 0.</p> * </li> * <li><p>{&quot;FailureTolerancePercentage&quot;: N}</p> * <p> Failure tolerance percentage. The percentage of total accounts in which the stack can fail in each region. If this percentage is exceeded, the operation in that region will stop.</p> * <p> The range of N: 0~100. If the percentage is not an integer, ROS will round down.</p> * <p> If FailureTolerancePercentage is not specified, the default value is 0.</p> * </li> * <li><p>{&quot;MaxConcurrentCount&quot;: N}</p> * <p> Maximum concurrent account count. The number of accounts in which the stack can be deployed simultaneously in each region.</p> * <p> The range of N: 1~20.</p> * <p> If MaxConcurrentCount is not specified, the default value is 1.</p> * </li> * <li><p>{&quot;MaxConcurrentPercentage&quot;: N} Maximum concurrent account percentage.</p> * <p> The percentage of total accounts in which the stack can be deployed simultaneously in each region.</p> * <p> The range of N: 1~100. If the percentage is not an integer, ROS will round down.</p> * <p> If MaxConcurrentPercentage is not specified, the default value is 1.</p> * </li> * <li><p>{&quot;RegionConcurrencyType&quot;: N} * Region-level concurrency type for deploying stack instances, values:</p> * <ul> * <li><p>SEQUENTIAL (default): Deploy sequentially in each specified region, only one region at a time.</p> * </li> * <li><p>PARALLEL: Deploy in parallel across all specified regions.</p> * </li> * </ul> * </li> * </ul> * <p>Multiple parameters are separated by commas (,).</p> * <blockquote> * <ul> * <li>Do not specify both MaxConcurrentCount and MaxConcurrentPercentage. </li> * <li>Do not specify both FailureToleranceCount and FailureTolerancePercentage.</li> * </ul> * </blockquote> * * <strong>example:</strong> * <p>{&quot;FailureToleranceCount&quot;: 1,&quot;MaxConcurrentCount&quot;: 2}</p> */ public Builder operationPreferences(java.util.Map<String, ?> operationPreferences) { String operationPreferencesShrink = shrink(operationPreferences, "OperationPreferences", "json"); this.putQueryParameter("OperationPreferences", operationPreferencesShrink); this.operationPreferences = operationPreferences; return this; } /** * <p>The region ID of the stack group. You can call <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> to view the latest list of Alibaba Cloud regions.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>A list of resource directory folder IDs for the stacks to be imported. A maximum of 10 folders can be added.</p> */ public Builder resourceDirectoryFolderIds(java.util.List<String> resourceDirectoryFolderIds) { String resourceDirectoryFolderIdsShrink = shrink(resourceDirectoryFolderIds, "ResourceDirectoryFolderIds", "json"); this.putQueryParameter("ResourceDirectoryFolderIds", resourceDirectoryFolderIdsShrink); this.resourceDirectoryFolderIds = resourceDirectoryFolderIds; return this; } /** * <p>A list of ARNs for the stacks to be imported into the stack group, in the format <code>acs:ros:${RegionId}:${AccountId}:stack/${StackId}</code>. A maximum of 10 stacks can be added.</p> * <p>This parameter is required.</p> */ public Builder stackArns(java.util.List<String> stackArns) { String stackArnsShrink = shrink(stackArns, "StackArns", "json"); this.putQueryParameter("StackArns", stackArnsShrink); this.stackArns = stackArns; return this; } /** * <p>The name of the stack group. The name must be unique within a single region. It cannot exceed 255 characters and must start with a letter or number, and can include letters, numbers, hyphens (-), and underscores (_).</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>MyStackGroup</p> */ public Builder stackGroupName(String stackGroupName) { this.putQueryParameter("StackGroupName", stackGroupName); this.stackGroupName = stackGroupName; return this; } @Override public ImportStacksToStackGroupRequest build() { return new ImportStacksToStackGroupRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ImportStacksToStackGroupResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ImportStacksToStackGroupResponse} extends {@link TeaModel} * * <p>ImportStacksToStackGroupResponse</p> */ public class ImportStacksToStackGroupResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private ImportStacksToStackGroupResponseBody body; private ImportStacksToStackGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ImportStacksToStackGroupResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public ImportStacksToStackGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ImportStacksToStackGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ImportStacksToStackGroupResponseBody body); @Override ImportStacksToStackGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ImportStacksToStackGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ImportStacksToStackGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ImportStacksToStackGroupResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(ImportStacksToStackGroupResponseBody body) { this.body = body; return this; } @Override public ImportStacksToStackGroupResponse build() { return new ImportStacksToStackGroupResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ImportStacksToStackGroupResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ImportStacksToStackGroupResponseBody} extends {@link TeaModel} * * <p>ImportStacksToStackGroupResponseBody</p> */ public class ImportStacksToStackGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("OperationId") private String operationId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ImportStacksToStackGroupResponseBody(Builder builder) { this.operationId = builder.operationId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ImportStacksToStackGroupResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return operationId */ public String getOperationId() { return this.operationId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String operationId; private String requestId; private Builder() { } private Builder(ImportStacksToStackGroupResponseBody model) { this.operationId = model.operationId; this.requestId = model.requestId; } /** * <p>Operation ID.</p> * * <strong>example:</strong> * <p>6da106ca-1784-4a6f-a7e1-e723863d****</p> */ public Builder operationId(String operationId) { this.operationId = operationId; return this; } /** * <p>Request ID.</p> * * <strong>example:</strong> * <p>14A07460-EBE7-47CA-9757-12CC4761D47A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ImportStacksToStackGroupResponseBody build() { return new ImportStacksToStackGroupResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListAITaskEventsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListAITaskEventsRequest} extends {@link RequestModel} * * <p>ListAITaskEventsRequest</p> */ public class ListAITaskEventsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") private String maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TaskId") private String taskId; private ListAITaskEventsRequest(Builder builder) { super(builder); this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.taskId = builder.taskId; } public static Builder builder() { return new Builder(); } public static ListAITaskEventsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return maxResults */ public String getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return taskId */ public String getTaskId() { return this.taskId; } public static final class Builder extends Request.Builder<ListAITaskEventsRequest, Builder> { private String maxResults; private String nextToken; private String taskId; private Builder() { super(); } private Builder(ListAITaskEventsRequest request) { super(request); this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.taskId = request.taskId; } /** * <p>The maximum number of results to be returned from a single query when the NextToken parameter is used in the query.</p> * <p>Valid values: 1 to 100.</p> * <p>Default value: 50.</p> * * <strong>example:</strong> * <p>50</p> */ public Builder maxResults(String maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.</p> * * <strong>example:</strong> * <p>AAAAAdDWBF2****w==</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The ID of the AI task.</p> * * <strong>example:</strong> * <p>t-asasas*****</p> */ public Builder taskId(String taskId) { this.putQueryParameter("TaskId", taskId); this.taskId = taskId; return this; } @Override public ListAITaskEventsRequest build() { return new ListAITaskEventsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListAITaskEventsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListAITaskEventsResponse} extends {@link TeaModel} * * <p>ListAITaskEventsResponse</p> */ public class ListAITaskEventsResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private ListAITaskEventsResponseBody body; private ListAITaskEventsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListAITaskEventsResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public ListAITaskEventsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListAITaskEventsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListAITaskEventsResponseBody body); @Override ListAITaskEventsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListAITaskEventsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListAITaskEventsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListAITaskEventsResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(ListAITaskEventsResponseBody body) { this.body = body; return this; } @Override public ListAITaskEventsResponse build() { return new ListAITaskEventsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListAITaskEventsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListAITaskEventsResponseBody} extends {@link TeaModel} * * <p>ListAITaskEventsResponseBody</p> */ public class ListAITaskEventsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Events") private java.util.List<Events> events; @com.aliyun.core.annotation.NameInMap("HttpStatusCode") private Integer httpStatusCode; @com.aliyun.core.annotation.NameInMap("NextToken") @com.aliyun.core.annotation.Validation(required = true) private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private String success; @com.aliyun.core.annotation.NameInMap("TaskId") private String taskId; @com.aliyun.core.annotation.NameInMap("TaskStatus") private String taskStatus; @com.aliyun.core.annotation.NameInMap("TaskType") private String taskType; private ListAITaskEventsResponseBody(Builder builder) { this.code = builder.code; this.events = builder.events; this.httpStatusCode = builder.httpStatusCode; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.success = builder.success; this.taskId = builder.taskId; this.taskStatus = builder.taskStatus; this.taskType = builder.taskType; } public static Builder builder() { return new Builder(); } public static ListAITaskEventsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return events */ public java.util.List<Events> getEvents() { return this.events; } /** * @return httpStatusCode */ public Integer getHttpStatusCode() { return this.httpStatusCode; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public String getSuccess() { return this.success; } /** * @return taskId */ public String getTaskId() { return this.taskId; } /** * @return taskStatus */ public String getTaskStatus() { return this.taskStatus; } /** * @return taskType */ public String getTaskType() { return this.taskType; } public static final class Builder { private String code; private java.util.List<Events> events; private Integer httpStatusCode; private String nextToken; private String requestId; private String success; private String taskId; private String taskStatus; private String taskType; private Builder() { } private Builder(ListAITaskEventsResponseBody model) { this.code = model.code; this.events = model.events; this.httpStatusCode = model.httpStatusCode; this.nextToken = model.nextToken; this.requestId = model.requestId; this.success = model.success; this.taskId = model.taskId; this.taskStatus = model.taskStatus; this.taskType = model.taskType; } /** * <p>The error code.</p> * * <strong>example:</strong> * <p>Forbidden</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The events.</p> */ public Builder events(java.util.List<Events> events) { this.events = events; return this; } /** * <p>The HTTP status code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder httpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } /** * <p>A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>AAAAAdDWBF2****w==</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84B6E6F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(String success) { this.success = success; return this; } /** * <p>The ID of the AI task.</p> * * <strong>example:</strong> * <p>t-asasas*****</p> */ public Builder taskId(String taskId) { this.taskId = taskId; return this; } /** * <p>The state of the AI task.</p> * <ul> * <li>PENDING</li> * <li>WAITING</li> * <li>RUNNING</li> * <li>SUCCESS</li> * <li>FAILURE</li> * </ul> * * <strong>example:</strong> * <p>RUNNING</p> */ public Builder taskStatus(String taskStatus) { this.taskStatus = taskStatus; return this; } /** * <p>The type of the AI task.</p> * <ul> * <li>GenerateTemplate: The AI task is used to generate a template.</li> * <li>FixTemplate: The AI task is used to fix a template.</li> * </ul> * * <strong>example:</strong> * <p>GenerateTemplate</p> */ public Builder taskType(String taskType) { this.taskType = taskType; return this; } public ListAITaskEventsResponseBody build() { return new ListAITaskEventsResponseBody(this); } } /** * * {@link ListAITaskEventsResponseBody} extends {@link TeaModel} * * <p>ListAITaskEventsResponseBody</p> */ public static class Events extends TeaModel { @com.aliyun.core.annotation.NameInMap("AgentType") private String agentType; @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("EstimatedProcessingTime") private String estimatedProcessingTime; @com.aliyun.core.annotation.NameInMap("EventData") private String eventData; @com.aliyun.core.annotation.NameInMap("HandlerProcessStatus") private String handlerProcessStatus; @com.aliyun.core.annotation.NameInMap("HandlerType") private String handlerType; private Events(Builder builder) { this.agentType = builder.agentType; this.createTime = builder.createTime; this.estimatedProcessingTime = builder.estimatedProcessingTime; this.eventData = builder.eventData; this.handlerProcessStatus = builder.handlerProcessStatus; this.handlerType = builder.handlerType; } public static Builder builder() { return new Builder(); } public static Events create() { return builder().build(); } /** * @return agentType */ public String getAgentType() { return this.agentType; } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return estimatedProcessingTime */ public String getEstimatedProcessingTime() { return this.estimatedProcessingTime; } /** * @return eventData */ public String getEventData() { return this.eventData; } /** * @return handlerProcessStatus */ public String getHandlerProcessStatus() { return this.handlerProcessStatus; } /** * @return handlerType */ public String getHandlerType() { return this.handlerType; } public static final class Builder { private String agentType; private String createTime; private String estimatedProcessingTime; private String eventData; private String handlerProcessStatus; private String handlerType; private Builder() { } private Builder(Events model) { this.agentType = model.agentType; this.createTime = model.createTime; this.estimatedProcessingTime = model.estimatedProcessingTime; this.eventData = model.eventData; this.handlerProcessStatus = model.handlerProcessStatus; this.handlerType = model.handlerType; } /** * <p>The type of the agent that is used to execute the AI task.</p> * <p>Valid values:</p> * <ul> * <li>GenerateTemplateAgent</li> * <li>FixUserTemplateAgent</li> * </ul> * * <strong>example:</strong> * <p>GenerateTemplateAgent</p> */ public Builder agentType(String agentType) { this.agentType = agentType; return this; } /** * <p>The time when the event was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2019-08-01T04:07:39</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The estimated execution time of the handler. Unit: seconds.</p> * * <strong>example:</strong> * <p>60</p> */ public Builder estimatedProcessingTime(String estimatedProcessingTime) { this.estimatedProcessingTime = estimatedProcessingTime; return this; } /** * <p>The details of the event.</p> * * <strong>example:</strong> * <p>Document template generator started.</p> */ public Builder eventData(String eventData) { this.eventData = eventData; return this; } /** * <p>The execution state of the handler that process the AI task.</p> * <p>Valid values:</p> * <ul> * <li>SUCCESS</li> * <li>RUNNING</li> * <li>FAILURE</li> * </ul> * * <strong>example:</strong> * <p>RUNNING</p> */ public Builder handlerProcessStatus(String handlerProcessStatus) { this.handlerProcessStatus = handlerProcessStatus; return this; } /** * <p>The type of the handler that is used to execute the task.</p> * <p>Valid values:</p> * <ul> * <li>TerraformTemplateGenerator</li> * <li>TemplateGenerator</li> * <li>ROSTemplateModifier</li> * <li>TerraformTemplateStaticFixer</li> * <li>TerraformTemplateDynamicFixer</li> * <li>DocumentTemplateGenerator</li> * <li>TerraformTemplateModifier</li> * <li>TemplateModifier</li> * <li>FixTemplateInputPreprocessor</li> * <li>TemplateStaticFixer</li> * <li>GenerateTemplateInputPreprocessor</li> * <li>ROSTemplateGenerator</li> * <li>TemplateDynamicFixer</li> * <li>BaseDynamicFixer</li> * <li>ROSTemplateStaticFixer</li> * <li>ROSTemplateDynamicFixer</li> * </ul> * * <strong>example:</strong> * <p>ROSTemplateGenerator</p> */ public Builder handlerType(String handlerType) { this.handlerType = handlerType; return this; } public Events build() { return new Events(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListAITasksRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListAITasksRequest} extends {@link RequestModel} * * <p>ListAITasksRequest</p> */ public class ListAITasksRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") private Integer maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TaskId") private String taskId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TaskType") private String taskType; private ListAITasksRequest(Builder builder) { super(builder); this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.taskId = builder.taskId; this.taskType = builder.taskType; } public static Builder builder() { return new Builder(); } public static ListAITasksRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return taskId */ public String getTaskId() { return this.taskId; } /** * @return taskType */ public String getTaskType() { return this.taskType; } public static final class Builder extends Request.Builder<ListAITasksRequest, Builder> { private Integer maxResults; private String nextToken; private String taskId; private String taskType; private Builder() { super(); } private Builder(ListAITasksRequest request) { super(request); this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.taskId = request.taskId; this.taskType = request.taskType; } /** * <p>The maximum number of data entries to return.</p> * * <strong>example:</strong> * <p>50</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.</p> * * <strong>example:</strong> * <p>U12WEI6Ro2ol3wA54rBNS3Cltv2VJyA+7hP4GqbIOhmWU5mWU9ZE3cXLgDaH4KSMRfIYcIVrvtHaAzCoyfo7VQ==</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The ID of the AI task. You can filter AI tasks by task ID.</p> * * <strong>example:</strong> * <p>t-asasas*****</p> */ public Builder taskId(String taskId) { this.putQueryParameter("TaskId", taskId); this.taskId = taskId; return this; } /** * <p>The type of the AI task. You can filter AI tasks by task type.</p> * <ul> * <li>GenerateTemplate: The AI task is used to generate a template.</li> * <li>FixTemplate: The AI task is used to fix a template.</li> * </ul> * <p>If you leave this parameter empty, all task types are queried.</p> * * <strong>example:</strong> * <p>GenerateTemplate</p> */ public Builder taskType(String taskType) { this.putQueryParameter("TaskType", taskType); this.taskType = taskType; return this; } @Override public ListAITasksRequest build() { return new ListAITasksRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListAITasksResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListAITasksResponse} extends {@link TeaModel} * * <p>ListAITasksResponse</p> */ public class ListAITasksResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private ListAITasksResponseBody body; private ListAITasksResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListAITasksResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public ListAITasksResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListAITasksResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListAITasksResponseBody body); @Override ListAITasksResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListAITasksResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListAITasksResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListAITasksResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(ListAITasksResponseBody body) { this.body = body; return this; } @Override public ListAITasksResponse build() { return new ListAITasksResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListAITasksResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListAITasksResponseBody} extends {@link TeaModel} * * <p>ListAITasksResponseBody</p> */ public class ListAITasksResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("HttpStatusCode") private Integer httpStatusCode; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("NextToken") @com.aliyun.core.annotation.Validation(required = true) private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private String success; @com.aliyun.core.annotation.NameInMap("Tasks") private java.util.List<Tasks> tasks; private ListAITasksResponseBody(Builder builder) { this.httpStatusCode = builder.httpStatusCode; this.message = builder.message; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.success = builder.success; this.tasks = builder.tasks; } public static Builder builder() { return new Builder(); } public static ListAITasksResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return httpStatusCode */ public Integer getHttpStatusCode() { return this.httpStatusCode; } /** * @return message */ public String getMessage() { return this.message; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public String getSuccess() { return this.success; } /** * @return tasks */ public java.util.List<Tasks> getTasks() { return this.tasks; } public static final class Builder { private Integer httpStatusCode; private String message; private String nextToken; private String requestId; private String success; private java.util.List<Tasks> tasks; private Builder() { } private Builder(ListAITasksResponseBody model) { this.httpStatusCode = model.httpStatusCode; this.message = model.message; this.nextToken = model.nextToken; this.requestId = model.requestId; this.success = model.success; this.tasks = model.tasks; } /** * <p>The HTTP status code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder httpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } /** * <p>The error message.</p> * * <strong>example:</strong> * <p>You are not authorized to complete this action.</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>U12WEI6Ro2ol3wA54rBNS3Cltv2VJyA+7hP4GqbIOhmWU5mWU9ZE3cXLgDaH4KSMRfIYcIVrvtHaAzCoyfo7VQ==</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(String success) { this.success = success; return this; } /** * <p>The AI tasks.</p> */ public Builder tasks(java.util.List<Tasks> tasks) { this.tasks = tasks; return this; } public ListAITasksResponseBody build() { return new ListAITasksResponseBody(this); } } /** * * {@link ListAITasksResponseBody} extends {@link TeaModel} * * <p>ListAITasksResponseBody</p> */ public static class Tasks extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("Prompt") private String prompt; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StatusReason") private String statusReason; @com.aliyun.core.annotation.NameInMap("TaskId") private String taskId; @com.aliyun.core.annotation.NameInMap("TaskType") private String taskType; @com.aliyun.core.annotation.NameInMap("UpdateTime") private String updateTime; private Tasks(Builder builder) { this.createTime = builder.createTime; this.prompt = builder.prompt; this.status = builder.status; this.statusReason = builder.statusReason; this.taskId = builder.taskId; this.taskType = builder.taskType; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static Tasks create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return prompt */ public String getPrompt() { return this.prompt; } /** * @return status */ public String getStatus() { return this.status; } /** * @return statusReason */ public String getStatusReason() { return this.statusReason; } /** * @return taskId */ public String getTaskId() { return this.taskId; } /** * @return taskType */ public String getTaskType() { return this.taskType; } /** * @return updateTime */ public String getUpdateTime() { return this.updateTime; } public static final class Builder { private String createTime; private String prompt; private String status; private String statusReason; private String taskId; private String taskType; private String updateTime; private Builder() { } private Builder(Tasks model) { this.createTime = model.createTime; this.prompt = model.prompt; this.status = model.status; this.statusReason = model.statusReason; this.taskId = model.taskId; this.taskType = model.taskType; this.updateTime = model.updateTime; } /** * <p>The time when the AI task was created. The time is displayed in UTC. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format.</p> * * <strong>example:</strong> * <p>2023-03-15T03:15:53</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The description of the AI task.</p> * * <strong>example:</strong> * <p>Create an ECS instance and deploy the Nginx service.</p> */ public Builder prompt(String prompt) { this.prompt = prompt; return this; } /** * <p>The state of the AI task.</p> * <ul> * <li>PENDING</li> * <li>WAITING</li> * <li>RUNNING</li> * <li>SUCCESS</li> * <li>FAILURE</li> * </ul> * * <strong>example:</strong> * <p>RUNNING</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The reason why the AI task is in the state.</p> * * <strong>example:</strong> * <p>Handler execution unexpected failure</p> */ public Builder statusReason(String statusReason) { this.statusReason = statusReason; return this; } /** * <p>The ID of the AI task.</p> * * <strong>example:</strong> * <p>t-asasas*****</p> */ public Builder taskId(String taskId) { this.taskId = taskId; return this; } /** * <p>The type of the AI task.</p> * <ul> * <li>GenerateTemplate: The AI task is used to generate a template.</li> * <li>FixTemplate: The AI task is used to fix a template.</li> * </ul> * * <strong>example:</strong> * <p>GenerateTemplate</p> */ public Builder taskType(String taskType) { this.taskType = taskType; return this; } /** * <p>The time when the AI task was updated. The time is displayed in UTC. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format.</p> * * <strong>example:</strong> * <p>2023-11-20T22:00:50</p> */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public Tasks build() { return new Tasks(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListChangeSetsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListChangeSetsRequest} extends {@link RequestModel} * * <p>ListChangeSetsRequest</p> */ public class ListChangeSetsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ChangeSetId") private String changeSetId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ChangeSetName") private java.util.List<String> changeSetName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ExecutionStatus") private java.util.List<String> executionStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackId") @com.aliyun.core.annotation.Validation(required = true) private String stackId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private java.util.List<String> status; private ListChangeSetsRequest(Builder builder) { super(builder); this.changeSetId = builder.changeSetId; this.changeSetName = builder.changeSetName; this.executionStatus = builder.executionStatus; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.stackId = builder.stackId; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static ListChangeSetsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return changeSetId */ public String getChangeSetId() { return this.changeSetId; } /** * @return changeSetName */ public java.util.List<String> getChangeSetName() { return this.changeSetName; } /** * @return executionStatus */ public java.util.List<String> getExecutionStatus() { return this.executionStatus; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return status */ public java.util.List<String> getStatus() { return this.status; } public static final class Builder extends Request.Builder<ListChangeSetsRequest, Builder> { private String changeSetId; private java.util.List<String> changeSetName; private java.util.List<String> executionStatus; private Long pageNumber; private Long pageSize; private String regionId; private String stackId; private java.util.List<String> status; private Builder() { super(); } private Builder(ListChangeSetsRequest request) { super(request); this.changeSetId = request.changeSetId; this.changeSetName = request.changeSetName; this.executionStatus = request.executionStatus; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.stackId = request.stackId; this.status = request.status; } /** * <p>The ID of the change set. If detailed information about the change set is not required, you can use this parameter to replace the GetChangeSet operation.</p> * * <strong>example:</strong> * <p>1f6521a4-05af-4975-afe9-bc4b45ad****</p> */ public Builder changeSetId(String changeSetId) { this.putQueryParameter("ChangeSetId", changeSetId); this.changeSetId = changeSetId; return this; } /** * <p>The name of change set N. Maximum value of N: 5. You can use an asterisk (*) as a wildcard for fuzzy search.</p> * * <strong>example:</strong> * <p>MyChangeSet</p> */ public Builder changeSetName(java.util.List<String> changeSetName) { this.putQueryParameter("ChangeSetName", changeSetName); this.changeSetName = changeSetName; return this; } /** * <p>The execution status of change set N. Maximum value of N: 5. Valid values:</p> * <ul> * <li>UNAVAILABLE</li> * <li>AVAILABLE</li> * <li>EXECUTE_IN_PROGRESS</li> * <li>EXECUTE_COMPLETE</li> * <li>EXECUTE_FAILED</li> * <li>OBSOLETE</li> * </ul> * * <strong>example:</strong> * <p>AVAILABLE</p> */ public Builder executionStatus(java.util.List<String> executionStatus) { this.putQueryParameter("ExecutionStatus", executionStatus); this.executionStatus = executionStatus; return this; } /** * <p>The page number.<br>Pages start from page 1.<br>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.<br>Valid values: 1 to 50.<br>Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the change set. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the stack.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf691****</p> */ public Builder stackId(String stackId) { this.putQueryParameter("StackId", stackId); this.stackId = stackId; return this; } /** * <p>The status of change set N. Maximum value of N: 5. Valid values:</p> * <ul> * <li>CREATE_PENDING</li> * <li>CREATE_IN_PROGRESS</li> * <li>CREATE_COMPLETE</li> * <li>CREATE_FAILED</li> * <li>DELETE_FAILED</li> * <li>DELETE_COMPLETE</li> * </ul> * * <strong>example:</strong> * <p>CREATE_COMPLETE</p> */ public Builder status(java.util.List<String> status) { this.putQueryParameter("Status", status); this.status = status; return this; } @Override public ListChangeSetsRequest build() { return new ListChangeSetsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListChangeSetsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListChangeSetsResponse} extends {@link TeaModel} * * <p>ListChangeSetsResponse</p> */ public class ListChangeSetsResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private ListChangeSetsResponseBody body; private ListChangeSetsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListChangeSetsResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public ListChangeSetsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListChangeSetsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListChangeSetsResponseBody body); @Override ListChangeSetsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListChangeSetsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListChangeSetsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListChangeSetsResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(ListChangeSetsResponseBody body) { this.body = body; return this; } @Override public ListChangeSetsResponse build() { return new ListChangeSetsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListChangeSetsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListChangeSetsResponseBody} extends {@link TeaModel} * * <p>ListChangeSetsResponseBody</p> */ public class ListChangeSetsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ChangeSets") private java.util.List<ChangeSets> changeSets; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private ListChangeSetsResponseBody(Builder builder) { this.changeSets = builder.changeSets; 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 ListChangeSetsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return changeSets */ public java.util.List<ChangeSets> getChangeSets() { return this.changeSets; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<ChangeSets> changeSets; private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private Builder() { } private Builder(ListChangeSetsResponseBody model) { this.changeSets = model.changeSets; this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The change sets.</p> */ public Builder changeSets(java.util.List<ChangeSets> changeSets) { this.changeSets = changeSets; return this; } /** * <p>The page number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84B6E6F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of change sets returned.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public ListChangeSetsResponseBody build() { return new ListChangeSetsResponseBody(this); } } /** * * {@link ListChangeSetsResponseBody} extends {@link TeaModel} * * <p>ListChangeSetsResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * Key. */ public Builder key(String key) { this.key = key; return this; } /** * Value. */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link ListChangeSetsResponseBody} extends {@link TeaModel} * * <p>ListChangeSetsResponseBody</p> */ public static class ChangeSets extends TeaModel { @com.aliyun.core.annotation.NameInMap("ChangeSetId") private String changeSetId; @com.aliyun.core.annotation.NameInMap("ChangeSetName") private String changeSetName; @com.aliyun.core.annotation.NameInMap("ChangeSetType") private String changeSetType; @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("ExecutionStatus") private String executionStatus; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; @com.aliyun.core.annotation.NameInMap("StackName") private String stackName; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StatusReason") private String statusReason; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; private ChangeSets(Builder builder) { this.changeSetId = builder.changeSetId; this.changeSetName = builder.changeSetName; this.changeSetType = builder.changeSetType; this.createTime = builder.createTime; this.description = builder.description; this.executionStatus = builder.executionStatus; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.stackId = builder.stackId; this.stackName = builder.stackName; this.status = builder.status; this.statusReason = builder.statusReason; this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static ChangeSets create() { return builder().build(); } /** * @return changeSetId */ public String getChangeSetId() { return this.changeSetId; } /** * @return changeSetName */ public String getChangeSetName() { return this.changeSetName; } /** * @return changeSetType */ public String getChangeSetType() { return this.changeSetType; } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return executionStatus */ public String getExecutionStatus() { return this.executionStatus; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return stackName */ public String getStackName() { return this.stackName; } /** * @return status */ public String getStatus() { return this.status; } /** * @return statusReason */ public String getStatusReason() { return this.statusReason; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder { private String changeSetId; private String changeSetName; private String changeSetType; private String createTime; private String description; private String executionStatus; private String regionId; private String resourceGroupId; private String stackId; private String stackName; private String status; private String statusReason; private java.util.List<Tags> tags; private Builder() { } private Builder(ChangeSets model) { this.changeSetId = model.changeSetId; this.changeSetName = model.changeSetName; this.changeSetType = model.changeSetType; this.createTime = model.createTime; this.description = model.description; this.executionStatus = model.executionStatus; this.regionId = model.regionId; this.resourceGroupId = model.resourceGroupId; this.stackId = model.stackId; this.stackName = model.stackName; this.status = model.status; this.statusReason = model.statusReason; this.tags = model.tags; } /** * <p>The ID of the change set.</p> * * <strong>example:</strong> * <p>1f6521a4-05af-4975-afe9-bc4b45ad****</p> */ public Builder changeSetId(String changeSetId) { this.changeSetId = changeSetId; return this; } /** * <p>The name of the change set.</p> * * <strong>example:</strong> * <p>MyChangeSet</p> */ public Builder changeSetName(String changeSetName) { this.changeSetName = changeSetName; return this; } /** * <p>The type of the change set.</p> * * <strong>example:</strong> * <p>UPDATE</p> */ public Builder changeSetType(String changeSetType) { this.changeSetType = changeSetType; return this; } /** * <p>The time when the change set was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2019-08-01T05:16:31</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The description of the change set.</p> * * <strong>example:</strong> * <p>It is a demo.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The execution status of the change set.</p> * * <strong>example:</strong> * <p>AVAILABLE</p> */ public Builder executionStatus(String executionStatus) { this.executionStatus = executionStatus; return this; } /** * <p>The region ID of the change set.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * ResourceGroupId. */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The ID of the stack with which the change set is associated.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf691****</p> */ public Builder stackId(String stackId) { this.stackId = stackId; return this; } /** * <p>The name of the stack with which the change set is associated.</p> * * <strong>example:</strong> * <p>MyStack</p> */ public Builder stackName(String stackName) { this.stackName = stackName; return this; } /** * <p>The status of the change set.</p> * * <strong>example:</strong> * <p>CREATE_COMPLETE</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The reason why the change set is in its current state.</p> * * <strong>example:</strong> * <p>too many changes</p> */ public Builder statusReason(String statusReason) { this.statusReason = statusReason; return this; } /** * Tags. */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } public ChangeSets build() { return new ChangeSets(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListDiagnosticsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListDiagnosticsRequest} extends {@link RequestModel} * * <p>ListDiagnosticsRequest</p> */ public class ListDiagnosticsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DiagnosticKey") private String diagnosticKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DiagnosticProduct") private String diagnosticProduct; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") private String maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private String status; private ListDiagnosticsRequest(Builder builder) { super(builder); this.diagnosticKey = builder.diagnosticKey; this.diagnosticProduct = builder.diagnosticProduct; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static ListDiagnosticsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return diagnosticKey */ public String getDiagnosticKey() { return this.diagnosticKey; } /** * @return diagnosticProduct */ public String getDiagnosticProduct() { return this.diagnosticProduct; } /** * @return maxResults */ public String getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder extends Request.Builder<ListDiagnosticsRequest, Builder> { private String diagnosticKey; private String diagnosticProduct; private String maxResults; private String nextToken; private String status; private Builder() { super(); } private Builder(ListDiagnosticsRequest request) { super(request); this.diagnosticKey = request.diagnosticKey; this.diagnosticProduct = request.diagnosticProduct; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.status = request.status; } /** * <p>The keyword in the diagnosis.</p> * * <strong>example:</strong> * <p>2829A772-B154-5A0A-B61B-DEE8A9EE8A5D</p> */ public Builder diagnosticKey(String diagnosticKey) { this.putQueryParameter("DiagnosticKey", diagnosticKey); this.diagnosticKey = diagnosticKey; return this; } /** * <p>The product that is diagnosed.</p> * * <strong>example:</strong> * <p>ros</p> */ public Builder diagnosticProduct(String diagnosticProduct) { this.putQueryParameter("DiagnosticProduct", diagnosticProduct); this.diagnosticProduct = diagnosticProduct; return this; } /** * <p>The maximum number of results to be returned in a single call when NextToken is used for the query.</p> * <p>Valid values: 1 to 100.</p> * <p>Default value: 50.</p> * * <strong>example:</strong> * <p>50</p> */ public Builder maxResults(String maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results.</p> * * <strong>example:</strong> * <p>caeba0bbb2be03f84eb48b699f01****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The diagnosis status.</p> * * <strong>example:</strong> * <p>Complete</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } @Override public ListDiagnosticsRequest build() { return new ListDiagnosticsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListDiagnosticsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListDiagnosticsResponse} extends {@link TeaModel} * * <p>ListDiagnosticsResponse</p> */ public class ListDiagnosticsResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private ListDiagnosticsResponseBody body; private ListDiagnosticsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListDiagnosticsResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public ListDiagnosticsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListDiagnosticsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListDiagnosticsResponseBody body); @Override ListDiagnosticsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListDiagnosticsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListDiagnosticsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListDiagnosticsResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(ListDiagnosticsResponseBody body) { this.body = body; return this; } @Override public ListDiagnosticsResponse build() { return new ListDiagnosticsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListDiagnosticsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListDiagnosticsResponseBody} extends {@link TeaModel} * * <p>ListDiagnosticsResponseBody</p> */ public class ListDiagnosticsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Diagnostics") private java.util.List<Diagnostics> diagnostics; @com.aliyun.core.annotation.NameInMap("HttpStatusCode") private Integer httpStatusCode; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private String success; private ListDiagnosticsResponseBody(Builder builder) { this.diagnostics = builder.diagnostics; this.httpStatusCode = builder.httpStatusCode; this.message = builder.message; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static ListDiagnosticsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return diagnostics */ public java.util.List<Diagnostics> getDiagnostics() { return this.diagnostics; } /** * @return httpStatusCode */ public Integer getHttpStatusCode() { return this.httpStatusCode; } /** * @return message */ public String getMessage() { return this.message; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public String getSuccess() { return this.success; } public static final class Builder { private java.util.List<Diagnostics> diagnostics; private Integer httpStatusCode; private String message; private String nextToken; private String requestId; private String success; private Builder() { } private Builder(ListDiagnosticsResponseBody model) { this.diagnostics = model.diagnostics; this.httpStatusCode = model.httpStatusCode; this.message = model.message; this.nextToken = model.nextToken; this.requestId = model.requestId; this.success = model.success; } /** * <p>The items that are diagnosed.</p> */ public Builder diagnostics(java.util.List<Diagnostics> diagnostics) { this.diagnostics = diagnostics; return this; } /** * <p>The HTTP status code returned. The value 200 indicates that the request was successful.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder httpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } /** * <p>The error message returned.</p> * * <strong>example:</strong> * <p>You are not authorized to complete this action.</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results.</p> * * <strong>example:</strong> * <p>caeba0bbb2be03f84eb48b699f01****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>1983D1C4-88EA-5D7D-90AB-467D01867A5D</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(String success) { this.success = success; return this; } public ListDiagnosticsResponseBody build() { return new ListDiagnosticsResponseBody(this); } } /** * * {@link ListDiagnosticsResponseBody} extends {@link TeaModel} * * <p>ListDiagnosticsResponseBody</p> */ public static class Diagnostics extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("DiagnosticKey") private String diagnosticKey; @com.aliyun.core.annotation.NameInMap("DiagnosticProduct") private String diagnosticProduct; @com.aliyun.core.annotation.NameInMap("ReportId") private String reportId; @com.aliyun.core.annotation.NameInMap("Status") private String status; private Diagnostics(Builder builder) { this.createTime = builder.createTime; this.diagnosticKey = builder.diagnosticKey; this.diagnosticProduct = builder.diagnosticProduct; this.reportId = builder.reportId; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static Diagnostics create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return diagnosticKey */ public String getDiagnosticKey() { return this.diagnosticKey; } /** * @return diagnosticProduct */ public String getDiagnosticProduct() { return this.diagnosticProduct; } /** * @return reportId */ public String getReportId() { return this.reportId; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String createTime; private String diagnosticKey; private String diagnosticProduct; private String reportId; private String status; private Builder() { } private Builder(Diagnostics model) { this.createTime = model.createTime; this.diagnosticKey = model.diagnosticKey; this.diagnosticProduct = model.diagnosticProduct; this.reportId = model.reportId; this.status = model.status; } /** * <p>The time when the diagnostic report was generated.</p> * * <strong>example:</strong> * <p>2022-08-01T02:23:55</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The keyword in the diagnosis.</p> * * <strong>example:</strong> * <p>047D84D9-D3EB-5DA8-87F1-9A7DD5598A5D</p> */ public Builder diagnosticKey(String diagnosticKey) { this.diagnosticKey = diagnosticKey; return this; } /** * <p>The product that is diagnosed.</p> * * <strong>example:</strong> * <p>ros</p> */ public Builder diagnosticProduct(String diagnosticProduct) { this.diagnosticProduct = diagnosticProduct; return this; } /** * <p>The ID of the diagnostic report.</p> * * <strong>example:</strong> * <p>dr-2963bfbcac834f1a****</p> */ public Builder reportId(String reportId) { this.reportId = reportId; return this; } /** * <p>The diagnosis status.</p> * * <strong>example:</strong> * <p>success</p> */ public Builder status(String status) { this.status = status; return this; } public Diagnostics build() { return new Diagnostics(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListResourceTypeRegistrationsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListResourceTypeRegistrationsRequest} extends {@link RequestModel} * * <p>ListResourceTypeRegistrationsRequest</p> */ public class ListResourceTypeRegistrationsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EntityType") private String entityType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegistrationId") private String registrationId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private String status; private ListResourceTypeRegistrationsRequest(Builder builder) { super(builder); this.entityType = builder.entityType; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.registrationId = builder.registrationId; this.resourceType = builder.resourceType; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static ListResourceTypeRegistrationsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return entityType */ public String getEntityType() { return this.entityType; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return registrationId */ public String getRegistrationId() { return this.registrationId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder extends Request.Builder<ListResourceTypeRegistrationsRequest, Builder> { private String entityType; private Integer pageNumber; private Integer pageSize; private String registrationId; private String resourceType; private String status; private Builder() { super(); } private Builder(ListResourceTypeRegistrationsRequest request) { super(request); this.entityType = request.entityType; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.registrationId = request.registrationId; this.resourceType = request.resourceType; this.status = request.status; } /** * <p>The entity type. Set the value to Module.</p> * * <strong>example:</strong> * <p>Module</p> */ public Builder entityType(String entityType) { this.putQueryParameter("EntityType", entityType); this.entityType = entityType; return this; } /** * <p>The page number. Pages start from page 1. Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Valid values: 1 to 50. Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The ID of the registration record.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf691****</p> */ public Builder registrationId(String registrationId) { this.putQueryParameter("RegistrationId", registrationId); this.registrationId = registrationId; return this; } /** * <p>The resource type. The resource type can contain letters, digits, colons (:), and asterisks (*). You can use an asterisk (*) to perform a fuzzy match.</p> * * <strong>example:</strong> * <p>MODULE::MyOrganization::MyService::MyUsecase</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The registration state. Valid values:</p> * <ul> * <li>IN_PROGRESS</li> * <li>COMPLETE</li> * <li>FAILED</li> * </ul> * * <strong>example:</strong> * <p>COMPLETE</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } @Override public ListResourceTypeRegistrationsRequest build() { return new ListResourceTypeRegistrationsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListResourceTypeRegistrationsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListResourceTypeRegistrationsResponse} extends {@link TeaModel} * * <p>ListResourceTypeRegistrationsResponse</p> */ public class ListResourceTypeRegistrationsResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private ListResourceTypeRegistrationsResponseBody body; private ListResourceTypeRegistrationsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListResourceTypeRegistrationsResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public ListResourceTypeRegistrationsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListResourceTypeRegistrationsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListResourceTypeRegistrationsResponseBody body); @Override ListResourceTypeRegistrationsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListResourceTypeRegistrationsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListResourceTypeRegistrationsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListResourceTypeRegistrationsResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(ListResourceTypeRegistrationsResponseBody body) { this.body = body; return this; } @Override public ListResourceTypeRegistrationsResponse build() { return new ListResourceTypeRegistrationsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListResourceTypeRegistrationsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListResourceTypeRegistrationsResponseBody} extends {@link TeaModel} * * <p>ListResourceTypeRegistrationsResponseBody</p> */ public class ListResourceTypeRegistrationsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("Registrations") private java.util.List<Registrations> registrations; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private ListResourceTypeRegistrationsResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.registrations = builder.registrations; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListResourceTypeRegistrationsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return registrations */ public java.util.List<Registrations> getRegistrations() { return this.registrations; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private java.util.List<Registrations> registrations; private String requestId; private Integer totalCount; private Builder() { } private Builder(ListResourceTypeRegistrationsResponseBody model) { this.pageNumber = model.pageNumber; this.registrations = model.registrations; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The page number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The registration records of the resource.</p> */ public Builder registrations(java.util.List<Registrations> registrations) { this.registrations = registrations; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84B6E6</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of registration records.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public ListResourceTypeRegistrationsResponseBody build() { return new ListResourceTypeRegistrationsResponseBody(this); } } /** * * {@link ListResourceTypeRegistrationsResponseBody} extends {@link TeaModel} * * <p>ListResourceTypeRegistrationsResponseBody</p> */ public static class Registrations extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("EntityType") private String entityType; @com.aliyun.core.annotation.NameInMap("RegistrationId") private String registrationId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StatusReason") private String statusReason; @com.aliyun.core.annotation.NameInMap("VersionId") private String versionId; private Registrations(Builder builder) { this.createTime = builder.createTime; this.entityType = builder.entityType; this.registrationId = builder.registrationId; this.resourceType = builder.resourceType; this.status = builder.status; this.statusReason = builder.statusReason; this.versionId = builder.versionId; } public static Builder builder() { return new Builder(); } public static Registrations create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return entityType */ public String getEntityType() { return this.entityType; } /** * @return registrationId */ public String getRegistrationId() { return this.registrationId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return status */ public String getStatus() { return this.status; } /** * @return statusReason */ public String getStatusReason() { return this.statusReason; } /** * @return versionId */ public String getVersionId() { return this.versionId; } public static final class Builder { private String createTime; private String entityType; private String registrationId; private String resourceType; private String status; private String statusReason; private String versionId; private Builder() { } private Builder(Registrations model) { this.createTime = model.createTime; this.entityType = model.entityType; this.registrationId = model.registrationId; this.resourceType = model.resourceType; this.status = model.status; this.statusReason = model.statusReason; this.versionId = model.versionId; } /** * <p>The creation time. The time is displayed in UTC. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format.</p> * * <strong>example:</strong> * <p>2023-03-02T07:28:35</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The entity type. Only Module may be returned.</p> * * <strong>example:</strong> * <p>Module</p> */ public Builder entityType(String entityType) { this.entityType = entityType; return this; } /** * <p>The ID of the registration record.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf691****</p> */ public Builder registrationId(String registrationId) { this.registrationId = registrationId; return this; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>MODULE::MyOrganization::MyService::MyUsecase</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The registration state. Valid values:</p> * <ul> * <li>IN_PROGRESS: The registration is in progress.</li> * <li>COMPLETE: The registration is successful.</li> * <li>FAILED: The registration failed.</li> * </ul> * * <strong>example:</strong> * <p>COMPLETE</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The reason for the state.</p> * * <strong>example:</strong> * <p>Module is created successfully</p> */ public Builder statusReason(String statusReason) { this.statusReason = statusReason; return this; } /** * <p>The version ID.</p> * * <strong>example:</strong> * <p>v1</p> */ public Builder versionId(String versionId) { this.versionId = versionId; return this; } public Registrations build() { return new Registrations(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListResourceTypeVersionsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListResourceTypeVersionsRequest} extends {@link RequestModel} * * <p>ListResourceTypeVersionsRequest</p> */ public class ListResourceTypeVersionsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; private ListResourceTypeVersionsRequest(Builder builder) { super(builder); this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static ListResourceTypeVersionsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder<ListResourceTypeVersionsRequest, Builder> { private String resourceType; private Builder() { super(); } private Builder(ListResourceTypeVersionsRequest request) { super(request); this.resourceType = request.resourceType; } /** * <p>The resource type.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>MODULE::MyOrganization::MyService::MyUsecase</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public ListResourceTypeVersionsRequest build() { return new ListResourceTypeVersionsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListResourceTypeVersionsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListResourceTypeVersionsResponse} extends {@link TeaModel} * * <p>ListResourceTypeVersionsResponse</p> */ public class ListResourceTypeVersionsResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private ListResourceTypeVersionsResponseBody body; private ListResourceTypeVersionsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListResourceTypeVersionsResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public ListResourceTypeVersionsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListResourceTypeVersionsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListResourceTypeVersionsResponseBody body); @Override ListResourceTypeVersionsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListResourceTypeVersionsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListResourceTypeVersionsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListResourceTypeVersionsResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(ListResourceTypeVersionsResponseBody body) { this.body = body; return this; } @Override public ListResourceTypeVersionsResponse build() { return new ListResourceTypeVersionsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListResourceTypeVersionsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListResourceTypeVersionsResponseBody} extends {@link TeaModel} * * <p>ListResourceTypeVersionsResponseBody</p> */ public class ListResourceTypeVersionsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceTypeVersions") private java.util.List<ResourceTypeVersions> resourceTypeVersions; private ListResourceTypeVersionsResponseBody(Builder builder) { this.requestId = builder.requestId; this.resourceTypeVersions = builder.resourceTypeVersions; } public static Builder builder() { return new Builder(); } public static ListResourceTypeVersionsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceTypeVersions */ public java.util.List<ResourceTypeVersions> getResourceTypeVersions() { return this.resourceTypeVersions; } public static final class Builder { private String requestId; private java.util.List<ResourceTypeVersions> resourceTypeVersions; private Builder() { } private Builder(ListResourceTypeVersionsResponseBody model) { this.requestId = model.requestId; this.resourceTypeVersions = model.resourceTypeVersions; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84B6E6F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The versions of the resource types.</p> */ public Builder resourceTypeVersions(java.util.List<ResourceTypeVersions> resourceTypeVersions) { this.resourceTypeVersions = resourceTypeVersions; return this; } public ListResourceTypeVersionsResponseBody build() { return new ListResourceTypeVersionsResponseBody(this); } } /** * * {@link ListResourceTypeVersionsResponseBody} extends {@link TeaModel} * * <p>ListResourceTypeVersionsResponseBody</p> */ public static class ResourceTypeVersions extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("EntityType") private String entityType; @com.aliyun.core.annotation.NameInMap("IsDefaultVersion") private Boolean isDefaultVersion; @com.aliyun.core.annotation.NameInMap("Provider") private String provider; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("UpdateTime") private String updateTime; @com.aliyun.core.annotation.NameInMap("VersionId") private String versionId; private ResourceTypeVersions(Builder builder) { this.createTime = builder.createTime; this.description = builder.description; this.entityType = builder.entityType; this.isDefaultVersion = builder.isDefaultVersion; this.provider = builder.provider; this.resourceType = builder.resourceType; this.updateTime = builder.updateTime; this.versionId = builder.versionId; } public static Builder builder() { return new Builder(); } public static ResourceTypeVersions create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return entityType */ public String getEntityType() { return this.entityType; } /** * @return isDefaultVersion */ public Boolean getIsDefaultVersion() { return this.isDefaultVersion; } /** * @return provider */ public String getProvider() { return this.provider; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return updateTime */ public String getUpdateTime() { return this.updateTime; } /** * @return versionId */ public String getVersionId() { return this.versionId; } public static final class Builder { private String createTime; private String description; private String entityType; private Boolean isDefaultVersion; private String provider; private String resourceType; private String updateTime; private String versionId; private Builder() { } private Builder(ResourceTypeVersions model) { this.createTime = model.createTime; this.description = model.description; this.entityType = model.entityType; this.isDefaultVersion = model.isDefaultVersion; this.provider = model.provider; this.resourceType = model.resourceType; this.updateTime = model.updateTime; this.versionId = model.versionId; } /** * <p>The time when the version was created. The time is displayed in UTC. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format.</p> * * <strong>example:</strong> * <p>2023-02-24T08:25:21</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The description of the version.</p> * * <strong>example:</strong> * <p>It is a demo.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The entity type. Only Module may be returned.</p> * * <strong>example:</strong> * <p>Module</p> */ public Builder entityType(String entityType) { this.entityType = entityType; return this; } /** * <p>Indicates whether the version is the default version. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder isDefaultVersion(Boolean isDefaultVersion) { this.isDefaultVersion = isDefaultVersion; return this; } /** * <p>The provider of the resource type. Valid values:</p> * <ul> * <li>ROS: ROS</li> * <li>Self: yourself</li> * </ul> * * <strong>example:</strong> * <p>ROS</p> */ public Builder provider(String provider) { this.provider = provider; return this; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>MODULE::MyOrganization::MyService::MyUsecase</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The time when the version was updated. The time is displayed in UTC. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format.</p> * * <strong>example:</strong> * <p>2023-02-24T08:25:21</p> */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } /** * <p>The version ID.</p> * * <strong>example:</strong> * <p>v1</p> */ public Builder versionId(String versionId) { this.versionId = versionId; return this; } public ResourceTypeVersions build() { return new ResourceTypeVersions(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListResourceTypesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListResourceTypesRequest} extends {@link RequestModel} * * <p>ListResourceTypesRequest</p> */ public class ListResourceTypesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EntityType") private String entityType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Provider") private String provider; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private ListResourceTypesRequest(Builder builder) { super(builder); this.entityType = builder.entityType; this.provider = builder.provider; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static ListResourceTypesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return entityType */ public String getEntityType() { return this.entityType; } /** * @return provider */ public String getProvider() { return this.provider; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder<ListResourceTypesRequest, Builder> { private String entityType; private String provider; private String resourceType; private Builder() { super(); } private Builder(ListResourceTypesRequest request) { super(request); this.entityType = request.entityType; this.provider = request.provider; this.resourceType = request.resourceType; } /** * <p>The entity type. Valid values:</p> * <ul> * <li>All: all types of resources.</li> * <li>Resource (default): regular resources. For more information, see <a href="https://help.aliyun.com/document_detail/28863.html">Resources</a>.</li> * <li>DataSource: DataSource resources. For more information, see <a href="https://help.aliyun.com/document_detail/404753.html">DataSource resources</a>.</li> * <li>Module: modules.</li> * </ul> * * <strong>example:</strong> * <p>Resource</p> */ public Builder entityType(String entityType) { this.putQueryParameter("EntityType", entityType); this.entityType = entityType; return this; } /** * <p>The provider of the resource type. Valid values:</p> * <ul> * <li>ROS (default): The resource type is provided by Resource Orchestration Service (ROS).</li> * <li>Self: The resource type is provided by you.</li> * </ul> * * <strong>example:</strong> * <p>ROS</p> */ public Builder provider(String provider) { this.putQueryParameter("Provider", provider); this.provider = provider; return this; } /** * <p>The resource type. The resource type can contain letters, digits, colons (:), and asterisks (*). You can use an asterisk (*) to perform a fuzzy match.</p> * * <strong>example:</strong> * <p>MODULE::MyOrganization::MyService::MyUsecase</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public ListResourceTypesRequest build() { return new ListResourceTypesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListResourceTypesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListResourceTypesResponse} extends {@link TeaModel} * * <p>ListResourceTypesResponse</p> */ public class ListResourceTypesResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private ListResourceTypesResponseBody body; private ListResourceTypesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListResourceTypesResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public ListResourceTypesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListResourceTypesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListResourceTypesResponseBody body); @Override ListResourceTypesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListResourceTypesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListResourceTypesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListResourceTypesResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(ListResourceTypesResponseBody body) { this.body = body; return this; } @Override public ListResourceTypesResponse build() { return new ListResourceTypesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListResourceTypesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListResourceTypesResponseBody} extends {@link TeaModel} * * <p>ListResourceTypesResponseBody</p> */ public class ListResourceTypesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceTypeSummaries") private java.util.List<ResourceTypeSummaries> resourceTypeSummaries; @com.aliyun.core.annotation.NameInMap("ResourceTypes") private java.util.List<String> resourceTypes; private ListResourceTypesResponseBody(Builder builder) { this.requestId = builder.requestId; this.resourceTypeSummaries = builder.resourceTypeSummaries; this.resourceTypes = builder.resourceTypes; } public static Builder builder() { return new Builder(); } public static ListResourceTypesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceTypeSummaries */ public java.util.List<ResourceTypeSummaries> getResourceTypeSummaries() { return this.resourceTypeSummaries; } /** * @return resourceTypes */ public java.util.List<String> getResourceTypes() { return this.resourceTypes; } public static final class Builder { private String requestId; private java.util.List<ResourceTypeSummaries> resourceTypeSummaries; private java.util.List<String> resourceTypes; private Builder() { } private Builder(ListResourceTypesResponseBody model) { this.requestId = model.requestId; this.resourceTypeSummaries = model.resourceTypeSummaries; this.resourceTypes = model.resourceTypes; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>EA00860C-ECAF-5253-A1F9-8198695A7157</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The resource type summaries.</p> */ public Builder resourceTypeSummaries(java.util.List<ResourceTypeSummaries> resourceTypeSummaries) { this.resourceTypeSummaries = resourceTypeSummaries; return this; } /** * <p>The array of resource types.</p> */ public Builder resourceTypes(java.util.List<String> resourceTypes) { this.resourceTypes = resourceTypes; return this; } public ListResourceTypesResponseBody build() { return new ListResourceTypesResponseBody(this); } } /** * * {@link ListResourceTypesResponseBody} extends {@link TeaModel} * * <p>ListResourceTypesResponseBody</p> */ public static class ResourceTypeSummaries extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("DefaultVersionId") private String defaultVersionId; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("EntityType") private String entityType; @com.aliyun.core.annotation.NameInMap("LatestVersionId") private String latestVersionId; @com.aliyun.core.annotation.NameInMap("Provider") private String provider; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("TotalVersionCount") private Integer totalVersionCount; @com.aliyun.core.annotation.NameInMap("UpdateTime") private String updateTime; private ResourceTypeSummaries(Builder builder) { this.createTime = builder.createTime; this.defaultVersionId = builder.defaultVersionId; this.description = builder.description; this.entityType = builder.entityType; this.latestVersionId = builder.latestVersionId; this.provider = builder.provider; this.resourceType = builder.resourceType; this.totalVersionCount = builder.totalVersionCount; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static ResourceTypeSummaries create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return defaultVersionId */ public String getDefaultVersionId() { return this.defaultVersionId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return entityType */ public String getEntityType() { return this.entityType; } /** * @return latestVersionId */ public String getLatestVersionId() { return this.latestVersionId; } /** * @return provider */ public String getProvider() { return this.provider; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return totalVersionCount */ public Integer getTotalVersionCount() { return this.totalVersionCount; } /** * @return updateTime */ public String getUpdateTime() { return this.updateTime; } public static final class Builder { private String createTime; private String defaultVersionId; private String description; private String entityType; private String latestVersionId; private String provider; private String resourceType; private Integer totalVersionCount; private String updateTime; private Builder() { } private Builder(ResourceTypeSummaries model) { this.createTime = model.createTime; this.defaultVersionId = model.defaultVersionId; this.description = model.description; this.entityType = model.entityType; this.latestVersionId = model.latestVersionId; this.provider = model.provider; this.resourceType = model.resourceType; this.totalVersionCount = model.totalVersionCount; this.updateTime = model.updateTime; } /** * <p>The creation time. The time is displayed in UTC. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format.</p> * * <strong>example:</strong> * <p>2023-02-24T08:25:21</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The ID of the default version.</p> * * <strong>example:</strong> * <p>v1</p> */ public Builder defaultVersionId(String defaultVersionId) { this.defaultVersionId = defaultVersionId; return this; } /** * <p>The description of the resource type.</p> * * <strong>example:</strong> * <p>It is a demo.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The entity type. Valid values:</p> * <ul> * <li>Resource: regular resources.</li> * <li>DataSource: DataSource resources.</li> * <li>Module: modules.</li> * </ul> * * <strong>example:</strong> * <p>Module</p> */ public Builder entityType(String entityType) { this.entityType = entityType; return this; } /** * <p>The ID of the latest version.</p> * * <strong>example:</strong> * <p>v10</p> */ public Builder latestVersionId(String latestVersionId) { this.latestVersionId = latestVersionId; return this; } /** * <p>The provider of the resource type. Valid values:</p> * <ul> * <li>ROS: The resource type is provided by ROS.</li> * <li>Self: The resource type is provided by you.</li> * </ul> * * <strong>example:</strong> * <p>ROS</p> */ public Builder provider(String provider) { this.provider = provider; return this; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>MODULE::MyOrganization::MyService::MyUsecase</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The number of versions.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder totalVersionCount(Integer totalVersionCount) { this.totalVersionCount = totalVersionCount; return this; } /** * <p>The update time. The time is displayed in UTC. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format.</p> * * <strong>example:</strong> * <p>2023-02-24T08:25:21</p> */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public ResourceTypeSummaries build() { return new ResourceTypeSummaries(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListStackEventsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListStackEventsRequest} extends {@link RequestModel} * * <p>ListStackEventsRequest</p> */ public class ListStackEventsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LogicalResourceId") private java.util.List<String> logicalResourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") private java.util.List<String> resourceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackId") @com.aliyun.core.annotation.Validation(required = true) private String stackId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private java.util.List<String> status; private ListStackEventsRequest(Builder builder) { super(builder); this.logicalResourceId = builder.logicalResourceId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceType = builder.resourceType; this.stackId = builder.stackId; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static ListStackEventsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return logicalResourceId */ public java.util.List<String> getLogicalResourceId() { return this.logicalResourceId; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceType */ public java.util.List<String> getResourceType() { return this.resourceType; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return status */ public java.util.List<String> getStatus() { return this.status; } public static final class Builder extends Request.Builder<ListStackEventsRequest, Builder> { private java.util.List<String> logicalResourceId; private Long pageNumber; private Long pageSize; private String regionId; private java.util.List<String> resourceType; private String stackId; private java.util.List<String> status; private Builder() { super(); } private Builder(ListStackEventsRequest request) { super(request); this.logicalResourceId = request.logicalResourceId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceType = request.resourceType; this.stackId = request.stackId; this.status = request.status; } /** * <p>The logical IDs of the resources.</p> * * <strong>example:</strong> * <p>WebServer</p> */ public Builder logicalResourceId(java.util.List<String> logicalResourceId) { this.putQueryParameter("LogicalResourceId", logicalResourceId); this.logicalResourceId = logicalResourceId; return this; } /** * <p>The number of the page to return.<br>Pages start from page 1.<br>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries to return on each page.<br>Maximum value: 50.<br>Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the stack. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The resource types.</p> * * <strong>example:</strong> * <p>ALIYUN::ECS::Instance</p> */ public Builder resourceType(java.util.List<String> resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The stack ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf691****</p> */ public Builder stackId(String stackId) { this.putQueryParameter("StackId", stackId); this.stackId = stackId; return this; } /** * <p>The status of the resource.</p> * * <strong>example:</strong> * <p>CREATE_IN_PROGRESS</p> */ public Builder status(java.util.List<String> status) { this.putQueryParameter("Status", status); this.status = status; return this; } @Override public ListStackEventsRequest build() { return new ListStackEventsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListStackEventsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListStackEventsResponse} extends {@link TeaModel} * * <p>ListStackEventsResponse</p> */ public class ListStackEventsResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private ListStackEventsResponseBody body; private ListStackEventsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListStackEventsResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public ListStackEventsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListStackEventsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListStackEventsResponseBody body); @Override ListStackEventsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListStackEventsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListStackEventsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListStackEventsResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(ListStackEventsResponseBody body) { this.body = body; return this; } @Override public ListStackEventsResponse build() { return new ListStackEventsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListStackEventsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListStackEventsResponseBody} extends {@link TeaModel} * * <p>ListStackEventsResponseBody</p> */ public class ListStackEventsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Events") private java.util.List<Events> events; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private ListStackEventsResponseBody(Builder builder) { this.events = builder.events; 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 ListStackEventsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return events */ public java.util.List<Events> getEvents() { return this.events; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Events> events; private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private Builder() { } private Builder(ListStackEventsResponseBody model) { this.events = model.events; this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The events.</p> */ public Builder events(java.util.List<Events> events) { this.events = events; return this; } /** * <p>The page number of the returned page.<br>Pages start from page 1.<br>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The number of entries returned per page.<br>Maximum value: 50.<br>Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84B6E6</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of returned events.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public ListStackEventsResponseBody build() { return new ListStackEventsResponseBody(this); } } /** * * {@link ListStackEventsResponseBody} extends {@link TeaModel} * * <p>ListStackEventsResponseBody</p> */ public static class Events extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("EventId") private String eventId; @com.aliyun.core.annotation.NameInMap("LogicalResourceId") private String logicalResourceId; @com.aliyun.core.annotation.NameInMap("PhysicalResourceId") private String physicalResourceId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; @com.aliyun.core.annotation.NameInMap("StackName") private String stackName; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StatusReason") private String statusReason; private Events(Builder builder) { this.createTime = builder.createTime; this.eventId = builder.eventId; this.logicalResourceId = builder.logicalResourceId; this.physicalResourceId = builder.physicalResourceId; this.resourceType = builder.resourceType; this.stackId = builder.stackId; this.stackName = builder.stackName; this.status = builder.status; this.statusReason = builder.statusReason; } public static Builder builder() { return new Builder(); } public static Events create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return eventId */ public String getEventId() { return this.eventId; } /** * @return logicalResourceId */ public String getLogicalResourceId() { return this.logicalResourceId; } /** * @return physicalResourceId */ public String getPhysicalResourceId() { return this.physicalResourceId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return stackName */ public String getStackName() { return this.stackName; } /** * @return status */ public String getStatus() { return this.status; } /** * @return statusReason */ public String getStatusReason() { return this.statusReason; } public static final class Builder { private String createTime; private String eventId; private String logicalResourceId; private String physicalResourceId; private String resourceType; private String stackId; private String stackName; private String status; private String statusReason; private Builder() { } private Builder(Events model) { this.createTime = model.createTime; this.eventId = model.eventId; this.logicalResourceId = model.logicalResourceId; this.physicalResourceId = model.physicalResourceId; this.resourceType = model.resourceType; this.stackId = model.stackId; this.stackName = model.stackName; this.status = model.status; this.statusReason = model.statusReason; } /** * <p>The time when the event was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2019-08-01T04:07:39</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The event ID.</p> * * <strong>example:</strong> * <p>0086612d-77cf-4056-b0b5-ff8e94ad****</p> */ public Builder eventId(String eventId) { this.eventId = eventId; return this; } /** * <p>The logical ID of the resource. The logical ID indicates the name of the resource that is defined in the template.</p> * * <strong>example:</strong> * <p>WebServer</p> */ public Builder logicalResourceId(String logicalResourceId) { this.logicalResourceId = logicalResourceId; return this; } /** * <p>The physical ID of the resource.</p> * * <strong>example:</strong> * <p>i-m5e3tfdbinchnexh****</p> */ public Builder physicalResourceId(String physicalResourceId) { this.physicalResourceId = physicalResourceId; return this; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>ALIYUN::ECS::Instance</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The stack ID.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf691****</p> */ public Builder stackId(String stackId) { this.stackId = stackId; return this; } /** * <p>The stack name.</p> * * <strong>example:</strong> * <p>StackName</p> */ public Builder stackName(String stackName) { this.stackName = stackName; return this; } /** * <p>The state of the resource.</p> * * <strong>example:</strong> * <p>CREATE_COMPLETE</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The reason why the resource is in the current state.</p> * * <strong>example:</strong> * <p>state changed</p> */ public Builder statusReason(String statusReason) { this.statusReason = statusReason; return this; } public Events build() { return new Events(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListStackGroupOperationResultsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListStackGroupOperationResultsRequest} extends {@link RequestModel} * * <p>ListStackGroupOperationResultsRequest</p> */ public class ListStackGroupOperationResultsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperationId") @com.aliyun.core.annotation.Validation(required = true) private String operationId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private ListStackGroupOperationResultsRequest(Builder builder) { super(builder); this.operationId = builder.operationId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static ListStackGroupOperationResultsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return operationId */ public String getOperationId() { return this.operationId; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<ListStackGroupOperationResultsRequest, Builder> { private String operationId; private Long pageNumber; private Long pageSize; private String regionId; private Builder() { super(); } private Builder(ListStackGroupOperationResultsRequest request) { super(request); this.operationId = request.operationId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; } /** * <p>The ID of the operation.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/151342.html">ListStackGroupOperations</a> operation to query the operation ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>6da106ca-1784-4a6f-a7e1-e723863d****</p> */ public Builder operationId(String operationId) { this.putQueryParameter("OperationId", operationId); this.operationId = operationId; return this; } /** * <p>The number of the page to return.</p> * <ul> * <li>Pages start from page 1.</li> * <li>Default value: 1.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries to return on each page.</p> * <ul> * <li>Valid values: 1 to 50.</li> * <li>Default value: 10.</li> * </ul> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the stack group.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public ListStackGroupOperationResultsRequest build() { return new ListStackGroupOperationResultsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListStackGroupOperationResultsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListStackGroupOperationResultsResponse} extends {@link TeaModel} * * <p>ListStackGroupOperationResultsResponse</p> */ public class ListStackGroupOperationResultsResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private ListStackGroupOperationResultsResponseBody body; private ListStackGroupOperationResultsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListStackGroupOperationResultsResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public ListStackGroupOperationResultsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListStackGroupOperationResultsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListStackGroupOperationResultsResponseBody body); @Override ListStackGroupOperationResultsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListStackGroupOperationResultsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListStackGroupOperationResultsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListStackGroupOperationResultsResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(ListStackGroupOperationResultsResponseBody body) { this.body = body; return this; } @Override public ListStackGroupOperationResultsResponse build() { return new ListStackGroupOperationResultsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListStackGroupOperationResultsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListStackGroupOperationResultsResponseBody} extends {@link TeaModel} * * <p>ListStackGroupOperationResultsResponseBody</p> */ public class ListStackGroupOperationResultsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("StackGroupOperationResults") private java.util.List<StackGroupOperationResults> stackGroupOperationResults; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private ListStackGroupOperationResultsResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.stackGroupOperationResults = builder.stackGroupOperationResults; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListStackGroupOperationResultsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return stackGroupOperationResults */ public java.util.List<StackGroupOperationResults> getStackGroupOperationResults() { return this.stackGroupOperationResults; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private java.util.List<StackGroupOperationResults> stackGroupOperationResults; private Integer totalCount; private Builder() { } private Builder(ListStackGroupOperationResultsResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.stackGroupOperationResults = model.stackGroupOperationResults; this.totalCount = model.totalCount; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The number of entries returned per page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>14A07460-EBE7-47CA-9757-12CC4761D47A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The details of the results of the operation.</p> */ public Builder stackGroupOperationResults(java.util.List<StackGroupOperationResults> stackGroupOperationResults) { this.stackGroupOperationResults = stackGroupOperationResults; return this; } /** * <p>The total number of results.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public ListStackGroupOperationResultsResponseBody build() { return new ListStackGroupOperationResultsResponseBody(this); } } /** * * {@link ListStackGroupOperationResultsResponseBody} extends {@link TeaModel} * * <p>ListStackGroupOperationResultsResponseBody</p> */ public static class StackGroupOperationResults extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccountId") private String accountId; @com.aliyun.core.annotation.NameInMap("RdFolderId") private String rdFolderId; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StatusReason") private String statusReason; private StackGroupOperationResults(Builder builder) { this.accountId = builder.accountId; this.rdFolderId = builder.rdFolderId; this.regionId = builder.regionId; this.status = builder.status; this.statusReason = builder.statusReason; } public static Builder builder() { return new Builder(); } public static StackGroupOperationResults create() { return builder().build(); } /** * @return accountId */ public String getAccountId() { return this.accountId; } /** * @return rdFolderId */ public String getRdFolderId() { return this.rdFolderId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return statusReason */ public String getStatusReason() { return this.statusReason; } public static final class Builder { private String accountId; private String rdFolderId; private String regionId; private String status; private String statusReason; private Builder() { } private Builder(StackGroupOperationResults model) { this.accountId = model.accountId; this.rdFolderId = model.rdFolderId; this.regionId = model.regionId; this.status = model.status; this.statusReason = model.statusReason; } /** * <p>The ID of the account to which the stack instance belongs.</p> * <ul> * <li>If the stack group has self-managed permissions, the stack instance belongs to an Alibaba Cloud account.</li> * <li>If the stack group has service-managed permissions, the stack instance belongs to a member account in the resource directory.</li> * </ul> * <blockquote> * <p> For more information about the account, see <a href="https://help.aliyun.com/document_detail/154578.html">Overview</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>175458090349****</p> */ public Builder accountId(String accountId) { this.accountId = accountId; return this; } /** * <p>The folder ID of the resource directory.</p> * <blockquote> * <p> This parameter is returned only when the stack group is granted service-managed permissions.</p> * </blockquote> * * <strong>example:</strong> * <p>&quot;fd-4PvlVLOL8v&quot;</p> */ public Builder rdFolderId(String rdFolderId) { this.rdFolderId = rdFolderId; return this; } /** * <p>The region ID of the stack instance.</p> * * <strong>example:</strong> * <p>cn-beijing</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The status of the operation.</p> * <p>Valid values:</p> * <ul> * <li>RUNNING: The operation is being performed.</li> * <li>SUCCEEDED: The operation succeeded.</li> * <li>FAILED: The operation failed.</li> * <li>STOPPING: The operation is being stopped.</li> * <li>STOPPED: The operation is stopped.</li> * </ul> * * <strong>example:</strong> * <p>SUCCEEDED</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The reason why the operation is in a specific state.</p> * <blockquote> * <p> This parameter is returned only when stack instances are in the OUTDATED state.</p> * </blockquote> * * <strong>example:</strong> * <p>User initiated operation</p> */ public Builder statusReason(String statusReason) { this.statusReason = statusReason; return this; } public StackGroupOperationResults build() { return new StackGroupOperationResults(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910/1.2.58/com/aliyun/sdk/service/ros20190910/models/ListStackGroupOperationsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.ros20190910.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 ListStackGroupOperationsRequest} extends {@link RequestModel} * * <p>ListStackGroupOperationsRequest</p> */ public class ListStackGroupOperationsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackGroupName") @com.aliyun.core.annotation.Validation(required = true) private String stackGroupName; private ListStackGroupOperationsRequest(Builder builder) { super(builder); this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.stackGroupName = builder.stackGroupName; } public static Builder builder() { return new Builder(); } public static ListStackGroupOperationsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return stackGroupName */ public String getStackGroupName() { return this.stackGroupName; } public static final class Builder extends Request.Builder<ListStackGroupOperationsRequest, Builder> { private Long pageNumber; private Long pageSize; private String regionId; private String stackGroupName; private Builder() { super(); } private Builder(ListStackGroupOperationsRequest request) { super(request); this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.stackGroupName = request.stackGroupName; } /** * <p>The number of the page to return.</p> * <p>Pages start from page 1.</p> * <p>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries to return on each page.</p> * <p>Valid values: 1 to 50.</p> * <p>Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the stack. You can call the <a href="https://help.aliyun.com/document_detail/131035.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The name of the stack group. The name must be unique within a region.</p> * <p>The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>MyStackGroup</p> */ public Builder stackGroupName(String stackGroupName) { this.putQueryParameter("StackGroupName", stackGroupName); this.stackGroupName = stackGroupName; return this; } @Override public ListStackGroupOperationsRequest build() { return new ListStackGroupOperationsRequest(this); } } }