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/ListStackGroupOperationsResponse.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 ListStackGroupOperationsResponse} extends {@link TeaModel} * * <p>ListStackGroupOperationsResponse</p> */ public class ListStackGroupOperationsResponse 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 ListStackGroupOperationsResponseBody body; private ListStackGroupOperationsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListStackGroupOperationsResponse 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 ListStackGroupOperationsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListStackGroupOperationsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListStackGroupOperationsResponseBody body); @Override ListStackGroupOperationsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListStackGroupOperationsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListStackGroupOperationsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListStackGroupOperationsResponse 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(ListStackGroupOperationsResponseBody body) { this.body = body; return this; } @Override public ListStackGroupOperationsResponse build() { return new ListStackGroupOperationsResponse(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/ListStackGroupOperationsResponseBody.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 ListStackGroupOperationsResponseBody} extends {@link TeaModel} * * <p>ListStackGroupOperationsResponseBody</p> */ public class ListStackGroupOperationsResponseBody 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("StackGroupOperations") private java.util.List<StackGroupOperations> stackGroupOperations; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private ListStackGroupOperationsResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.stackGroupOperations = builder.stackGroupOperations; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListStackGroupOperationsResponseBody 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 stackGroupOperations */ public java.util.List<StackGroupOperations> getStackGroupOperations() { return this.stackGroupOperations; } /** * @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<StackGroupOperations> stackGroupOperations; private Integer totalCount; private Builder() { } private Builder(ListStackGroupOperationsResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.stackGroupOperations = model.stackGroupOperations; 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>10</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; 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 stack group operations.</p> */ public Builder stackGroupOperations(java.util.List<StackGroupOperations> stackGroupOperations) { this.stackGroupOperations = stackGroupOperations; return this; } /** * <p>The total number of stack group operations.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public ListStackGroupOperationsResponseBody build() { return new ListStackGroupOperationsResponseBody(this); } } /** * * {@link ListStackGroupOperationsResponseBody} extends {@link TeaModel} * * <p>ListStackGroupOperationsResponseBody</p> */ public static class StackGroupOperations extends TeaModel { @com.aliyun.core.annotation.NameInMap("Action") private String action; @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.NameInMap("OperationDescription") private String operationDescription; @com.aliyun.core.annotation.NameInMap("OperationId") private String operationId; @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 StackGroupOperations(Builder builder) { this.action = builder.action; this.createTime = builder.createTime; this.endTime = builder.endTime; this.operationDescription = builder.operationDescription; this.operationId = builder.operationId; this.stackGroupId = builder.stackGroupId; this.stackGroupName = builder.stackGroupName; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static StackGroupOperations create() { return builder().build(); } /** * @return action */ public String getAction() { return this.action; } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return operationDescription */ public String getOperationDescription() { return this.operationDescription; } /** * @return operationId */ public String getOperationId() { return this.operationId; } /** * @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 createTime; private String endTime; private String operationDescription; private String operationId; private String stackGroupId; private String stackGroupName; private String status; private Builder() { } private Builder(StackGroupOperations model) { this.action = model.action; this.createTime = model.createTime; this.endTime = model.endTime; this.operationDescription = model.operationDescription; this.operationId = model.operationId; 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>CREATE</p> */ public Builder action(String action) { this.action = action; return this; } /** * <p>The time when the operation was initiated.</p> * * <strong>example:</strong> * <p>2020-01-20T09:22:36.000000</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The time when the operation ended.</p> * * <strong>example:</strong> * <p>2020-01-20T09:22:41.000000</p> */ public Builder endTime(String endTime) { this.endTime = endTime; return this; } /** * <p>The description of the operation.</p> * * <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>14A07460-EBE7-47CA-9757-12CC4761****</p> */ public Builder operationId(String operationId) { this.operationId = operationId; 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 StackGroupOperations build() { return new StackGroupOperations(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/ListStackGroupsRequest.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 ListStackGroupsRequest} extends {@link RequestModel} * * <p>ListStackGroupsRequest</p> */ public class ListStackGroupsRequest 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("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; private ListStackGroupsRequest(Builder builder) { super(builder); this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.status = builder.status; this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static ListStackGroupsRequest 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 resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder extends Request.Builder<ListStackGroupsRequest, Builder> { private Long pageNumber; private Long pageSize; private String regionId; private String resourceGroupId; private String status; private java.util.List<Tags> tags; private Builder() { super(); } private Builder(ListStackGroupsRequest request) { super(request); this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.status = request.status; this.tags = request.tags; } /** * <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. 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 group. If you do not specify this parameter, the stack groups in all the resource groups are queried.</p> * <blockquote> * <p>To obtain the resource group ID, go to the <strong>Resource Group</strong> page in the <strong>Resource Management</strong> console. For more information, see <a href="https://help.aliyun.com/document_detail/151181.html">View the basic information about a resource group</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>rg-acfmzawhxxcj****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * <p>The state of the stack group. If you do not specify this parameter, the stack groups in all states in the specified region are queried.</p> * <p>Valid values:</p> * <ul> * <li>ACTIVE</li> * <li>DELETED</li> * </ul> * * <strong>example:</strong> * <p>ACTIVE</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } /** * <p>The tags that are added to the stack group.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } @Override public ListStackGroupsRequest build() { return new ListStackGroupsRequest(this); } } /** * * {@link ListStackGroupsRequest} extends {@link TeaModel} * * <p>ListStackGroupsRequest</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") @com.aliyun.core.annotation.Validation(required = true) 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 key of the tag that is added to the stack group.</p> * <blockquote> * <p>Tags is optional. If you specify Tags, you must specify Tags.N.Key.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>usage</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of the tag that is added to the stack group.</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/ListStackGroupsResponse.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 ListStackGroupsResponse} extends {@link TeaModel} * * <p>ListStackGroupsResponse</p> */ public class ListStackGroupsResponse 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 ListStackGroupsResponseBody body; private ListStackGroupsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListStackGroupsResponse 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 ListStackGroupsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListStackGroupsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListStackGroupsResponseBody body); @Override ListStackGroupsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListStackGroupsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListStackGroupsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListStackGroupsResponse 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(ListStackGroupsResponseBody body) { this.body = body; return this; } @Override public ListStackGroupsResponse build() { return new ListStackGroupsResponse(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/ListStackGroupsResponseBody.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 ListStackGroupsResponseBody} extends {@link TeaModel} * * <p>ListStackGroupsResponseBody</p> */ public class ListStackGroupsResponseBody 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("StackGroups") private java.util.List<StackGroups> stackGroups; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private ListStackGroupsResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.stackGroups = builder.stackGroups; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListStackGroupsResponseBody 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 stackGroups */ public java.util.List<StackGroups> getStackGroups() { return this.stackGroups; } /** * @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<StackGroups> stackGroups; private Integer totalCount; private Builder() { } private Builder(ListStackGroupsResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.stackGroups = model.stackGroups; 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>10</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; 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 stack groups.</p> */ public Builder stackGroups(java.util.List<StackGroups> stackGroups) { this.stackGroups = stackGroups; return this; } /** * <p>The total number of stack groups.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public ListStackGroupsResponseBody build() { return new ListStackGroupsResponseBody(this); } } /** * * {@link ListStackGroupsResponseBody} extends {@link TeaModel} * * <p>ListStackGroupsResponseBody</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 automatic deployment is enabled.</p> * <p>Valid values:</p> * <ul> * <li>true: Automatic deployment is enabled. If you add a member to the folder to which the stack group belongs after automatic deployment is enabled, Resource Orchestration Service (ROS) automatically adds the stack instances in the stack group to the specified region of the member. If you delete the member from the folder, ROS automatically deletes the stack instances in the stack group from the specified region of the member.</li> * <li>false: Automatic deployment is disabled. After you disable automatic deployment, the stack instances remain unchanged when you change the member in the folder.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enabled(Boolean enabled) { this.enabled = enabled; return this; } /** * <p>Indicates whether the stacks within a member are retained when you delete the member from the folder.</p> * <p>Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * <blockquote> * <p>This parameter is returned only if Enabled is set to true.</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 ListStackGroupsResponseBody} extends {@link TeaModel} * * <p>ListStackGroupsResponseBody</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 key of the tag that is added to the stack group.</p> * * <strong>example:</strong> * <p>usage1</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of the tag that is added to the stack group.</p> * * <strong>example:</strong> * <p>test1</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link ListStackGroupsResponseBody} extends {@link TeaModel} * * <p>ListStackGroupsResponseBody</p> */ public static class StackGroups extends TeaModel { @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("DriftDetectionTime") private String driftDetectionTime; @com.aliyun.core.annotation.NameInMap("PermissionModel") private String permissionModel; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("StackGroupDriftStatus") private String stackGroupDriftStatus; @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("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.NameInMap("UpdateTime") private String updateTime; private StackGroups(Builder builder) { this.autoDeployment = builder.autoDeployment; this.createTime = builder.createTime; this.description = builder.description; this.driftDetectionTime = builder.driftDetectionTime; this.permissionModel = builder.permissionModel; this.resourceGroupId = builder.resourceGroupId; this.stackGroupDriftStatus = builder.stackGroupDriftStatus; this.stackGroupId = builder.stackGroupId; this.stackGroupName = builder.stackGroupName; this.status = builder.status; this.tags = builder.tags; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static StackGroups create() { return builder().build(); } /** * @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 driftDetectionTime */ public String getDriftDetectionTime() { return this.driftDetectionTime; } /** * @return permissionModel */ public String getPermissionModel() { return this.permissionModel; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return stackGroupDriftStatus */ public String getStackGroupDriftStatus() { return this.stackGroupDriftStatus; } /** * @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 tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return updateTime */ public String getUpdateTime() { return this.updateTime; } public static final class Builder { private AutoDeployment autoDeployment; private String createTime; private String description; private String driftDetectionTime; private String permissionModel; private String resourceGroupId; private String stackGroupDriftStatus; private String stackGroupId; private String stackGroupName; private String status; private java.util.List<Tags> tags; private String updateTime; private Builder() { } private Builder(StackGroups model) { this.autoDeployment = model.autoDeployment; this.createTime = model.createTime; this.description = model.description; this.driftDetectionTime = model.driftDetectionTime; this.permissionModel = model.permissionModel; this.resourceGroupId = model.resourceGroupId; this.stackGroupDriftStatus = model.stackGroupDriftStatus; this.stackGroupId = model.stackGroupId; this.stackGroupName = model.stackGroupName; this.status = model.status; this.tags = model.tags; this.updateTime = model.updateTime; } /** * <p>The information about automatic deployment settings.</p> */ public Builder autoDeployment(AutoDeployment autoDeployment) { this.autoDeployment = autoDeployment; return this; } /** * CreateTime. */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The description of the stack group.</p> * * <strong>example:</strong> * <p>My Stack Group</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The time when the most recent successful drift detection was performed on the stack group.</p> * * <strong>example:</strong> * <p>2020-02-27T07:47:47</p> */ public Builder driftDetectionTime(String driftDetectionTime) { this.driftDetectionTime = driftDetectionTime; return this; } /** * <p>The permission model of the stack group.</p> * <p>Valid values:</p> * <ul> * <li>SELF_MANAGED</li> * <li>SERVICE_MANAGED</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>SELF_MANAGED</p> */ public Builder permissionModel(String permissionModel) { this.permissionModel = permissionModel; return this; } /** * <p>The ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-acfmzawhxxcj****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The drift state of the stack group on which the most recent successful drift detection was performed.</p> * <p>Valid values:</p> * <ul> * <li>DRIFTED: The stack group has drifted.</li> * <li>NOT_CHECKED: No drift detection is performed on the stack group.</li> * <li>IN_SYNC: No drifts are detected on the stack group.</li> * </ul> * * <strong>example:</strong> * <p>IN_SYNC</p> */ public Builder stackGroupDriftStatus(String stackGroupDriftStatus) { this.stackGroupDriftStatus = stackGroupDriftStatus; 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 stack group.</p> * <p>Valid values:</p> * <ul> * <li>ACTIVE</li> * <li>DELETED</li> * </ul> * * <strong>example:</strong> * <p>ACTIVE</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tags that are added to the stack group.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * UpdateTime. */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public StackGroups build() { return new StackGroups(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/ListStackInstancesRequest.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 ListStackInstancesRequest} extends {@link RequestModel} * * <p>ListStackInstancesRequest</p> */ public class ListStackInstancesRequest 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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackInstanceAccountId") private String stackInstanceAccountId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackInstanceRegionId") private String stackInstanceRegionId; private ListStackInstancesRequest(Builder builder) { super(builder); this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; 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 ListStackInstancesRequest 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; } /** * @return stackInstanceAccountId */ public String getStackInstanceAccountId() { return this.stackInstanceAccountId; } /** * @return stackInstanceRegionId */ public String getStackInstanceRegionId() { return this.stackInstanceRegionId; } public static final class Builder extends Request.Builder<ListStackInstancesRequest, Builder> { private Long pageNumber; private Long pageSize; private String regionId; private String stackGroupName; private String stackInstanceAccountId; private String stackInstanceRegionId; private Builder() { super(); } private Builder(ListStackInstancesRequest request) { super(request); this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.stackGroupName = request.stackGroupName; this.stackInstanceAccountId = request.stackInstanceAccountId; this.stackInstanceRegionId = request.stackInstanceRegionId; } /** * <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. 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> * * <strong>example:</strong> * <p>156552876021****</p> */ public Builder stackInstanceAccountId(String stackInstanceAccountId) { this.putQueryParameter("StackInstanceAccountId", stackInstanceAccountId); this.stackInstanceAccountId = stackInstanceAccountId; return this; } /** * <p>The region ID of the stack.</p> * * <strong>example:</strong> * <p>cn-beijing</p> */ public Builder stackInstanceRegionId(String stackInstanceRegionId) { this.putQueryParameter("StackInstanceRegionId", stackInstanceRegionId); this.stackInstanceRegionId = stackInstanceRegionId; return this; } @Override public ListStackInstancesRequest build() { return new ListStackInstancesRequest(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/ListStackInstancesResponse.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 ListStackInstancesResponse} extends {@link TeaModel} * * <p>ListStackInstancesResponse</p> */ public class ListStackInstancesResponse 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 ListStackInstancesResponseBody body; private ListStackInstancesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListStackInstancesResponse 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 ListStackInstancesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListStackInstancesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListStackInstancesResponseBody body); @Override ListStackInstancesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListStackInstancesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListStackInstancesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListStackInstancesResponse 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(ListStackInstancesResponseBody body) { this.body = body; return this; } @Override public ListStackInstancesResponse build() { return new ListStackInstancesResponse(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/ListStackInstancesResponseBody.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 ListStackInstancesResponseBody} extends {@link TeaModel} * * <p>ListStackInstancesResponseBody</p> */ public class ListStackInstancesResponseBody 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("StackInstances") private java.util.List<StackInstances> stackInstances; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private ListStackInstancesResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.stackInstances = builder.stackInstances; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListStackInstancesResponseBody 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 stackInstances */ public java.util.List<StackInstances> getStackInstances() { return this.stackInstances; } /** * @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<StackInstances> stackInstances; private Integer totalCount; private Builder() { } private Builder(ListStackInstancesResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.stackInstances = model.stackInstances; 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 request ID.</p> * * <strong>example:</strong> * <p>85DE34BD-7FF9-480F-8C21-556E9DA93ACD</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The stacks.</p> */ public Builder stackInstances(java.util.List<StackInstances> stackInstances) { this.stackInstances = stackInstances; return this; } /** * <p>The total number of stacks.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public ListStackInstancesResponseBody build() { return new ListStackInstancesResponseBody(this); } } /** * * {@link ListStackInstancesResponseBody} extends {@link TeaModel} * * <p>ListStackInstancesResponseBody</p> */ public static class StackInstances 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("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 StackInstances(Builder builder) { this.accountId = builder.accountId; this.driftDetectionTime = builder.driftDetectionTime; 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 StackInstances create() { return builder().build(); } /** * @return accountId */ public String getAccountId() { return this.accountId; } /** * @return driftDetectionTime */ public String getDriftDetectionTime() { return this.driftDetectionTime; } /** * @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 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(StackInstances model) { this.accountId = model.accountId; this.driftDetectionTime = model.driftDetectionTime; 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>156552876021****</p> */ public Builder accountId(String accountId) { this.accountId = accountId; return this; } /** * <p>The time when the last successful drift detection was performed on the stack.</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 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 last 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 StackInstances build() { return new StackInstances(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/ListStackOperationRisksRequest.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 ListStackOperationRisksRequest} extends {@link RequestModel} * * <p>ListStackOperationRisksRequest</p> */ public class ListStackOperationRisksRequest 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("OperationType") private String operationType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RamRoleName") private String ramRoleName; @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("RetainAllResources") private Boolean retainAllResources; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RetainResources") private java.util.List<String> retainResources; @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 ListStackOperationRisksRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.operationType = builder.operationType; this.ramRoleName = builder.ramRoleName; this.regionId = builder.regionId; this.retainAllResources = builder.retainAllResources; this.retainResources = builder.retainResources; 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 ListStackOperationRisksRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return operationType */ public String getOperationType() { return this.operationType; } /** * @return ramRoleName */ public String getRamRoleName() { return this.ramRoleName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return retainAllResources */ public Boolean getRetainAllResources() { return this.retainAllResources; } /** * @return retainResources */ public java.util.List<String> getRetainResources() { return this.retainResources; } /** * @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<ListStackOperationRisksRequest, Builder> { private String clientToken; private String operationType; private String ramRoleName; private String regionId; private Boolean retainAllResources; private java.util.List<String> retainResources; private String stackId; private String templateBody; private String templateId; private String templateURL; private String templateVersion; private Builder() { super(); } private Builder(ListStackOperationRisksRequest request) { super(request); this.clientToken = request.clientToken; this.operationType = request.operationType; this.ramRoleName = request.ramRoleName; this.regionId = request.regionId; this.retainAllResources = request.retainAllResources; this.retainResources = request.retainResources; 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. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can be up to 64 characters in length, and can contain letters, digits, 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>The type of the operation of which you want to detect risks. Valid values:</p> * <ul> * <li>DeleteStack: detects high risks that may arise in resources when you delete a stack.</li> * <li>CreateStack: detects the missing permissions when you fail to create a stack.</li> * </ul> * * <strong>example:</strong> * <p>DeleteStack</p> */ public Builder operationType(String operationType) { this.putQueryParameter("OperationType", operationType); this.operationType = operationType; return this; } /** * <p>The name of the RAM role.</p> * <ul> * <li>If you specify a RAM role, ROS creates stacks based on the permissions that are granted to the RAM role and uses the credentials of the RAM role to call the API operations of Alibaba Cloud services.</li> * <li>If you do not specify a RAM role, ROS creates stacks based on the permissions of your Alibaba Cloud account.</li> * </ul> * <p>The name of the RAM role can be up to 64 bytes in length.</p> * * <strong>example:</strong> * <p>test-role</p> */ public Builder ramRoleName(String ramRoleName) { this.putQueryParameter("RamRoleName", 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> * <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 retain all resources in the stack. Valid values:</p> * <ul> * <li>true</li> * <li>false (default)</li> * </ul> * <blockquote> * <p>This parameter takes effect only if you set OperationType to DeleteStack.</p> * </blockquote> * * <strong>example:</strong> * <p>false</p> */ public Builder retainAllResources(Boolean retainAllResources) { this.putQueryParameter("RetainAllResources", retainAllResources); this.retainAllResources = retainAllResources; return this; } /** * <p>The list of resources to retain.</p> * <blockquote> * <p>This parameter takes effect only if you set OperationType to DeleteStack.</p> * </blockquote> * * <strong>example:</strong> * <p>WebServer</p> */ public Builder retainResources(java.util.List<String> retainResources) { this.putQueryParameter("RetainResources", retainResources); this.retainResources = retainResources; 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.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 ID of the template. This parameter applies to shared and private templates.</p> * <blockquote> * <p>You must specify one of TemplateBody, TemplateURL, TemplateId, and TemplateScratchId.</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 and 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 RegionId in the URL, the region ID of the stack is used.</p> * <blockquote> * <p>You must specify one of TemplateBody, TemplateURL, TemplateId, and TemplateScratchId.</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.</p> * <blockquote> * <p>This parameter takes effect only if you specify TemplateId.</p> * </blockquote> * * <strong>example:</strong> * <p>v1</p> */ public Builder templateVersion(String templateVersion) { this.putQueryParameter("TemplateVersion", templateVersion); this.templateVersion = templateVersion; return this; } @Override public ListStackOperationRisksRequest build() { return new ListStackOperationRisksRequest(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/ListStackOperationRisksResponse.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 ListStackOperationRisksResponse} extends {@link TeaModel} * * <p>ListStackOperationRisksResponse</p> */ public class ListStackOperationRisksResponse 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 ListStackOperationRisksResponseBody body; private ListStackOperationRisksResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListStackOperationRisksResponse 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 ListStackOperationRisksResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListStackOperationRisksResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListStackOperationRisksResponseBody body); @Override ListStackOperationRisksResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListStackOperationRisksResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListStackOperationRisksResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListStackOperationRisksResponse 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(ListStackOperationRisksResponseBody body) { this.body = body; return this; } @Override public ListStackOperationRisksResponse build() { return new ListStackOperationRisksResponse(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/ListStackOperationRisksResponseBody.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 ListStackOperationRisksResponseBody} extends {@link TeaModel} * * <p>ListStackOperationRisksResponseBody</p> */ public class ListStackOperationRisksResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("MissingPolicyActions") private java.util.List<String> missingPolicyActions; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("RiskResources") private java.util.List<RiskResources> riskResources; private ListStackOperationRisksResponseBody(Builder builder) { this.missingPolicyActions = builder.missingPolicyActions; this.requestId = builder.requestId; this.riskResources = builder.riskResources; } public static Builder builder() { return new Builder(); } public static ListStackOperationRisksResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return missingPolicyActions */ public java.util.List<String> getMissingPolicyActions() { return this.missingPolicyActions; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return riskResources */ public java.util.List<RiskResources> getRiskResources() { return this.riskResources; } public static final class Builder { private java.util.List<String> missingPolicyActions; private String requestId; private java.util.List<RiskResources> riskResources; private Builder() { } private Builder(ListStackOperationRisksResponseBody model) { this.missingPolicyActions = model.missingPolicyActions; this.requestId = model.requestId; this.riskResources = model.riskResources; } /** * <p>The operations on which the permissions are not granted to the Alibaba Cloud account of the caller.</p> */ public Builder missingPolicyActions(java.util.List<String> missingPolicyActions) { this.missingPolicyActions = missingPolicyActions; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>72108E7A-E874-4A5E-B22C-A61E94AD12CD</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The resources that are at risk.</p> */ public Builder riskResources(java.util.List<RiskResources> riskResources) { this.riskResources = riskResources; return this; } public ListStackOperationRisksResponseBody build() { return new ListStackOperationRisksResponseBody(this); } } /** * * {@link ListStackOperationRisksResponseBody} extends {@link TeaModel} * * <p>ListStackOperationRisksResponseBody</p> */ public static class RiskResources extends TeaModel { @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("PhysicalResourceId") private String physicalResourceId; @com.aliyun.core.annotation.NameInMap("Reason") private String reason; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("RiskType") private String riskType; private RiskResources(Builder builder) { this.code = builder.code; this.logicalResourceId = builder.logicalResourceId; this.message = builder.message; this.physicalResourceId = builder.physicalResourceId; this.reason = builder.reason; this.requestId = builder.requestId; this.resourceType = builder.resourceType; this.riskType = builder.riskType; } public static Builder builder() { return new Builder(); } public static RiskResources create() { return builder().build(); } /** * @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 physicalResourceId */ public String getPhysicalResourceId() { return this.physicalResourceId; } /** * @return reason */ public String getReason() { return this.reason; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return riskType */ public String getRiskType() { return this.riskType; } public static final class Builder { private String code; private String logicalResourceId; private String message; private String physicalResourceId; private String reason; private String requestId; private String resourceType; private String riskType; private Builder() { } private Builder(RiskResources model) { this.code = model.code; this.logicalResourceId = model.logicalResourceId; this.message = model.message; this.physicalResourceId = model.physicalResourceId; this.reason = model.reason; this.requestId = model.requestId; this.resourceType = model.resourceType; this.riskType = model.riskType; } /** * <p>The error code that is returned when the risk detection fails.</p> * <blockquote> * <p> This parameter is not returned if the risk detection is successful.</p> * </blockquote> * * <strong>example:</strong> * <p>NoPermission</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The logical ID of the resource. The logical ID is the resource name that is defined in the template.</p> * * <strong>example:</strong> * <p>MySG</p> */ public Builder logicalResourceId(String logicalResourceId) { this.logicalResourceId = logicalResourceId; return this; } /** * <p>The error message that is returned when the risk detection fails.</p> * <blockquote> * <p> This parameter is not returned if the risk detection is successful.</p> * </blockquote> * * <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 physical ID of the resource. The physical ID is the actual ID of the resource.</p> * * <strong>example:</strong> * <p>sg-bp1dpioafqphedg9****</p> */ public Builder physicalResourceId(String physicalResourceId) { this.physicalResourceId = physicalResourceId; return this; } /** * <p>The cause of the risk.</p> * * <strong>example:</strong> * <p>There are some ECS instances (i-bp18el96s4wq635e****) depending on the security group.</p> */ public Builder reason(String reason) { this.reason = reason; return this; } /** * <p>The ID of the request when the risk detection fails.</p> * <blockquote> * <p> This parameter is not returned if the risk detection is successful.</p> * </blockquote> * * <strong>example:</strong> * <p>DF4296CF-F45F-4845-A72B-BE617601DB25</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The type of the resource.</p> * * <strong>example:</strong> * <p>ALIYUN::ECS::SecurityGroup</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The type of the risk. Valid values:</p> * <ul> * <li>Referenced: The resource is referenced by other resources.</li> * <li>MaybeReferenced: The resource may be referenced by other resources.</li> * <li>AdditionalRiskCheckRequired: An additional risk detection is required for a nested stack.</li> * <li>OperationIgnored: The operation does not take effect for the resource.</li> * </ul> * * <strong>example:</strong> * <p>Referenced</p> */ public Builder riskType(String riskType) { this.riskType = riskType; return this; } public RiskResources build() { return new RiskResources(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/ListStackResourceDriftsRequest.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 ListStackResourceDriftsRequest} extends {@link RequestModel} * * <p>ListStackResourceDriftsRequest</p> */ public class ListStackResourceDriftsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") private Long 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("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceDriftStatus") private java.util.List<String> resourceDriftStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackId") @com.aliyun.core.annotation.Validation(required = true) private String stackId; private ListStackResourceDriftsRequest(Builder builder) { super(builder); this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.regionId = builder.regionId; this.resourceDriftStatus = builder.resourceDriftStatus; this.stackId = builder.stackId; } public static Builder builder() { return new Builder(); } public static ListStackResourceDriftsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return maxResults */ public Long getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceDriftStatus */ public java.util.List<String> getResourceDriftStatus() { return this.resourceDriftStatus; } /** * @return stackId */ public String getStackId() { return this.stackId; } public static final class Builder extends Request.Builder<ListStackResourceDriftsRequest, Builder> { private Long maxResults; private String nextToken; private String regionId; private java.util.List<String> resourceDriftStatus; private String stackId; private Builder() { super(); } private Builder(ListStackResourceDriftsRequest request) { super(request); this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.regionId = request.regionId; this.resourceDriftStatus = request.resourceDriftStatus; this.stackId = request.stackId; } /** * <p>The time when the resource drift detection operation was initiated.</p> * * <strong>example:</strong> * <p>50</p> */ public Builder maxResults(Long maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The type of the resource.</p> * * <strong>example:</strong> * <p>AAAAAdDWBF2****w==</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The physical ID of the resource.</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 properties as defined in the template, in JSON format.</p> * * <strong>example:</strong> * <p>MODIFIED</p> */ public Builder resourceDriftStatus(java.util.List<String> resourceDriftStatus) { this.putQueryParameter("ResourceDriftStatus", resourceDriftStatus); this.resourceDriftStatus = resourceDriftStatus; 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 ListStackResourceDriftsRequest build() { return new ListStackResourceDriftsRequest(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/ListStackResourceDriftsResponse.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 ListStackResourceDriftsResponse} extends {@link TeaModel} * * <p>ListStackResourceDriftsResponse</p> */ public class ListStackResourceDriftsResponse 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 ListStackResourceDriftsResponseBody body; private ListStackResourceDriftsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListStackResourceDriftsResponse 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 ListStackResourceDriftsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListStackResourceDriftsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListStackResourceDriftsResponseBody body); @Override ListStackResourceDriftsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListStackResourceDriftsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListStackResourceDriftsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListStackResourceDriftsResponse 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(ListStackResourceDriftsResponseBody body) { this.body = body; return this; } @Override public ListStackResourceDriftsResponse build() { return new ListStackResourceDriftsResponse(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/ListStackResourceDriftsResponseBody.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 ListStackResourceDriftsResponseBody} extends {@link TeaModel} * * <p>ListStackResourceDriftsResponseBody</p> */ public class ListStackResourceDriftsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceDrifts") private java.util.List<ResourceDrifts> resourceDrifts; private ListStackResourceDriftsResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.resourceDrifts = builder.resourceDrifts; } public static Builder builder() { return new Builder(); } public static ListStackResourceDriftsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceDrifts */ public java.util.List<ResourceDrifts> getResourceDrifts() { return this.resourceDrifts; } public static final class Builder { private String nextToken; private String requestId; private java.util.List<ResourceDrifts> resourceDrifts; private Builder() { } private Builder(ListStackResourceDriftsResponseBody model) { this.nextToken = model.nextToken; this.requestId = model.requestId; this.resourceDrifts = model.resourceDrifts; } /** * <p>The query token returned in this call.</p> * * <strong>example:</strong> * <p>AAAAAdDWBF2****w==</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; 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 resource drifts.</p> */ public Builder resourceDrifts(java.util.List<ResourceDrifts> resourceDrifts) { this.resourceDrifts = resourceDrifts; return this; } public ListStackResourceDriftsResponseBody build() { return new ListStackResourceDriftsResponseBody(this); } } /** * * {@link ListStackResourceDriftsResponseBody} extends {@link TeaModel} * * <p>ListStackResourceDriftsResponseBody</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); } } } /** * * {@link ListStackResourceDriftsResponseBody} extends {@link TeaModel} * * <p>ListStackResourceDriftsResponseBody</p> */ public static class PropertyDifferences extends TeaModel { @com.aliyun.core.annotation.NameInMap("ActualValue") private String actualValue; @com.aliyun.core.annotation.NameInMap("DifferenceType") private String differenceType; @com.aliyun.core.annotation.NameInMap("ExpectedValue") private String expectedValue; @com.aliyun.core.annotation.NameInMap("PropertyPath") private String propertyPath; private PropertyDifferences(Builder builder) { this.actualValue = builder.actualValue; this.differenceType = builder.differenceType; this.expectedValue = builder.expectedValue; this.propertyPath = builder.propertyPath; } public static Builder builder() { return new Builder(); } public static PropertyDifferences create() { return builder().build(); } /** * @return actualValue */ public String getActualValue() { return this.actualValue; } /** * @return differenceType */ public String getDifferenceType() { return this.differenceType; } /** * @return expectedValue */ public String getExpectedValue() { return this.expectedValue; } /** * @return propertyPath */ public String getPropertyPath() { return this.propertyPath; } public static final class Builder { private String actualValue; private String differenceType; private String expectedValue; private String propertyPath; private Builder() { } private Builder(PropertyDifferences model) { this.actualValue = model.actualValue; this.differenceType = model.differenceType; this.expectedValue = model.expectedValue; this.propertyPath = model.propertyPath; } /** * <p>The actual value of the resource property.</p> * * <strong>example:</strong> * <p>test1</p> */ public Builder actualValue(String actualValue) { this.actualValue = actualValue; return this; } /** * <p>The drift type of the resource property. Valid values:</p> * <ul> * <li>ADD: The value is added to a resource property whose data type is Array or List.</li> * <li>REMOVE: The property is deleted from the current resource configuration.</li> * <li>NOT_EQUAL: The current property value differs from the expected value that is defined in the stack template.</li> * </ul> * * <strong>example:</strong> * <p>NOT_EQUAL</p> */ public Builder differenceType(String differenceType) { this.differenceType = differenceType; return this; } /** * <p>The expected value of the resource property that is defined in the template.</p> * * <strong>example:</strong> * <p>test2</p> */ public Builder expectedValue(String expectedValue) { this.expectedValue = expectedValue; return this; } /** * <p>The path of the resource property.</p> * * <strong>example:</strong> * <p>/ScalingRuleName</p> */ public Builder propertyPath(String propertyPath) { this.propertyPath = propertyPath; return this; } public PropertyDifferences build() { return new PropertyDifferences(this); } } } /** * * {@link ListStackResourceDriftsResponseBody} extends {@link TeaModel} * * <p>ListStackResourceDriftsResponseBody</p> */ public static class ResourceDrifts extends TeaModel { @com.aliyun.core.annotation.NameInMap("ActualProperties") private String actualProperties; @com.aliyun.core.annotation.NameInMap("DriftDetectionTime") private String driftDetectionTime; @com.aliyun.core.annotation.NameInMap("ExpectedProperties") private String expectedProperties; @com.aliyun.core.annotation.NameInMap("LogicalResourceId") private String logicalResourceId; @com.aliyun.core.annotation.NameInMap("ModuleInfo") private ModuleInfo moduleInfo; @com.aliyun.core.annotation.NameInMap("PhysicalResourceId") private String physicalResourceId; @com.aliyun.core.annotation.NameInMap("PropertyDifferences") private java.util.List<PropertyDifferences> propertyDifferences; @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; private ResourceDrifts(Builder builder) { this.actualProperties = builder.actualProperties; this.driftDetectionTime = builder.driftDetectionTime; this.expectedProperties = builder.expectedProperties; this.logicalResourceId = builder.logicalResourceId; this.moduleInfo = builder.moduleInfo; this.physicalResourceId = builder.physicalResourceId; this.propertyDifferences = builder.propertyDifferences; this.resourceDriftStatus = builder.resourceDriftStatus; this.resourceType = builder.resourceType; this.stackId = builder.stackId; } public static Builder builder() { return new Builder(); } public static ResourceDrifts create() { return builder().build(); } /** * @return actualProperties */ public String getActualProperties() { return this.actualProperties; } /** * @return driftDetectionTime */ public String getDriftDetectionTime() { return this.driftDetectionTime; } /** * @return expectedProperties */ public String getExpectedProperties() { return this.expectedProperties; } /** * @return logicalResourceId */ public String getLogicalResourceId() { return this.logicalResourceId; } /** * @return moduleInfo */ public ModuleInfo getModuleInfo() { return this.moduleInfo; } /** * @return physicalResourceId */ public String getPhysicalResourceId() { return this.physicalResourceId; } /** * @return propertyDifferences */ public java.util.List<PropertyDifferences> getPropertyDifferences() { return this.propertyDifferences; } /** * @return resourceDriftStatus */ public String getResourceDriftStatus() { return this.resourceDriftStatus; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return stackId */ public String getStackId() { return this.stackId; } public static final class Builder { private String actualProperties; private String driftDetectionTime; private String expectedProperties; private String logicalResourceId; private ModuleInfo moduleInfo; private String physicalResourceId; private java.util.List<PropertyDifferences> propertyDifferences; private String resourceDriftStatus; private String resourceType; private String stackId; private Builder() { } private Builder(ResourceDrifts model) { this.actualProperties = model.actualProperties; this.driftDetectionTime = model.driftDetectionTime; this.expectedProperties = model.expectedProperties; this.logicalResourceId = model.logicalResourceId; this.moduleInfo = model.moduleInfo; this.physicalResourceId = model.physicalResourceId; this.propertyDifferences = model.propertyDifferences; this.resourceDriftStatus = model.resourceDriftStatus; this.resourceType = model.resourceType; this.stackId = model.stackId; } /** * <p>The actual JSON-formatted resource properties.</p> * * <strong>example:</strong> * <p>{&quot;ScalingRuleName&quot;: &quot;test1&quot;}</p> */ public Builder actualProperties(String actualProperties) { this.actualProperties = actualProperties; return this; } /** * <p>The time when the drift detection operation was performed on the resource.</p> * * <strong>example:</strong> * <p>2020-02-27T07:47:47</p> */ public Builder driftDetectionTime(String driftDetectionTime) { this.driftDetectionTime = driftDetectionTime; return this; } /** * <p>The JSON-formatted resource properties that are defined in the template.</p> * * <strong>example:</strong> * <p>{&quot;ScalingRuleName&quot;: &quot;test2&quot;}</p> */ public Builder expectedProperties(String expectedProperties) { this.expectedProperties = expectedProperties; 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>ScalingRule</p> */ public Builder logicalResourceId(String logicalResourceId) { this.logicalResourceId = logicalResourceId; return this; } /** * <p>The information about the modules from which the resource was 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 physical ID of the resource.</p> * * <strong>example:</strong> * <p>asr-2ze4zzc3kf9yz1kd****</p> */ public Builder physicalResourceId(String physicalResourceId) { this.physicalResourceId = physicalResourceId; return this; } /** * <p>The property drifts of the resource.</p> */ public Builder propertyDifferences(java.util.List<PropertyDifferences> propertyDifferences) { this.propertyDifferences = propertyDifferences; return this; } /** * <p>The drift state of the resource. 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: 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 actual configuration of the resource matches its expected template configuration.</li> * </ul> * * <strong>example:</strong> * <p>MODIFIED</p> */ public Builder resourceDriftStatus(String resourceDriftStatus) { this.resourceDriftStatus = resourceDriftStatus; return this; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>ALIYUN::ESS::ScalingRule</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; } public ResourceDrifts build() { return new ResourceDrifts(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/ListStackResourcesRequest.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 ListStackResourcesRequest} extends {@link RequestModel} * * <p>ListStackResourcesRequest</p> */ public class ListStackResourcesRequest 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 ListStackResourcesRequest(Builder builder) { super(builder); this.regionId = builder.regionId; this.stackId = builder.stackId; } public static Builder builder() { return new Builder(); } public static ListStackResourcesRequest 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<ListStackResourcesRequest, Builder> { private String regionId; private String stackId; private Builder() { super(); } private Builder(ListStackResourcesRequest request) { super(request); this.regionId = request.regionId; this.stackId = request.stackId; } /** * <p>The ID of the request.</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 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 ListStackResourcesRequest build() { return new ListStackResourcesRequest(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/ListStackResourcesResponse.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 ListStackResourcesResponse} extends {@link TeaModel} * * <p>ListStackResourcesResponse</p> */ public class ListStackResourcesResponse 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 ListStackResourcesResponseBody body; private ListStackResourcesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListStackResourcesResponse 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 ListStackResourcesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListStackResourcesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListStackResourcesResponseBody body); @Override ListStackResourcesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListStackResourcesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListStackResourcesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListStackResourcesResponse 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(ListStackResourcesResponseBody body) { this.body = body; return this; } @Override public ListStackResourcesResponse build() { return new ListStackResourcesResponse(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/ListStackResourcesResponseBody.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 ListStackResourcesResponseBody} extends {@link TeaModel} * * <p>ListStackResourcesResponseBody</p> */ public class ListStackResourcesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Resources") private java.util.List<Resources> resources; private ListStackResourcesResponseBody(Builder builder) { this.requestId = builder.requestId; this.resources = builder.resources; } public static Builder builder() { return new Builder(); } public static ListStackResourcesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resources */ public java.util.List<Resources> getResources() { return this.resources; } public static final class Builder { private String requestId; private java.util.List<Resources> resources; private Builder() { } private Builder(ListStackResourcesResponseBody model) { this.requestId = model.requestId; this.resources = model.resources; } /** * <p>Details about resources.</p> * * <strong>example:</strong> * <p>B288A0BE-D927-4888-B0F7-B35EF84B6E6</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The resources.</p> */ public Builder resources(java.util.List<Resources> resources) { this.resources = resources; return this; } public ListStackResourcesResponseBody build() { return new ListStackResourcesResponseBody(this); } } /** * * {@link ListStackResourcesResponseBody} extends {@link TeaModel} * * <p>ListStackResourcesResponseBody</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); } } } /** * * {@link ListStackResourcesResponseBody} extends {@link TeaModel} * * <p>ListStackResourcesResponseBody</p> */ public static class Resources extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("DriftDetectionTime") private String driftDetectionTime; @com.aliyun.core.annotation.NameInMap("LogicalResourceId") private String logicalResourceId; @com.aliyun.core.annotation.NameInMap("ModuleInfo") private ModuleInfo moduleInfo; @com.aliyun.core.annotation.NameInMap("PhysicalResourceId") private String physicalResourceId; @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 Resources(Builder builder) { this.createTime = builder.createTime; this.driftDetectionTime = builder.driftDetectionTime; this.logicalResourceId = builder.logicalResourceId; this.moduleInfo = builder.moduleInfo; this.physicalResourceId = builder.physicalResourceId; 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 Resources create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return driftDetectionTime */ public String getDriftDetectionTime() { return this.driftDetectionTime; } /** * @return logicalResourceId */ public String getLogicalResourceId() { return this.logicalResourceId; } /** * @return moduleInfo */ public ModuleInfo getModuleInfo() { return this.moduleInfo; } /** * @return physicalResourceId */ public String getPhysicalResourceId() { return this.physicalResourceId; } /** * @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 driftDetectionTime; private String logicalResourceId; private ModuleInfo moduleInfo; private String physicalResourceId; 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(Resources model) { this.createTime = model.createTime; this.driftDetectionTime = model.driftDetectionTime; this.logicalResourceId = model.logicalResourceId; this.moduleInfo = model.moduleInfo; this.physicalResourceId = model.physicalResourceId; 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 time when the resource 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>2019-08-01T06:01:23</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The time when the most recent successful drift detection was performed on 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 logical ID of the resource. The logical ID is the resource name that is defined in the template.</p> * * <strong>example:</strong> * <p>dummy</p> */ public Builder logicalResourceId(String logicalResourceId) { this.logicalResourceId = logicalResourceId; 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 physical ID of the resource.</p> * * <strong>example:</strong> * <p>d04af923-e6b7-4272-aeaa-47ec9777****</p> */ public Builder physicalResourceId(String physicalResourceId) { this.physicalResourceId = physicalResourceId; return this; } /** * <p>The drift state of the resource in the most recent 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: 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 actual configuration of the resource matches its expected template configuration.</li> * </ul> * * <strong>example:</strong> * <p>IN_SYNC</p> */ public Builder resourceDriftStatus(String resourceDriftStatus) { this.resourceDriftStatus = resourceDriftStatus; return this; } /** * <p>The resource type.</p> * * <strong>example:</strong> * <p>ALIYUN::ROS::Stack</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.<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> * * <strong>example:</strong> * <p>test-describe-resource</p> */ public Builder stackName(String stackName) { this.stackName = stackName; return this; } /** * <p>The state of the resource. Valid values:</p> * <ul> * <li>INIT_COMPLETE: The resource is pending to be created.</li> * <li>CREATE_COMPLETE: The resource is created.</li> * <li>CREATE_FAILED: The resource failed to be created.</li> * <li>CREATE_IN_PROGRESS: The resource is being created.</li> * <li>UPDATE_IN_PROGRESS: The resource is being updated.</li> * <li>UPDATE_FAILED: The resource failed to be updated.</li> * <li>UPDATE_COMPLETE: The resource is updated.</li> * <li>DELETE_IN_PROGRESS: The resource is being deleted.</li> * <li>DELETE_FAILED: The resource failed to be deleted.</li> * <li>DELETE_COMPLETE: The resource is deleted.</li> * <li>CHECK_IN_PROGRESS: The resource is being validated.</li> * <li>CHECK_FAILED: The resource failed to be validated.</li> * <li>CHECK_COMPLETE: The resource is validated.</li> * <li>IMPORT_IN_PROGRESS: The resource is being imported.</li> * <li>IMPORT_FAILED: The resource failed to be imported.</li> * <li>IMPORT_COMPLETE: The resource is imported.</li> * </ul> * * <strong>example:</strong> * <p>UPDATE_COMPLETE</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The reason why the resource is in its current state.</p> * * <strong>example:</strong> * <p>state changed</p> */ public Builder statusReason(String statusReason) { this.statusReason = statusReason; return this; } /** * <p>The time when the resource 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>2019-08-01T06:01:29</p> */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public Resources build() { return new Resources(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/ListStacksRequest.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 ListStacksRequest} extends {@link RequestModel} * * <p>ListStacksRequest</p> */ public class ListStacksRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @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("ParentStackId") private String parentStackId; @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("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ShowNestedStack") private Boolean showNestedStack; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackIds") private java.util.List<String> stackIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackName") private java.util.List<String> stackName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private java.util.List<String> status; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private ListStacksRequest(Builder builder) { super(builder); this.endTime = builder.endTime; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.parentStackId = builder.parentStackId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.showNestedStack = builder.showNestedStack; this.stackId = builder.stackId; this.stackIds = builder.stackIds; this.stackName = builder.stackName; this.startTime = builder.startTime; this.status = builder.status; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static ListStacksRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return parentStackId */ public String getParentStackId() { return this.parentStackId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return showNestedStack */ public Boolean getShowNestedStack() { return this.showNestedStack; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return stackIds */ public java.util.List<String> getStackIds() { return this.stackIds; } /** * @return stackName */ public java.util.List<String> getStackName() { return this.stackName; } /** * @return startTime */ public String getStartTime() { return this.startTime; } /** * @return status */ public java.util.List<String> getStatus() { return this.status; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<ListStacksRequest, Builder> { private String endTime; private Long pageNumber; private Long pageSize; private String parentStackId; private String regionId; private String resourceGroupId; private Boolean showNestedStack; private String stackId; private java.util.List<String> stackIds; private java.util.List<String> stackName; private String startTime; private java.util.List<String> status; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(ListStacksRequest request) { super(request); this.endTime = request.endTime; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.parentStackId = request.parentStackId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.showNestedStack = request.showNestedStack; this.stackId = request.stackId; this.stackIds = request.stackIds; this.stackName = request.stackName; this.startTime = request.startTime; this.status = request.status; this.tag = request.tag; } /** * <p>The end of the time range during which data was queried. The time follows the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2023-04-01T15:16:00Z</p> */ public Builder endTime(String endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>The page number.</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 per page.</p> * <p>Maximum value: 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 ID of the parent stack.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf691****</p> */ public Builder parentStackId(String parentStackId) { this.putQueryParameter("ParentStackId", parentStackId); this.parentStackId = parentStackId; 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 ID of the resource group.<br>For more information about resource groups, see the &quot;Resource Group&quot; section of the <a href="https://help.aliyun.com/document_detail/94475.html">What is Resource Management?</a> topic.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * <p>Specifies whether to return nested stacks. Valid values:</p> * <ul> * <li>true</li> * <li>false (default)</li> * </ul> * <blockquote> * <p>If you specify ParentStackId, you must set ShowNestedStack to true.</p> * </blockquote> * * <strong>example:</strong> * <p>true</p> */ public Builder showNestedStack(Boolean showNestedStack) { this.putQueryParameter("ShowNestedStack", showNestedStack); this.showNestedStack = showNestedStack; return this; } /** * <p>The stack ID. You can specify this parameter to query only the stack ID. If you want to query the detailed information about the stack, call the GetStack operation.</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 IDs of the stacks.</p> */ public Builder stackIds(java.util.List<String> stackIds) { this.putQueryParameter("StackIds", stackIds); this.stackIds = stackIds; return this; } /** * <p>The names of the stacks.</p> * * <strong>example:</strong> * <p>MyStack</p> */ public Builder stackName(java.util.List<String> stackName) { this.putQueryParameter("StackName", stackName); this.stackName = stackName; return this; } /** * <p>The beginning of the time range to query. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time must be in UTC.</p> * * <strong>example:</strong> * <p>2023-04-01T15:10:00Z</p> */ public Builder startTime(String startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } /** * <p>The status of the stack.</p> * * <strong>example:</strong> * <p>CREATE_COMPLETE</p> */ public Builder status(java.util.List<String> status) { this.putQueryParameter("Status", status); this.status = status; return this; } /** * <p>The tags of the stack.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public ListStacksRequest build() { return new ListStacksRequest(this); } } /** * * {@link ListStacksRequest} extends {@link TeaModel} * * <p>ListStacksRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag 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(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The key of tag N.<br>Valid values of N: 1 to 20.</p> * * <strong>example:</strong> * <p>usage</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N.<br>Valid values of N: 1 to 20.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(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/ListStacksResponse.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 ListStacksResponse} extends {@link TeaModel} * * <p>ListStacksResponse</p> */ public class ListStacksResponse 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 ListStacksResponseBody body; private ListStacksResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListStacksResponse 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 ListStacksResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListStacksResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListStacksResponseBody body); @Override ListStacksResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListStacksResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListStacksResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListStacksResponse 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(ListStacksResponseBody body) { this.body = body; return this; } @Override public ListStacksResponse build() { return new ListStacksResponse(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/ListStacksResponseBody.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 ListStacksResponseBody} extends {@link TeaModel} * * <p>ListStacksResponseBody</p> */ public class ListStacksResponseBody 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("Stacks") private java.util.List<Stacks> stacks; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private ListStacksResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.stacks = builder.stacks; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListStacksResponseBody 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 stacks */ public java.util.List<Stacks> getStacks() { return this.stacks; } /** * @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<Stacks> stacks; private Integer totalCount; private Builder() { } private Builder(ListStacksResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.stacks = model.stacks; 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 number of entries per page.</p> * <p>Maximum value: 50.</p> * <p>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>FBAC80B4-9C27-529D-BC9C-4155FA5CD7A7</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Details of the stacks.</p> */ public Builder stacks(java.util.List<Stacks> stacks) { this.stacks = stacks; return this; } /** * <p>The total number of stacks.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public ListStacksResponseBody build() { return new ListStacksResponseBody(this); } } /** * * {@link ListStacksResponseBody} extends {@link TeaModel} * * <p>ListStacksResponseBody</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 occurred.</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 occurred.</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 ListStacksResponseBody} extends {@link TeaModel} * * <p>ListStacksResponseBody</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>acs:rm:rgId</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the stack.</p> * * <strong>example:</strong> * <p>rg-aek2frunvw7****</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link ListStacksResponseBody} extends {@link TeaModel} * * <p>ListStacksResponseBody</p> */ public static class Stacks extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("DeletionProtection") private String deletionProtection; @com.aliyun.core.annotation.NameInMap("DisableRollback") private Boolean disableRollback; @com.aliyun.core.annotation.NameInMap("DriftDetectionTime") private String driftDetectionTime; @com.aliyun.core.annotation.NameInMap("OperationInfo") private OperationInfo operationInfo; @com.aliyun.core.annotation.NameInMap("ParentStackId") private String parentStackId; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @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("TimeoutInMinutes") private Integer timeoutInMinutes; @com.aliyun.core.annotation.NameInMap("UpdateTime") private String updateTime; private Stacks(Builder builder) { this.createTime = builder.createTime; this.deletionProtection = builder.deletionProtection; this.disableRollback = builder.disableRollback; this.driftDetectionTime = builder.driftDetectionTime; this.operationInfo = builder.operationInfo; this.parentStackId = builder.parentStackId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; 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.timeoutInMinutes = builder.timeoutInMinutes; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static Stacks create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return deletionProtection */ public String getDeletionProtection() { return this.deletionProtection; } /** * @return disableRollback */ public Boolean getDisableRollback() { return this.disableRollback; } /** * @return driftDetectionTime */ public String getDriftDetectionTime() { return this.driftDetectionTime; } /** * @return operationInfo */ public OperationInfo getOperationInfo() { return this.operationInfo; } /** * @return parentStackId */ public String getParentStackId() { return this.parentStackId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @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 timeoutInMinutes */ public Integer getTimeoutInMinutes() { return this.timeoutInMinutes; } /** * @return updateTime */ public String getUpdateTime() { return this.updateTime; } public static final class Builder { private String createTime; private String deletionProtection; private Boolean disableRollback; private String driftDetectionTime; private OperationInfo operationInfo; private String parentStackId; private String regionId; private String resourceGroupId; 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 Integer timeoutInMinutes; private String updateTime; private Builder() { } private Builder(Stacks model) { this.createTime = model.createTime; this.deletionProtection = model.deletionProtection; this.disableRollback = model.disableRollback; this.driftDetectionTime = model.driftDetectionTime; this.operationInfo = model.operationInfo; this.parentStackId = model.parentStackId; this.regionId = model.regionId; this.resourceGroupId = model.resourceGroupId; 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.timeoutInMinutes = model.timeoutInMinutes; this.updateTime = model.updateTime; } /** * <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>2022-03-10T06:44:36</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. In this case, you can delete the stack by using the console or calling the <a href="https://help.aliyun.com/document_detail/610812.html">DeleteStack</a> operation.</li> * </ul> * <blockquote> * <p> Deletion protection of a nested stack is the same as that of its root stack.</p> * </blockquote> * * <strong>example:</strong> * <p>Disabled</p> */ public Builder deletionProtection(String deletionProtection) { this.deletionProtection = deletionProtection; 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>2022-03-10T06:46:36</p> */ public Builder driftDetectionTime(String driftDetectionTime) { this.driftDetectionTime = driftDetectionTime; return this; } /** * <p>The supplementary information that is returned if an error occurs on a stack operation.</p> * <blockquote> * <p> This parameter is returned only under specific conditions, and is returned together with at least one sub-parameter. For example, an error occurred when an API operation of another Alibaba Cloud service was called.</p> * </blockquote> */ public Builder operationInfo(OperationInfo operationInfo) { this.operationInfo = operationInfo; 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 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 ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-aek2frunvw7****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; 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>67805444-a605-45ee-a57f-83908ff6****</p> */ public Builder stackId(String stackId) { this.stackId = stackId; return this; } /** * <p>The stack name.</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.</p> * * <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 timeout period for creating the stack. Unit: minutes.</p> * * <strong>example:</strong> * <p>60</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>2022-03-10T07:44:36</p> */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public Stacks build() { return new Stacks(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/ListTagKeysRequest.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 ListTagKeysRequest} extends {@link RequestModel} * * <p>ListTagKeysRequest</p> */ public class ListTagKeysRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @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") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; private ListTagKeysRequest(Builder builder) { super(builder); this.nextToken = builder.nextToken; this.regionId = builder.regionId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static ListTagKeysRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder<ListTagKeysRequest, Builder> { private String nextToken; private String regionId; private String resourceType; private Builder() { super(); } private Builder(ListTagKeysRequest request) { super(request); this.nextToken = request.nextToken; this.regionId = request.regionId; this.resourceType = request.resourceType; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results.</p> * * <strong>example:</strong> * <p>caeba0bbb2be03f84eb48b699f0*****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The region ID of the tag key. 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 type of the resource. Valid values:</p> * <ul> * <li>stack: stack</li> * <li>stackgroup: stack group</li> * <li>template: template</li> * <li>templatescratch: scenario</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>stack</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public ListTagKeysRequest build() { return new ListTagKeysRequest(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/ListTagKeysResponse.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 ListTagKeysResponse} extends {@link TeaModel} * * <p>ListTagKeysResponse</p> */ public class ListTagKeysResponse 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 ListTagKeysResponseBody body; private ListTagKeysResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListTagKeysResponse 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 ListTagKeysResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListTagKeysResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListTagKeysResponseBody body); @Override ListTagKeysResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListTagKeysResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListTagKeysResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListTagKeysResponse 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(ListTagKeysResponseBody body) { this.body = body; return this; } @Override public ListTagKeysResponse build() { return new ListTagKeysResponse(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/ListTagKeysResponseBody.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 ListTagKeysResponseBody} extends {@link TeaModel} * * <p>ListTagKeysResponseBody</p> */ public class ListTagKeysResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Keys") private java.util.List<String> keys; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ListTagKeysResponseBody(Builder builder) { this.keys = builder.keys; this.nextToken = builder.nextToken; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ListTagKeysResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return keys */ public java.util.List<String> getKeys() { return this.keys; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<String> keys; private String nextToken; private String requestId; private Builder() { } private Builder(ListTagKeysResponseBody model) { this.keys = model.keys; this.nextToken = model.nextToken; this.requestId = model.requestId; } /** * <p>The tag keys.</p> */ public Builder keys(java.util.List<String> keys) { this.keys = keys; return this; } /** * <p>A pagination token. It can be used in the next request to retrieve a new page of results.</p> * * <strong>example:</strong> * <p>caeba0bbb2be03f84eb48b699f0*****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>C429473A-5C66-4661-B5F8-4F900CD4330A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ListTagKeysResponseBody build() { return new ListTagKeysResponseBody(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/ListTagResourcesRequest.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 ListTagResourcesRequest} extends {@link RequestModel} * * <p>ListTagResourcesRequest</p> */ public class ListTagResourcesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @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("ResourceId") private java.util.List<String> resourceId; @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("Tag") private java.util.List<Tag> tag; private ListTagResourcesRequest(Builder builder) { super(builder); this.nextToken = builder.nextToken; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceType = builder.resourceType; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static ListTagResourcesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public java.util.List<String> getResourceId() { return this.resourceId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<ListTagResourcesRequest, Builder> { private String nextToken; private String regionId; private java.util.List<String> resourceId; private String resourceType; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(ListTagResourcesRequest request) { super(request); this.nextToken = request.nextToken; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceType = request.resourceType; this.tag = request.tag; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results.</p> * * <strong>example:</strong> * <p>caeba0bbb2be03f84eb48b699f0*****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The region ID of the tag. 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 IDs of the resources.</p> * * <strong>example:</strong> * <p>6bc589b5-9c02-4944-8fc3-f3624234****</p> */ public Builder resourceId(java.util.List<String> resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * <p>The type of the resource. Valid values:</p> * <ul> * <li>stack: stack</li> * <li>stackgroup: stack group</li> * <li>template: template</li> * <li>templatescratch: scenario</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>stack</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The tags of the resources. You can specify up to 20 tags.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public ListTagResourcesRequest build() { return new ListTagResourcesRequest(this); } } /** * * {@link ListTagResourcesRequest} extends {@link TeaModel} * * <p>ListTagResourcesRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag 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(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key of the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.<br>The tag key can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag key cannot start with <code>aliyun</code> or <code>acs:</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the resource. You can specify up to 20 tag values. The tag value can be an empty string.<br>The tag value can be up to 128 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(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/ListTagResourcesResponse.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 ListTagResourcesResponse} extends {@link TeaModel} * * <p>ListTagResourcesResponse</p> */ public class ListTagResourcesResponse 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 ListTagResourcesResponseBody body; private ListTagResourcesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListTagResourcesResponse 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 ListTagResourcesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListTagResourcesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListTagResourcesResponseBody body); @Override ListTagResourcesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListTagResourcesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListTagResourcesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListTagResourcesResponse 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(ListTagResourcesResponseBody body) { this.body = body; return this; } @Override public ListTagResourcesResponse build() { return new ListTagResourcesResponse(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/ListTagResourcesResponseBody.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 ListTagResourcesResponseBody} extends {@link TeaModel} * * <p>ListTagResourcesResponseBody</p> */ public class ListTagResourcesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TagResources") private java.util.List<TagResources> tagResources; private ListTagResourcesResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.tagResources = builder.tagResources; } public static Builder builder() { return new Builder(); } public static ListTagResourcesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return tagResources */ public java.util.List<TagResources> getTagResources() { return this.tagResources; } public static final class Builder { private String nextToken; private String requestId; private java.util.List<TagResources> tagResources; private Builder() { } private Builder(ListTagResourcesResponseBody model) { this.nextToken = model.nextToken; this.requestId = model.requestId; this.tagResources = model.tagResources; } /** * <p>A pagination token. It can be used in the next request to retrieve a new page of results.</p> * * <strong>example:</strong> * <p>caeba0bbb2be03f84eb48b699f0*****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>C429473A-5C66-4661-B5F8-4F900CD4330A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information about the tags that are added to the resources.</p> */ public Builder tagResources(java.util.List<TagResources> tagResources) { this.tagResources = tagResources; return this; } public ListTagResourcesResponseBody build() { return new ListTagResourcesResponseBody(this); } } /** * * {@link ListTagResourcesResponseBody} extends {@link TeaModel} * * <p>ListTagResourcesResponseBody</p> */ public static class TagResources extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceId") private String resourceId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("TagKey") private String tagKey; @com.aliyun.core.annotation.NameInMap("TagValue") private String tagValue; private TagResources(Builder builder) { this.resourceId = builder.resourceId; this.resourceType = builder.resourceType; this.tagKey = builder.tagKey; this.tagValue = builder.tagValue; } public static Builder builder() { return new Builder(); } public static TagResources create() { return builder().build(); } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return tagKey */ public String getTagKey() { return this.tagKey; } /** * @return tagValue */ public String getTagValue() { return this.tagValue; } public static final class Builder { private String resourceId; private String resourceType; private String tagKey; private String tagValue; private Builder() { } private Builder(TagResources model) { this.resourceId = model.resourceId; this.resourceType = model.resourceType; this.tagKey = model.tagKey; this.tagValue = model.tagValue; } /** * <p>The ID of the resource.</p> * * <strong>example:</strong> * <p>c754d2a4-28f1-46df-b557-9586173a****</p> */ public Builder resourceId(String resourceId) { this.resourceId = resourceId; return this; } /** * <p>The type of the resource.</p> * * <strong>example:</strong> * <p>stack</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The tag key of the resource.</p> * * <strong>example:</strong> * <p>TagKey1</p> */ public Builder tagKey(String tagKey) { this.tagKey = tagKey; return this; } /** * <p>The tag value of the resource.</p> * * <strong>example:</strong> * <p>TayValue1</p> */ public Builder tagValue(String tagValue) { this.tagValue = tagValue; return this; } public TagResources build() { return new TagResources(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/ListTagValuesRequest.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 ListTagValuesRequest} extends {@link RequestModel} * * <p>ListTagValuesRequest</p> */ public class ListTagValuesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Key") @com.aliyun.core.annotation.Validation(required = true) private String key; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @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") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; private ListTagValuesRequest(Builder builder) { super(builder); this.key = builder.key; this.nextToken = builder.nextToken; this.regionId = builder.regionId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static ListTagValuesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return key */ public String getKey() { return this.key; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder<ListTagValuesRequest, Builder> { private String key; private String nextToken; private String regionId; private String resourceType; private Builder() { super(); } private Builder(ListTagValuesRequest request) { super(request); this.key = request.key; this.nextToken = request.nextToken; this.regionId = request.regionId; this.resourceType = request.resourceType; } /** * <p>The key of the tag.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>TagKey1</p> */ public Builder key(String key) { this.putQueryParameter("Key", key); this.key = key; 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>caeba0bbb2be03f84eb48b699f0*****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The region ID of the tag value. 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 type of the resource. Valid values:</p> * <ul> * <li>stack: stack</li> * <li>stackgroup: stack group</li> * <li>template: template</li> * <li>templatescratch: scenario</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>stack</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public ListTagValuesRequest build() { return new ListTagValuesRequest(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/ListTagValuesResponse.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 ListTagValuesResponse} extends {@link TeaModel} * * <p>ListTagValuesResponse</p> */ public class ListTagValuesResponse 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 ListTagValuesResponseBody body; private ListTagValuesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListTagValuesResponse 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 ListTagValuesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListTagValuesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListTagValuesResponseBody body); @Override ListTagValuesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListTagValuesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListTagValuesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListTagValuesResponse 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(ListTagValuesResponseBody body) { this.body = body; return this; } @Override public ListTagValuesResponse build() { return new ListTagValuesResponse(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/ListTagValuesResponseBody.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 ListTagValuesResponseBody} extends {@link TeaModel} * * <p>ListTagValuesResponseBody</p> */ public class ListTagValuesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Values") private java.util.List<String> values; private ListTagValuesResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.values = builder.values; } public static Builder builder() { return new Builder(); } public static ListTagValuesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return values */ public java.util.List<String> getValues() { return this.values; } public static final class Builder { private String nextToken; private String requestId; private java.util.List<String> values; private Builder() { } private Builder(ListTagValuesResponseBody model) { this.nextToken = model.nextToken; this.requestId = model.requestId; this.values = model.values; } /** * <p>A pagination token. It can be used in the next request to retrieve a new page of results.</p> * * <strong>example:</strong> * <p>caeba0bbb2be03f84eb48b699f0*****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>C429473A-5C66-4661-B5F8-4F900CD4330A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The tag values.</p> */ public Builder values(java.util.List<String> values) { this.values = values; return this; } public ListTagValuesResponseBody build() { return new ListTagValuesResponseBody(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/ListTemplateScratchesRequest.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 ListTemplateScratchesRequest} extends {@link RequestModel} * * <p>ListTemplateScratchesRequest</p> */ public class ListTemplateScratchesRequest extends Request { @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("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateScratchId") private String templateScratchId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateScratchType") private String templateScratchType; private ListTemplateScratchesRequest(Builder builder) { super(builder); this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.status = builder.status; this.tags = builder.tags; this.templateScratchId = builder.templateScratchId; this.templateScratchType = builder.templateScratchType; } public static Builder builder() { return new Builder(); } public static ListTemplateScratchesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return templateScratchId */ public String getTemplateScratchId() { return this.templateScratchId; } /** * @return templateScratchType */ public String getTemplateScratchType() { return this.templateScratchType; } public static final class Builder extends Request.Builder<ListTemplateScratchesRequest, Builder> { private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceGroupId; private String status; private java.util.List<Tags> tags; private String templateScratchId; private String templateScratchType; private Builder() { super(); } private Builder(ListTemplateScratchesRequest request) { super(request); this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.status = request.status; this.tags = request.tags; this.templateScratchId = request.templateScratchId; this.templateScratchType = request.templateScratchType; } /** * <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(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries to return on each page.</p> * <p>Maximum value: 50.</p> * <p>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 region ID of the 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 group.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * <p>The status of the scenario. Valid values:</p> * <ul> * <li>GENERATE_IN_PROGRESS: The scenario is being created.</li> * <li>GENERATE_COMPLETE: The scenario is created.</li> * <li>GENERATE_FAILED: The scenario fails to be created.</li> * </ul> * * <strong>example:</strong> * <p>[&quot;GENERATE_COMPLETE&quot;]</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } /** * <p>The tags of the scenario.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } /** * <p>The ID of the scenario.</p> * * <strong>example:</strong> * <p>ts-7f7a704cf71c49a6****</p> */ public Builder templateScratchId(String templateScratchId) { this.putQueryParameter("TemplateScratchId", templateScratchId); this.templateScratchId = templateScratchId; return this; } /** * <p>The type of the resource scenario. Valid values:</p> * <ul> * <li>ArchitectureReplication: resource replication</li> * <li>ArchitectureDetection: resource detection</li> * <li>ResourceImport: resource management</li> * <li>ResourceMigration: resource migration</li> * </ul> * * <strong>example:</strong> * <p>ArchitectureReplication</p> */ public Builder templateScratchType(String templateScratchType) { this.putQueryParameter("TemplateScratchType", templateScratchType); this.templateScratchType = templateScratchType; return this; } @Override public ListTemplateScratchesRequest build() { return new ListTemplateScratchesRequest(this); } } /** * * {@link ListTemplateScratchesRequest} extends {@link TeaModel} * * <p>ListTemplateScratchesRequest</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") @com.aliyun.core.annotation.Validation(required = true) 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 scenario.</p> * <blockquote> * <p>Tags is optional. If you want to specify Tags, you must specify Key.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>usage</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the scenario.</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/ListTemplateScratchesResponse.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 ListTemplateScratchesResponse} extends {@link TeaModel} * * <p>ListTemplateScratchesResponse</p> */ public class ListTemplateScratchesResponse 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 ListTemplateScratchesResponseBody body; private ListTemplateScratchesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListTemplateScratchesResponse 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 ListTemplateScratchesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListTemplateScratchesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListTemplateScratchesResponseBody body); @Override ListTemplateScratchesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListTemplateScratchesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListTemplateScratchesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListTemplateScratchesResponse 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(ListTemplateScratchesResponseBody body) { this.body = body; return this; } @Override public ListTemplateScratchesResponse build() { return new ListTemplateScratchesResponse(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/ListTemplateScratchesResponseBody.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 ListTemplateScratchesResponseBody} extends {@link TeaModel} * * <p>ListTemplateScratchesResponseBody</p> */ public class ListTemplateScratchesResponseBody 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("TemplateScratches") private java.util.List<TemplateScratches> templateScratches; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private ListTemplateScratchesResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.templateScratches = builder.templateScratches; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListTemplateScratchesResponseBody 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 templateScratches */ public java.util.List<TemplateScratches> getTemplateScratches() { return this.templateScratches; } /** * @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<TemplateScratches> templateScratches; private Integer totalCount; private Builder() { } private Builder(ListTemplateScratchesResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.templateScratches = model.templateScratches; 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>10</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>D1C09606-C58B-558F-9B4E-5BF263D17D09</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The resource scenarios.</p> */ public Builder templateScratches(java.util.List<TemplateScratches> templateScratches) { this.templateScratches = templateScratches; return this; } /** * <p>The total number of scenarios.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public ListTemplateScratchesResponseBody build() { return new ListTemplateScratchesResponseBody(this); } } /** * * {@link ListTemplateScratchesResponseBody} extends {@link TeaModel} * * <p>ListTemplateScratchesResponseBody</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 ListTemplateScratchesResponseBody} extends {@link TeaModel} * * <p>ListTemplateScratchesResponseBody</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 types for filtering resources.</p> */ public Builder resourceTypeFilter(java.util.List<String> resourceTypeFilter) { this.resourceTypeFilter = resourceTypeFilter; return this; } public SourceResourceGroup build() { return new SourceResourceGroup(this); } } } /** * * {@link ListTemplateScratchesResponseBody} extends {@link TeaModel} * * <p>ListTemplateScratchesResponseBody</p> */ public static class SourceResources extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceId") private String resourceId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private SourceResources(Builder builder) { this.resourceId = builder.resourceId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static SourceResources create() { return builder().build(); } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private String resourceId; private String resourceType; private Builder() { } private Builder(SourceResources model) { this.resourceId = model.resourceId; this.resourceType = model.resourceType; } /** * <p>The resource ID.</p> * * <strong>example:</strong> * <p>vpc-m5eauuq80anx59v28****</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 ListTemplateScratchesResponseBody} extends {@link TeaModel} * * <p>ListTemplateScratchesResponseBody</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 types for filtering resources.</p> */ public Builder resourceTypeFilter(java.util.List<String> resourceTypeFilter) { this.resourceTypeFilter = resourceTypeFilter; return this; } public SourceTag build() { return new SourceTag(this); } } } /** * * {@link ListTemplateScratchesResponseBody} extends {@link TeaModel} * * <p>ListTemplateScratchesResponseBody</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 resource scenario.</p> * * <strong>example:</strong> * <p>usage1</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the resource scenario.</p> * * <strong>example:</strong> * <p>test1</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link ListTemplateScratchesResponseBody} extends {@link TeaModel} * * <p>ListTemplateScratchesResponseBody</p> */ public static class TemplateScratches 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("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("TemplateScratchId") private String templateScratchId; @com.aliyun.core.annotation.NameInMap("TemplateScratchType") private String templateScratchType; @com.aliyun.core.annotation.NameInMap("UpdateTime") private String updateTime; private TemplateScratches(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.status = builder.status; this.statusReason = builder.statusReason; this.tags = builder.tags; this.templateScratchId = builder.templateScratchId; this.templateScratchType = builder.templateScratchType; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static TemplateScratches 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 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 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 String status; private String statusReason; private java.util.List<Tags> tags; private String templateScratchId; private String templateScratchType; private String updateTime; private Builder() { } private Builder(TemplateScratches 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.status = model.status; this.statusReason = model.statusReason; this.tags = model.tags; this.templateScratchId = model.templateScratchId; this.templateScratchType = model.templateScratchType; this.updateTime = model.updateTime; } /** * <p>The time when 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-07T08:06:44</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 scenario.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The status code of the resource scenario that failed to be generated.</p> * <blockquote> * <p> This parameter is returned only if the value of Status is 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-acfm4nxcvht4pmi</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 state of the resource scenario.</p> * * <strong>example:</strong> * <p>GENERATE_COMPLETE</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The reason why the resource scenario failed to be generated.</p> * <blockquote> * <p> This parameter is returned only if the value of Status is 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 tags of the resource scenario.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The ID of the resource scenario.</p> * * <strong>example:</strong> * <p>ts-48ad85d66cca4620****</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>ResourceImport</p> */ public Builder templateScratchType(String templateScratchType) { this.templateScratchType = templateScratchType; return this; } /** * <p>The time when 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-07T08:06:44</p> */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public TemplateScratches build() { return new TemplateScratches(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/ListTemplateVersionsRequest.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 ListTemplateVersionsRequest} extends {@link RequestModel} * * <p>ListTemplateVersionsRequest</p> */ public class ListTemplateVersionsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 10000, minimum = 1) private Long 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("TemplateId") @com.aliyun.core.annotation.Validation(required = true) private String templateId; private ListTemplateVersionsRequest(Builder builder) { super(builder); this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.templateId = builder.templateId; } public static Builder builder() { return new Builder(); } public static ListTemplateVersionsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return maxResults */ public Long getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return templateId */ public String getTemplateId() { return this.templateId; } public static final class Builder extends Request.Builder<ListTemplateVersionsRequest, Builder> { private Long maxResults; private String nextToken; private String templateId; private Builder() { super(); } private Builder(ListTemplateVersionsRequest request) { super(request); this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.templateId = request.templateId; } /** * <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(Long 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>caeba0bbb2be03f84eb48b699f0****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The template ID. This parameter applies to shared and private templates.</p> * <p>This parameter is required.</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; } @Override public ListTemplateVersionsRequest build() { return new ListTemplateVersionsRequest(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/ListTemplateVersionsResponse.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 ListTemplateVersionsResponse} extends {@link TeaModel} * * <p>ListTemplateVersionsResponse</p> */ public class ListTemplateVersionsResponse 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 ListTemplateVersionsResponseBody body; private ListTemplateVersionsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListTemplateVersionsResponse 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 ListTemplateVersionsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListTemplateVersionsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListTemplateVersionsResponseBody body); @Override ListTemplateVersionsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListTemplateVersionsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListTemplateVersionsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListTemplateVersionsResponse 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(ListTemplateVersionsResponseBody body) { this.body = body; return this; } @Override public ListTemplateVersionsResponse build() { return new ListTemplateVersionsResponse(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/ListTemplateVersionsResponseBody.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 ListTemplateVersionsResponseBody} extends {@link TeaModel} * * <p>ListTemplateVersionsResponseBody</p> */ public class ListTemplateVersionsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Versions") private java.util.List<Versions> versions; private ListTemplateVersionsResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.versions = builder.versions; } public static Builder builder() { return new Builder(); } public static ListTemplateVersionsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return versions */ public java.util.List<Versions> getVersions() { return this.versions; } public static final class Builder { private String nextToken; private String requestId; private java.util.List<Versions> versions; private Builder() { } private Builder(ListTemplateVersionsResponseBody model) { this.nextToken = model.nextToken; this.requestId = model.requestId; this.versions = model.versions; } /** * <p>A pagination token. It can be used in the next request to retrieve a new page of results.</p> * * <strong>example:</strong> * <p>caeba0bbb2be03f84eb48b699f0****</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>The versions.</p> */ public Builder versions(java.util.List<Versions> versions) { this.versions = versions; return this; } public ListTemplateVersionsResponseBody build() { return new ListTemplateVersionsResponseBody(this); } } /** * * {@link ListTemplateVersionsResponseBody} extends {@link TeaModel} * * <p>ListTemplateVersionsResponseBody</p> */ public static class Versions 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("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 Versions(Builder builder) { this.createTime = builder.createTime; this.description = builder.description; 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 Versions create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @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 String createTime; private String description; private String templateId; private String templateName; private String templateVersion; private String updateTime; private Builder() { } private Builder(Versions model) { this.createTime = model.createTime; this.description = model.description; this.templateId = model.templateId; this.templateName = model.templateName; this.templateVersion = model.templateVersion; this.updateTime = model.updateTime; } /** * <p>The time when the version was created.</p> * * <strong>example:</strong> * <p>2020-02-27T07:47:47</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The description of the version.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The template ID. This parameter applies to shared and private templates. For a shared template, the template ID is the same as the Alibaba Cloud Resource Name (ARN) of the template.</p> * * <strong>example:</strong> * <p>5ecd1e10-b0e9-4389-a565-e4c15efc****</p> */ public Builder templateId(String templateId) { this.templateId = templateId; return this; } /** * <p>The template name that corresponds to the specified version.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder templateName(String templateName) { this.templateName = templateName; return this; } /** * <p>The version number.</p> * <p>For 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 time when the version was last updated.</p> * * <strong>example:</strong> * <p>2020-02-27T07:47:47</p> */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public Versions build() { return new Versions(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/ListTemplatesRequest.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 ListTemplatesRequest} extends {@link RequestModel} * * <p>ListTemplatesRequest</p> */ public class ListTemplatesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Filters") private java.util.List<Filters> filters; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IncludeTags") private String includeTags; @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("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ShareType") private String shareType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateName") private String templateName; private ListTemplatesRequest(Builder builder) { super(builder); this.filters = builder.filters; this.includeTags = builder.includeTags; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.resourceGroupId = builder.resourceGroupId; this.shareType = builder.shareType; this.tag = builder.tag; this.templateName = builder.templateName; } public static Builder builder() { return new Builder(); } public static ListTemplatesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return filters */ public java.util.List<Filters> getFilters() { return this.filters; } /** * @return includeTags */ public String getIncludeTags() { return this.includeTags; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return shareType */ public String getShareType() { return this.shareType; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } /** * @return templateName */ public String getTemplateName() { return this.templateName; } public static final class Builder extends Request.Builder<ListTemplatesRequest, Builder> { private java.util.List<Filters> filters; private String includeTags; private Long pageNumber; private Long pageSize; private String resourceGroupId; private String shareType; private java.util.List<Tag> tag; private String templateName; private Builder() { super(); } private Builder(ListTemplatesRequest request) { super(request); this.filters = request.filters; this.includeTags = request.includeTags; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.resourceGroupId = request.resourceGroupId; this.shareType = request.shareType; this.tag = request.tag; this.templateName = request.templateName; } /** * <p>Filter.</p> */ public Builder filters(java.util.List<Filters> filters) { this.putQueryParameter("Filters", filters); this.filters = filters; return this; } /** * <p>Whether to query tag information. Values: </p> * <ul> * <li>Enabled: Query. </li> * <li>Disabled (default): Do not query.</li> * </ul> * * <strong>example:</strong> * <p>Enabled</p> */ public Builder includeTags(String includeTags) { this.putQueryParameter("IncludeTags", includeTags); this.includeTags = includeTags; return this; } /** * <p>The page number of the template list.<br>Start value: 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 in a paginated query.<br>Value range: 1~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 ID of the resource group.<br>For more information about resource groups, see <a href="https://help.aliyun.com/document_detail/94475.html">What is a Resource Group</a>.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * <p>The sharing type of the template. </p> * <p>Values: </p> * <ul> * <li>Private (default): The template is owned by the user. </li> * <li>Shared: The template is shared by other users. </li> * <li>Official: The template is officially shared.</li> * </ul> * * <strong>example:</strong> * <p>Private</p> */ public Builder shareType(String shareType) { this.putQueryParameter("ShareType", shareType); this.shareType = shareType; return this; } /** * <p>Tags. A maximum of 20 tags are supported.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * <p>The name of the template. This parameter is effective only when ShareType is Private.<br>The length must not exceed 255 characters and must start with a digit or a letter. It can contain digits, letters, hyphens (-), and underscores (_).</p> * * <strong>example:</strong> * <p>MyTemplate</p> */ public Builder templateName(String templateName) { this.putQueryParameter("TemplateName", templateName); this.templateName = templateName; return this; } @Override public ListTemplatesRequest build() { return new ListTemplatesRequest(this); } } /** * * {@link ListTemplatesRequest} extends {@link TeaModel} * * <p>ListTemplatesRequest</p> */ public static class Filters extends TeaModel { @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Values") private java.util.List<String> values; private Filters(Builder builder) { this.name = builder.name; this.values = builder.values; } public static Builder builder() { return new Builder(); } public static Filters create() { return builder().build(); } /** * @return name */ public String getName() { return this.name; } /** * @return values */ public java.util.List<String> getValues() { return this.values; } public static final class Builder { private String name; private java.util.List<String> values; private Builder() { } private Builder(Filters model) { this.name = model.name; this.values = model.values; } /** * <p>The name of the filter. You can choose one or more names for the query. Value range: </p> * <ul> * <li>Categories: Template categories </li> * <li>DeployTypes: Deployment types </li> * <li>ApplicationScenes: Application scenarios </li> * <li>BasicServices: Basic services </li> * <li>ResourceTypes: Resource types </li> * <li>TemplateNames: Template names</li> * </ul> * * <strong>example:</strong> * <p>Categories</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The list of filter values.</p> */ public Builder values(java.util.List<String> values) { this.values = values; return this; } public Filters build() { return new Filters(this); } } } /** * * {@link ListTemplatesRequest} extends {@link TeaModel} * * <p>ListTemplatesRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag 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(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The key of the tag. This parameter is effective only when ShareType is Private. </p> * <p>A maximum of 20 tag keys are supported.</p> * * <strong>example:</strong> * <p>usage</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of the tag. This parameter is effective only when ShareType is Private. </p> * <p>A maximum of 20 tag values are supported.</p> * * <strong>example:</strong> * <p>deploy</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(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/ListTemplatesResponse.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 ListTemplatesResponse} extends {@link TeaModel} * * <p>ListTemplatesResponse</p> */ public class ListTemplatesResponse 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 ListTemplatesResponseBody body; private ListTemplatesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListTemplatesResponse 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 ListTemplatesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListTemplatesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListTemplatesResponseBody body); @Override ListTemplatesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListTemplatesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListTemplatesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListTemplatesResponse 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(ListTemplatesResponseBody body) { this.body = body; return this; } @Override public ListTemplatesResponse build() { return new ListTemplatesResponse(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/ListTemplatesResponseBody.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 ListTemplatesResponseBody} extends {@link TeaModel} * * <p>ListTemplatesResponseBody</p> */ public class ListTemplatesResponseBody 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("Templates") private java.util.List<Templates> templates; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private ListTemplatesResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.templates = builder.templates; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListTemplatesResponseBody 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 templates */ public java.util.List<Templates> getTemplates() { return this.templates; } /** * @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<Templates> templates; private Integer totalCount; private Builder() { } private Builder(ListTemplatesResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.templates = model.templates; this.totalCount = model.totalCount; } /** * <p>The page number of the template list.<br>Start value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page in a paginated query.</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>C3A8413B-1F16-4DED-AC3E-61A00718DE8A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The list of templates.</p> */ public Builder templates(java.util.List<Templates> templates) { this.templates = templates; return this; } /** * <p>The total number of templates.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public ListTemplatesResponseBody build() { return new ListTemplatesResponseBody(this); } } /** * * {@link ListTemplatesResponseBody} extends {@link TeaModel} * * <p>ListTemplatesResponseBody</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>Tag key of the template.</p> * * <strong>example:</strong> * <p>usage</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>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); } } } /** * * {@link ListTemplatesResponseBody} extends {@link TeaModel} * * <p>ListTemplatesResponseBody</p> */ public static class Templates extends TeaModel { @com.aliyun.core.annotation.NameInMap("AdditionalInfo") private java.util.Map<String, ?> additionalInfo; @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("OwnerId") private String ownerId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("ShareType") private String shareType; @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("TemplateId") private String templateId; @com.aliyun.core.annotation.NameInMap("TemplateName") private String templateName; @com.aliyun.core.annotation.NameInMap("TemplateUrl") private String templateUrl; @com.aliyun.core.annotation.NameInMap("TemplateVersion") private String templateVersion; @com.aliyun.core.annotation.NameInMap("UpdateTime") private String updateTime; private Templates(Builder builder) { this.additionalInfo = builder.additionalInfo; this.createTime = builder.createTime; this.description = builder.description; this.ownerId = builder.ownerId; this.resourceGroupId = builder.resourceGroupId; this.shareType = builder.shareType; this.tags = builder.tags; this.templateARN = builder.templateARN; this.templateId = builder.templateId; this.templateName = builder.templateName; this.templateUrl = builder.templateUrl; this.templateVersion = builder.templateVersion; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static Templates create() { return builder().build(); } /** * @return additionalInfo */ public java.util.Map<String, ?> getAdditionalInfo() { return this.additionalInfo; } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return ownerId */ public String getOwnerId() { return this.ownerId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return shareType */ public String getShareType() { return this.shareType; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return templateARN */ public String getTemplateARN() { return this.templateARN; } /** * @return templateId */ public String getTemplateId() { return this.templateId; } /** * @return templateName */ public String getTemplateName() { return this.templateName; } /** * @return templateUrl */ public String getTemplateUrl() { return this.templateUrl; } /** * @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 createTime; private String description; private String ownerId; private String resourceGroupId; private String shareType; private java.util.List<Tags> tags; private String templateARN; private String templateId; private String templateName; private String templateUrl; private String templateVersion; private String updateTime; private Builder() { } private Builder(Templates model) { this.additionalInfo = model.additionalInfo; this.createTime = model.createTime; this.description = model.description; this.ownerId = model.ownerId; this.resourceGroupId = model.resourceGroupId; this.shareType = model.shareType; this.tags = model.tags; this.templateARN = model.templateARN; this.templateId = model.templateId; this.templateName = model.templateName; this.templateUrl = model.templateUrl; this.templateVersion = model.templateVersion; this.updateTime = model.updateTime; } /** * <p>Supplementary information for public templates.</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>Creation time.</p> * * <strong>example:</strong> * <p>2019-10-15T08:17:14.000000</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>Template description.</p> * * <strong>example:</strong> * <p>test-description</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>ID of the Alibaba Cloud account to which the template belongs.</p> * * <strong>example:</strong> * <p>151266687691****</p> */ public Builder ownerId(String ownerId) { this.ownerId = ownerId; return this; } /** * <p>Resource group ID.</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.</p> * <p>Values:</p> * <ul> * <li>Private: The template is owned by the user themselves.</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>Tags of the template.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The ARN of the template.</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>Template ID.</p> * * <strong>example:</strong> * <p>4d4f5aa2-3260-4e47-863b-763fbb12****</p> */ public Builder templateId(String templateId) { this.templateId = templateId; return this; } /** * <p>Template name.</p> * * <strong>example:</strong> * <p>demo</p> */ public Builder templateName(String templateName) { this.templateName = templateName; return this; } /** * <p>Link to the template</p> * * <strong>example:</strong> * <p><a href="https://ros-public-templates.oss-cn-hangzhou.aliyuncs.com/demo.yml">https://ros-public-templates.oss-cn-hangzhou.aliyuncs.com/demo.yml</a></p> */ public Builder templateUrl(String templateUrl) { this.templateUrl = templateUrl; return this; } /** * <p>Latest template version name.</p> * * <strong>example:</strong> * <p>v1</p> */ public Builder templateVersion(String templateVersion) { this.templateVersion = templateVersion; return this; } /** * <p>The last update time of the template.</p> * * <strong>example:</strong> * <p>2019-10-15T08:17:14.000000</p> */ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public Templates build() { return new Templates(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/MoveResourceGroupRequest.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 MoveResourceGroupRequest} extends {@link RequestModel} * * <p>MoveResourceGroupRequest</p> */ public class MoveResourceGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NewResourceGroupId") @com.aliyun.core.annotation.Validation(required = true) private String newResourceGroupId; @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("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private String resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; private MoveResourceGroupRequest(Builder builder) { super(builder); this.newResourceGroupId = builder.newResourceGroupId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static MoveResourceGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return newResourceGroupId */ public String getNewResourceGroupId() { return this.newResourceGroupId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder<MoveResourceGroupRequest, Builder> { private String newResourceGroupId; private String regionId; private String resourceId; private String resourceType; private Builder() { super(); } private Builder(MoveResourceGroupRequest request) { super(request); this.newResourceGroupId = request.newResourceGroupId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceType = request.resourceType; } /** * <p>The ID of the resource group to which you want to move the resource. For more information about resource groups, see the &quot;Resource Group&quot; section of the <a href="https://help.aliyun.com/document_detail/94475.html">What is Resource Management?</a> topic.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>rg-acfm3peow3k****</p> */ public Builder newResourceGroupId(String newResourceGroupId) { this.putQueryParameter("NewResourceGroupId", newResourceGroupId); this.newResourceGroupId = newResourceGroupId; return this; } /** * <p>The region ID of the resource.<br>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.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>4e8611cb-251e-42b7-b9cb-3496362c****</p> */ public Builder resourceId(String resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * <p>The type of the resource. Valid values:</p> * <ul> * <li>stack: stack</li> * <li>stackgroup: stack group</li> * <li>template: template</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>stack</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public MoveResourceGroupRequest build() { return new MoveResourceGroupRequest(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/MoveResourceGroupResponse.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 MoveResourceGroupResponse} extends {@link TeaModel} * * <p>MoveResourceGroupResponse</p> */ public class MoveResourceGroupResponse 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 MoveResourceGroupResponseBody body; private MoveResourceGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static MoveResourceGroupResponse 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 MoveResourceGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<MoveResourceGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(MoveResourceGroupResponseBody body); @Override MoveResourceGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<MoveResourceGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private MoveResourceGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(MoveResourceGroupResponse 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(MoveResourceGroupResponseBody body) { this.body = body; return this; } @Override public MoveResourceGroupResponse build() { return new MoveResourceGroupResponse(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/MoveResourceGroupResponseBody.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 MoveResourceGroupResponseBody} extends {@link TeaModel} * * <p>MoveResourceGroupResponseBody</p> */ public class MoveResourceGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private MoveResourceGroupResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static MoveResourceGroupResponseBody 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(MoveResourceGroupResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>F84A05B3-7275-4C8B-8AEE-9088C639C271</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public MoveResourceGroupResponseBody build() { return new MoveResourceGroupResponseBody(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/PreviewStackRequest.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 PreviewStackRequest} extends {@link RequestModel} * * <p>PreviewStackRequest</p> */ public class PreviewStackRequest 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("DisableRollback") private Boolean disableRollback; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnablePreConfig") private Boolean enablePreConfig; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Parallelism") private Long parallelism; @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.Query @com.aliyun.core.annotation.NameInMap("StackName") private String stackName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackPolicyBody") private String stackPolicyBody; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackPolicyURL") private String stackPolicyURL; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TaintResources") private java.util.List<String> taintResources; @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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TimeoutInMinutes") private Long timeoutInMinutes; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UsePreviousParameters") private Boolean usePreviousParameters; private PreviewStackRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.disableRollback = builder.disableRollback; this.enablePreConfig = builder.enablePreConfig; this.parallelism = builder.parallelism; this.parameters = builder.parameters; this.regionId = builder.regionId; this.stackId = builder.stackId; this.stackName = builder.stackName; this.stackPolicyBody = builder.stackPolicyBody; this.stackPolicyURL = builder.stackPolicyURL; this.taintResources = builder.taintResources; this.templateBody = builder.templateBody; this.templateId = builder.templateId; this.templateScratchId = builder.templateScratchId; this.templateScratchRegionId = builder.templateScratchRegionId; this.templateURL = builder.templateURL; this.templateVersion = builder.templateVersion; this.timeoutInMinutes = builder.timeoutInMinutes; this.usePreviousParameters = builder.usePreviousParameters; } public static Builder builder() { return new Builder(); } public static PreviewStackRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return disableRollback */ public Boolean getDisableRollback() { return this.disableRollback; } /** * @return enablePreConfig */ public Boolean getEnablePreConfig() { return this.enablePreConfig; } /** * @return parallelism */ public Long getParallelism() { return this.parallelism; } /** * @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 stackName */ public String getStackName() { return this.stackName; } /** * @return stackPolicyBody */ public String getStackPolicyBody() { return this.stackPolicyBody; } /** * @return stackPolicyURL */ public String getStackPolicyURL() { return this.stackPolicyURL; } /** * @return taintResources */ public java.util.List<String> getTaintResources() { return this.taintResources; } /** * @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; } /** * @return timeoutInMinutes */ public Long getTimeoutInMinutes() { return this.timeoutInMinutes; } /** * @return usePreviousParameters */ public Boolean getUsePreviousParameters() { return this.usePreviousParameters; } public static final class Builder extends Request.Builder<PreviewStackRequest, Builder> { private String clientToken; private Boolean disableRollback; private Boolean enablePreConfig; private Long parallelism; private java.util.List<Parameters> parameters; private String regionId; private String stackId; private String stackName; private String stackPolicyBody; private String stackPolicyURL; private java.util.List<String> taintResources; private String templateBody; private String templateId; private String templateScratchId; private String templateScratchRegionId; private String templateURL; private String templateVersion; private Long timeoutInMinutes; private Boolean usePreviousParameters; private Builder() { super(); } private Builder(PreviewStackRequest request) { super(request); this.clientToken = request.clientToken; this.disableRollback = request.disableRollback; this.enablePreConfig = request.enablePreConfig; this.parallelism = request.parallelism; this.parameters = request.parameters; this.regionId = request.regionId; this.stackId = request.stackId; this.stackName = request.stackName; this.stackPolicyBody = request.stackPolicyBody; this.stackPolicyURL = request.stackPolicyURL; this.taintResources = request.taintResources; this.templateBody = request.templateBody; this.templateId = request.templateId; this.templateScratchId = request.templateScratchId; this.templateScratchRegionId = request.templateScratchRegionId; this.templateURL = request.templateURL; this.templateVersion = request.templateVersion; this.timeoutInMinutes = request.timeoutInMinutes; this.usePreviousParameters = request.usePreviousParameters; } /** * <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, underscores (_), and hyphens (-).<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>Specifies whether to disable rollback for the resources 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.putQueryParameter("DisableRollback", disableRollback); this.disableRollback = disableRollback; return this; } /** * <p>Specifies whether to query the parameters that you want to use in compliance precheck.</p> * <p>Valid values:</p> * <ul> * <li>true</li> * <li>false (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder enablePreConfig(Boolean enablePreConfig) { this.putQueryParameter("EnablePreConfig", enablePreConfig); this.enablePreConfig = enablePreConfig; return this; } /** * <p>The maximum number of concurrent operations that can be performed on resources. This parameter takes effect only for Terraform stacks.</p> * <p>By default, this parameter is empty. You can set this parameter to an integer that is greater than or equal to 0.</p> * <blockquote> * <p>If you set this parameter to an integer greater than 0, the integer is used. If you set this parameter to 0 or leave this parameter empty, the default value of Terraform is used. In most cases, the default value of Terraform is 10.</p> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder parallelism(Long parallelism) { this.putQueryParameter("Parallelism", parallelism); this.parallelism = parallelism; return this; } /** * <p>The parameters of the stack.</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. 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 stack ID. You can use this parameter to preview a stack that you want to update.</p> * <blockquote> * <ul> * <li>You must and can specify only one of StackName and StackId.</li> * <li>In the scenario in which you preview a stack that you want to create or update, you cannot preview the resources in its nested stacks.</li> * </ul> * </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 stack name. You can use this parameter to preview the stack that you want to create. 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 and can specify only one of StackName and StackId.</p> * </blockquote> * * <strong>example:</strong> * <p>MyStack</p> */ public Builder stackName(String stackName) { this.putQueryParameter("StackName", stackName); this.stackName = stackName; 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> * <blockquote> * <p>You can specify only one of StackPolicyBody and StackPolicyURL.</p> * </blockquote> * * <strong>example:</strong> * <p>{&quot;Statement&quot;: [{&quot;Action&quot;: &quot;Update:<em>&quot;, &quot;Resource&quot;: &quot;</em>&quot;, &quot;Effect&quot;: &quot;Allow&quot;, &quot;Principal&quot;: &quot;*&quot;}]}</p> */ public Builder stackPolicyBody(String stackPolicyBody) { this.putQueryParameter("StackPolicyBody", stackPolicyBody); this.stackPolicyBody = stackPolicyBody; return this; } /** * <p>The URL of the file that contains the stack policy. The URL must point to a policy 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 policy file can be up to 16,384 bytes in length. 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 StackPolicyBody and StackPolicyURL.</p> * </blockquote> * <p>The URL can be up to 1,350 bytes in length.</p> * * <strong>example:</strong> * <p>oss://ros-stack-policy/demo</p> */ public Builder stackPolicyURL(String stackPolicyURL) { this.putQueryParameter("StackPolicyURL", stackPolicyURL); this.stackPolicyURL = stackPolicyURL; return this; } /** * TaintResources. */ public Builder taintResources(java.util.List<String> taintResources) { this.putQueryParameter("TaintResources", taintResources); this.taintResources = taintResources; 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> * <blockquote> * <p>You must and can specify only one of the following parameters: TemplateBody, TemplateURL, TemplateId, and TemplateScratchId.</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 scenario ID.</p> * <p>For more information about how to query the scenario ID, see <a href="https://help.aliyun.com/document_detail/363050.html">ListTemplateScratches</a>.</p> * <blockquote> * <p>You must and can specify only one of the following parameters: TemplateBody, TemplateURL, TemplateId, and TemplateScratchId.</p> * </blockquote> * * <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 RegionId.</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 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 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. If you do not specify the region ID of the OSS bucket, the value of RegionId is used.</p> * <blockquote> * <p>You must and can specify only one of the following parameters: TemplateBody, TemplateURL, TemplateId, and TemplateScratchId.</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. 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; } /** * <p>The timeout period for creating the stack.</p> * <p>Unit: minutes.</p> * <p>Default value: 60.</p> * * <strong>example:</strong> * <p>60</p> */ public Builder timeoutInMinutes(Long timeoutInMinutes) { this.putQueryParameter("TimeoutInMinutes", timeoutInMinutes); this.timeoutInMinutes = timeoutInMinutes; return this; } /** * UsePreviousParameters. */ public Builder usePreviousParameters(Boolean usePreviousParameters) { this.putQueryParameter("UsePreviousParameters", usePreviousParameters); this.usePreviousParameters = usePreviousParameters; return this; } @Override public PreviewStackRequest build() { return new PreviewStackRequest(this); } } /** * * {@link PreviewStackRequest} extends {@link TeaModel} * * <p>PreviewStackRequest</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 N. 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. Maximum value of N: 200.</p> * <blockquote> * <p>If you specify Parameters, you must specify Parameters.N.ParameterKey.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ALIYUN::AccountId</p> */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * <p>The value of parameter N. Maximum value of N: 200.</p> * <blockquote> * <p>If you specify Parameters, you must specify Parameters.N.ParameterValue.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>151266687691****</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/PreviewStackResponse.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 PreviewStackResponse} extends {@link TeaModel} * * <p>PreviewStackResponse</p> */ public class PreviewStackResponse 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 PreviewStackResponseBody body; private PreviewStackResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static PreviewStackResponse 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 PreviewStackResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<PreviewStackResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(PreviewStackResponseBody body); @Override PreviewStackResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<PreviewStackResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private PreviewStackResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(PreviewStackResponse 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(PreviewStackResponseBody body) { this.body = body; return this; } @Override public PreviewStackResponse build() { return new PreviewStackResponse(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/PreviewStackResponseBody.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 PreviewStackResponseBody} extends {@link TeaModel} * * <p>PreviewStackResponseBody</p> */ public class PreviewStackResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Stack") private Stack stack; private PreviewStackResponseBody(Builder builder) { this.requestId = builder.requestId; this.stack = builder.stack; } public static Builder builder() { return new Builder(); } public static PreviewStackResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return stack */ public Stack getStack() { return this.stack; } public static final class Builder { private String requestId; private Stack stack; private Builder() { } private Builder(PreviewStackResponseBody model) { this.requestId = model.requestId; this.stack = model.stack; } /** * <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 information about the stack that is previewed.</p> */ public Builder stack(Stack stack) { this.stack = stack; return this; } public PreviewStackResponseBody build() { return new PreviewStackResponseBody(this); } } /** * * {@link PreviewStackResponseBody} extends {@link TeaModel} * * <p>PreviewStackResponseBody</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 PreviewStackResponseBody} extends {@link TeaModel} * * <p>PreviewStackResponseBody</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 if the stack is a Terraform stack.</p> * <blockquote> * <p>This parameter contains the logs of previewing the stack.</p> * </blockquote> */ public Builder terraformLogs(java.util.List<TerraformLogs> terraformLogs) { this.terraformLogs = terraformLogs; return this; } public Log build() { return new Log(this); } } } /** * * {@link PreviewStackResponseBody} extends {@link TeaModel} * * <p>PreviewStackResponseBody</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>ALIYUN::AccountId</p> */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * <p>The value of the parameter.</p> * * <strong>example:</strong> * <p>151266687691****</p> */ public Builder parameterValue(String parameterValue) { this.parameterValue = parameterValue; return this; } public Parameters build() { return new Parameters(this); } } } /** * * {@link PreviewStackResponseBody} extends {@link TeaModel} * * <p>PreviewStackResponseBody</p> */ public static class Resources extends TeaModel { @com.aliyun.core.annotation.NameInMap("AcsResourceType") private String acsResourceType; @com.aliyun.core.annotation.NameInMap("Action") private String action; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("LogicalResourceId") private String logicalResourceId; @com.aliyun.core.annotation.NameInMap("PhysicalResourceId") private String physicalResourceId; @com.aliyun.core.annotation.NameInMap("Properties") private java.util.Map<String, ?> properties; @com.aliyun.core.annotation.NameInMap("Replacement") private String replacement; @com.aliyun.core.annotation.NameInMap("RequiredBy") private java.util.List<String> requiredBy; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("Stack") private java.util.Map<String, ?> stack; private Resources(Builder builder) { this.acsResourceType = builder.acsResourceType; this.action = builder.action; this.description = builder.description; this.logicalResourceId = builder.logicalResourceId; this.physicalResourceId = builder.physicalResourceId; this.properties = builder.properties; this.replacement = builder.replacement; this.requiredBy = builder.requiredBy; this.resourceType = builder.resourceType; this.stack = builder.stack; } public static Builder builder() { return new Builder(); } public static Resources create() { return builder().build(); } /** * @return acsResourceType */ public String getAcsResourceType() { return this.acsResourceType; } /** * @return action */ public String getAction() { return this.action; } /** * @return description */ public String getDescription() { return this.description; } /** * @return logicalResourceId */ public String getLogicalResourceId() { return this.logicalResourceId; } /** * @return physicalResourceId */ public String getPhysicalResourceId() { return this.physicalResourceId; } /** * @return properties */ public java.util.Map<String, ?> getProperties() { return this.properties; } /** * @return replacement */ public String getReplacement() { return this.replacement; } /** * @return requiredBy */ public java.util.List<String> getRequiredBy() { return this.requiredBy; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return stack */ public java.util.Map<String, ?> getStack() { return this.stack; } public static final class Builder { private String acsResourceType; private String action; private String description; private String logicalResourceId; private String physicalResourceId; private java.util.Map<String, ?> properties; private String replacement; private java.util.List<String> requiredBy; private String resourceType; private java.util.Map<String, ?> stack; private Builder() { } private Builder(Resources model) { this.acsResourceType = model.acsResourceType; this.action = model.action; this.description = model.description; this.logicalResourceId = model.logicalResourceId; this.physicalResourceId = model.physicalResourceId; this.properties = model.properties; this.replacement = model.replacement; this.requiredBy = model.requiredBy; this.resourceType = model.resourceType; this.stack = model.stack; } /** * <p>The resource type of an Alibaba Cloud service.</p> * * <strong>example:</strong> * <p>ACS::ECS::Instance</p> */ public Builder acsResourceType(String acsResourceType) { this.acsResourceType = acsResourceType; return this; } /** * <p>The action that is performed on the resource. Valid values:</p> * <ul> * <li>Add</li> * <li>Modify</li> * <li>Remove</li> * <li>None</li> * </ul> * * <strong>example:</strong> * <p>Add</p> */ public Builder action(String action) { this.action = action; return this; } /** * <p>The description of the resource.</p> * * <strong>example:</strong> * <p>ECS instance.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The logical ID of the resource.</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> * <p>This parameter is returned only if Action is set to Modify or Remove.</p> * * <strong>example:</strong> * <p>i-a1b2c3***</p> */ public Builder physicalResourceId(String physicalResourceId) { this.physicalResourceId = physicalResourceId; return this; } /** * <p>The resource properties.</p> * * <strong>example:</strong> * <p>{ &quot;DiskMappings&quot;: [ { &quot;Category&quot;: &quot;cloud_ssd&quot;, &quot;Size&quot;: &quot;20&quot; } ], &quot;SystemDisk_Category&quot;: &quot;cloud_ssd&quot;, &quot;InstanceChargeType&quot;: &quot;PostPaid&quot;, &quot;AutoRenew&quot;: &quot;False&quot;, &quot;WillReplace&quot;: true, &quot;ImageId&quot;: &quot;centos_7&quot;, &quot;InstanceType&quot;: &quot;ecs.g6.large&quot;, &quot;AllocatePublicIP&quot;: true, &quot;AutoRenewPeriod&quot;: 1, &quot;IoOptimized&quot;: &quot;optimized&quot;, &quot;ZoneId&quot;: &quot;cn-beijing-g&quot;, &quot;VSwitchId&quot;: &quot;&quot;, &quot;SecurityGroupId&quot;: &quot;&quot;, &quot;Period&quot;: 1, &quot;InternetChargeType&quot;: &quot;PayByTraffic&quot;, &quot;SystemDiskCategory&quot;: &quot;cloud_efficiency&quot;, &quot;InternetMaxBandwidthOut&quot;: 1, &quot;VpcId&quot;: &quot;&quot;, &quot;InternetMaxBandwidthIn&quot;: 200, &quot;PeriodUnit&quot;: &quot;Month&quot; }</p> */ public Builder properties(java.util.Map<String, ?> properties) { this.properties = properties; return this; } /** * <p>Indicates whether a replacement update is performed on the template. Valid values:</p> * <ul> * <li>True: A replacement update is performed on the template.</li> * <li>False: A change is made on the template.</li> * <li>Conditional: A replacement update may be performed on the template. You can check whether a replacement update is performed when the template is in use.</li> * </ul> * <blockquote> * <p>This parameter is returned only if Action is set to Modify.</p> * </blockquote> * * <strong>example:</strong> * <p>False</p> */ public Builder replacement(String replacement) { this.replacement = replacement; return this; } /** * <p>The resources on which the stack depends.</p> */ public Builder requiredBy(java.util.List<String> requiredBy) { this.requiredBy = requiredBy; 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 information about the nested stack. The data structure of the value is the same as the data structure of the entire response.</p> * * <strong>example:</strong> * <p>{}</p> */ public Builder stack(java.util.Map<String, ?> stack) { this.stack = stack; return this; } public Resources build() { return new Resources(this); } } } /** * * {@link PreviewStackResponseBody} extends {@link TeaModel} * * <p>PreviewStackResponseBody</p> */ public static class Stack extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DisableRollback") private Boolean disableRollback; @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("Resources") private java.util.List<Resources> resources; @com.aliyun.core.annotation.NameInMap("StackName") private String stackName; @com.aliyun.core.annotation.NameInMap("StackPolicyBody") private java.util.Map<String, ?> stackPolicyBody; @com.aliyun.core.annotation.NameInMap("TemplateDescription") private String templateDescription; @com.aliyun.core.annotation.NameInMap("TimeoutInMinutes") private Integer timeoutInMinutes; private Stack(Builder builder) { this.description = builder.description; this.disableRollback = builder.disableRollback; this.log = builder.log; this.parameters = builder.parameters; this.regionId = builder.regionId; this.resources = builder.resources; this.stackName = builder.stackName; this.stackPolicyBody = builder.stackPolicyBody; this.templateDescription = builder.templateDescription; this.timeoutInMinutes = builder.timeoutInMinutes; } public static Builder builder() { return new Builder(); } public static Stack create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return disableRollback */ public Boolean getDisableRollback() { return this.disableRollback; } /** * @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 resources */ public java.util.List<Resources> getResources() { return this.resources; } /** * @return stackName */ public String getStackName() { return this.stackName; } /** * @return stackPolicyBody */ public java.util.Map<String, ?> getStackPolicyBody() { return this.stackPolicyBody; } /** * @return templateDescription */ public String getTemplateDescription() { return this.templateDescription; } /** * @return timeoutInMinutes */ public Integer getTimeoutInMinutes() { return this.timeoutInMinutes; } public static final class Builder { private String description; private Boolean disableRollback; private Log log; private java.util.List<Parameters> parameters; private String regionId; private java.util.List<Resources> resources; private String stackName; private java.util.Map<String, ?> stackPolicyBody; private String templateDescription; private Integer timeoutInMinutes; private Builder() { } private Builder(Stack model) { this.description = model.description; this.disableRollback = model.disableRollback; this.log = model.log; this.parameters = model.parameters; this.regionId = model.regionId; this.resources = model.resources; this.stackName = model.stackName; this.stackPolicyBody = model.stackPolicyBody; this.templateDescription = model.templateDescription; this.timeoutInMinutes = model.timeoutInMinutes; } /** * <p>The description of the stack.</p> * * <strong>example:</strong> * <p>One ECS instance.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>Indicates whether rollback is disabled for the resources when the stack fails to be created.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder disableRollback(Boolean disableRollback) { this.disableRollback = disableRollback; return this; } /** * <p>The log that is generated when the stack is run.</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 where the stack resides.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The resources in the stack.</p> */ public Builder resources(java.util.List<Resources> resources) { this.resources = resources; return this; } /** * <p>The stack name.</p> * * <strong>example:</strong> * <p>MyStack</p> */ public Builder stackName(String stackName) { this.stackName = stackName; return this; } /** * <p>The structure that contains the stack policy body.</p> * * <strong>example:</strong> * <p>{ &quot;Statement&quot;: [ { &quot;Action&quot;: &quot;Update:<em>&quot;, &quot;Resource&quot;: &quot;</em>&quot;, &quot;Effect&quot;: &quot;Allow&quot;, &quot;Principal&quot;: &quot;<em>&quot; }, { &quot;Action&quot;: &quot;Update:</em>&quot;, &quot;Resource&quot;: &quot;LogicalResourceId/apple1&quot;, &quot;Effect&quot;: &quot;Deny&quot;, &quot;Principal&quot;: &quot;*&quot; } ] }</p> */ public Builder stackPolicyBody(java.util.Map<String, ?> stackPolicyBody) { this.stackPolicyBody = stackPolicyBody; return this; } /** * <p>The description of the template.</p> * * <strong>example:</strong> * <p>One ECS instance.</p> */ public Builder templateDescription(String templateDescription) { this.templateDescription = templateDescription; return this; } /** * <p>The timeout period for creating the stack.</p> * <p>Unit: minutes.</p> * * <strong>example:</strong> * <p>60</p> */ public Builder timeoutInMinutes(Integer timeoutInMinutes) { this.timeoutInMinutes = timeoutInMinutes; return this; } public Stack build() { return new Stack(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/RegisterResourceTypeRequest.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 RegisterResourceTypeRequest} extends {@link RequestModel} * * <p>RegisterResourceTypeRequest</p> */ public class RegisterResourceTypeRequest 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("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EntityType") @com.aliyun.core.annotation.Validation(required = true) private String entityType; @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.Body @com.aliyun.core.annotation.NameInMap("TemplateBody") private String templateBody; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateURL") private String templateURL; private RegisterResourceTypeRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.description = builder.description; this.entityType = builder.entityType; this.resourceType = builder.resourceType; this.templateBody = builder.templateBody; this.templateURL = builder.templateURL; } public static Builder builder() { return new Builder(); } public static RegisterResourceTypeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return description */ public String getDescription() { return this.description; } /** * @return entityType */ public String getEntityType() { return this.entityType; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return templateBody */ public String getTemplateBody() { return this.templateBody; } /** * @return templateURL */ public String getTemplateURL() { return this.templateURL; } public static final class Builder extends Request.Builder<RegisterResourceTypeRequest, Builder> { private String clientToken; private String description; private String entityType; private String resourceType; private String templateBody; private String templateURL; private Builder() { super(); } private Builder(RegisterResourceTypeRequest request) { super(request); this.clientToken = request.clientToken; this.description = request.description; this.entityType = request.entityType; this.resourceType = request.resourceType; this.templateBody = request.templateBody; this.templateURL = request.templateURL; } /** * <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 description of the resource type. The description can be up to 512 characters in length.</p> * * <strong>example:</strong> * <p>It is a demo.</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The entity type. Set the value to Module.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>Module</p> */ public Builder entityType(String entityType) { this.putQueryParameter("EntityType", entityType); this.entityType = entityType; return this; } /** * <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; } /** * <p>The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. The template body is used as the module content. 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> * <ul> * <li>This parameter takes effect only when EntityType is set to Module.</li> * <li>You can specify only one of the TemplateBody and TemplateURL parameters.</li> * </ul> * </blockquote> * * <strong>example:</strong> * <p>{&quot;ROSTemplateFormatVersion&quot;:&quot;2015-09-01&quot;}</p> */ public Builder templateBody(String templateBody) { this.putBodyParameter("TemplateBody", templateBody); this.templateBody = templateBody; 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. The template body is used as the module content.</p> * <blockquote> * <ul> * <li>If you do not specify the region ID of the OSS bucket, the value of RegionId is used.</li> * <li>This parameter takes effect only when EntityType is set to Module.</li> * <li>You can specify only one of the TemplateBody and TemplateURL parameters.</li> * </ul> * </blockquote> * <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; } @Override public RegisterResourceTypeRequest build() { return new RegisterResourceTypeRequest(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/RegisterResourceTypeResponse.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 RegisterResourceTypeResponse} extends {@link TeaModel} * * <p>RegisterResourceTypeResponse</p> */ public class RegisterResourceTypeResponse 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 RegisterResourceTypeResponseBody body; private RegisterResourceTypeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RegisterResourceTypeResponse 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 RegisterResourceTypeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RegisterResourceTypeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RegisterResourceTypeResponseBody body); @Override RegisterResourceTypeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RegisterResourceTypeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RegisterResourceTypeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RegisterResourceTypeResponse 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(RegisterResourceTypeResponseBody body) { this.body = body; return this; } @Override public RegisterResourceTypeResponse build() { return new RegisterResourceTypeResponse(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/RegisterResourceTypeResponseBody.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 RegisterResourceTypeResponseBody} extends {@link TeaModel} * * <p>RegisterResourceTypeResponseBody</p> */ public class RegisterResourceTypeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RegistrationId") private String registrationId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private RegisterResourceTypeResponseBody(Builder builder) { this.registrationId = builder.registrationId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static RegisterResourceTypeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return registrationId */ public String getRegistrationId() { return this.registrationId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String registrationId; private String requestId; private Builder() { } private Builder(RegisterResourceTypeResponseBody model) { this.registrationId = model.registrationId; this.requestId = model.requestId; } /** * <p>The ID of the registration record. You can call the <a href="https://help.aliyun.com/document_detail/2330740.html">ListResourceTypeRegistrations</a> operation to query registration records.</p> * * <strong>example:</strong> * <p>4a6c9851-3b0f-4f5f-b4ca-a14bf691****</p> */ public Builder registrationId(String registrationId) { this.registrationId = registrationId; 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; } public RegisterResourceTypeResponseBody build() { return new RegisterResourceTypeResponseBody(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/SetDeletionProtectionRequest.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 SetDeletionProtectionRequest} extends {@link RequestModel} * * <p>SetDeletionProtectionRequest</p> */ public class SetDeletionProtectionRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DeletionProtection") @com.aliyun.core.annotation.Validation(required = true) private String deletionProtection; @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 SetDeletionProtectionRequest(Builder builder) { super(builder); this.deletionProtection = builder.deletionProtection; this.regionId = builder.regionId; this.stackId = builder.stackId; } public static Builder builder() { return new Builder(); } public static SetDeletionProtectionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return deletionProtection */ public String getDeletionProtection() { return this.deletionProtection; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return stackId */ public String getStackId() { return this.stackId; } public static final class Builder extends Request.Builder<SetDeletionProtectionRequest, Builder> { private String deletionProtection; private String regionId; private String stackId; private Builder() { super(); } private Builder(SetDeletionProtectionRequest request) { super(request); this.deletionProtection = request.deletionProtection; this.regionId = request.regionId; this.stackId = request.stackId; } /** * <p>Indicates whether stack deletion protection is enabled. Valid values:</p> * <ul> * <li>Enabled: enables the stack deletion protection.</li> * <li>Disabled (default): Resource stack deletion protection is Disabled. You can use the console or API(DeleteStack) to release the stack resources.</li> * </ul> * <blockquote> * <p> The deletion of nested stacks is the same as the root stack.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>Enabled</p> */ public Builder deletionProtection(String deletionProtection) { this.putQueryParameter("DeletionProtection", deletionProtection); this.deletionProtection = deletionProtection; 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 ID of the stack.</p> * <p>The delete protection attribute of a nested stack is determined by the root stack and remains unchanged from the root 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 SetDeletionProtectionRequest build() { return new SetDeletionProtectionRequest(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/SetDeletionProtectionResponse.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 SetDeletionProtectionResponse} extends {@link TeaModel} * * <p>SetDeletionProtectionResponse</p> */ public class SetDeletionProtectionResponse 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 SetDeletionProtectionResponseBody body; private SetDeletionProtectionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetDeletionProtectionResponse 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 SetDeletionProtectionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetDeletionProtectionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetDeletionProtectionResponseBody body); @Override SetDeletionProtectionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetDeletionProtectionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetDeletionProtectionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetDeletionProtectionResponse 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(SetDeletionProtectionResponseBody body) { this.body = body; return this; } @Override public SetDeletionProtectionResponse build() { return new SetDeletionProtectionResponse(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/SetDeletionProtectionResponseBody.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 SetDeletionProtectionResponseBody} extends {@link TeaModel} * * <p>SetDeletionProtectionResponseBody</p> */ public class SetDeletionProtectionResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetDeletionProtectionResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetDeletionProtectionResponseBody 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(SetDeletionProtectionResponseBody 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 SetDeletionProtectionResponseBody build() { return new SetDeletionProtectionResponseBody(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/SetResourceTypeRequest.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 SetResourceTypeRequest} extends {@link RequestModel} * * <p>SetResourceTypeRequest</p> */ public class SetResourceTypeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DefaultVersionId") private String defaultVersionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @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 SetResourceTypeRequest(Builder builder) { super(builder); this.defaultVersionId = builder.defaultVersionId; this.description = builder.description; this.resourceType = builder.resourceType; this.versionId = builder.versionId; } public static Builder builder() { return new Builder(); } public static SetResourceTypeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return defaultVersionId */ public String getDefaultVersionId() { return this.defaultVersionId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return versionId */ public String getVersionId() { return this.versionId; } public static final class Builder extends Request.Builder<SetResourceTypeRequest, Builder> { private String defaultVersionId; private String description; private String resourceType; private String versionId; private Builder() { super(); } private Builder(SetResourceTypeRequest request) { super(request); this.defaultVersionId = request.defaultVersionId; this.description = request.description; this.resourceType = request.resourceType; this.versionId = request.versionId; } /** * <p>The ID of the default version. You can use this parameter to specify the default version of the resource type.</p> * <blockquote> * <p>You can specify only one of the VersionId and DefaultVersionId parameters.</p> * </blockquote> * * <strong>example:</strong> * <p>v1</p> */ public Builder defaultVersionId(String defaultVersionId) { this.putQueryParameter("DefaultVersionId", defaultVersionId); this.defaultVersionId = defaultVersionId; return this; } /** * <p>The description of the resource type or resource type version. The description can be up to 512 characters in length.</p> * * <strong>example:</strong> * <p>It is a demo.</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <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; } /** * <p>The version ID. If you want to modify a version of the resource type, you must specify this parameter. If you do not specify this parameter, only the resource type is modified.</p> * <blockquote> * <p>You can specify only one of the VersionId and DefaultVersionId parameters.</p> * </blockquote> * * <strong>example:</strong> * <p>v1</p> */ public Builder versionId(String versionId) { this.putQueryParameter("VersionId", versionId); this.versionId = versionId; return this; } @Override public SetResourceTypeRequest build() { return new SetResourceTypeRequest(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/SetResourceTypeResponse.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 SetResourceTypeResponse} extends {@link TeaModel} * * <p>SetResourceTypeResponse</p> */ public class SetResourceTypeResponse 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 SetResourceTypeResponseBody body; private SetResourceTypeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetResourceTypeResponse 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 SetResourceTypeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetResourceTypeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetResourceTypeResponseBody body); @Override SetResourceTypeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetResourceTypeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetResourceTypeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetResourceTypeResponse 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(SetResourceTypeResponseBody body) { this.body = body; return this; } @Override public SetResourceTypeResponse build() { return new SetResourceTypeResponse(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/SetResourceTypeResponseBody.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 SetResourceTypeResponseBody} extends {@link TeaModel} * * <p>SetResourceTypeResponseBody</p> */ public class SetResourceTypeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetResourceTypeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetResourceTypeResponseBody 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(SetResourceTypeResponseBody model) { this.requestId = model.requestId; } /** * <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; } public SetResourceTypeResponseBody build() { return new SetResourceTypeResponseBody(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/SetStackPolicyRequest.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 SetStackPolicyRequest} extends {@link RequestModel} * * <p>SetStackPolicyRequest</p> */ public class SetStackPolicyRequest 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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackPolicyBody") private String stackPolicyBody; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackPolicyURL") private String stackPolicyURL; private SetStackPolicyRequest(Builder builder) { super(builder); this.regionId = builder.regionId; this.stackId = builder.stackId; this.stackPolicyBody = builder.stackPolicyBody; this.stackPolicyURL = builder.stackPolicyURL; } public static Builder builder() { return new Builder(); } public static SetStackPolicyRequest 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; } /** * @return stackPolicyBody */ public String getStackPolicyBody() { return this.stackPolicyBody; } /** * @return stackPolicyURL */ public String getStackPolicyURL() { return this.stackPolicyURL; } public static final class Builder extends Request.Builder<SetStackPolicyRequest, Builder> { private String regionId; private String stackId; private String stackPolicyBody; private String stackPolicyURL; private Builder() { super(); } private Builder(SetStackPolicyRequest request) { super(request); this.regionId = request.regionId; this.stackId = request.stackId; this.stackPolicyBody = request.stackPolicyBody; this.stackPolicyURL = request.stackPolicyURL; } /** * <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; } /** * <p>The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.</p> * <p>You can specify one of the StackPolicyBody and StackPolicyURL parameters, but you cannot specify both of them.</p> * * <strong>example:</strong> * <p>{&quot;Statement&quot;:[{&quot;Effect&quot;:&quot;Allow&quot;,&quot;Action&quot;:&quot;Update:<em>&quot;,&quot;Principal&quot;:&quot;</em>&quot;,&quot;Resource&quot;:&quot;*&quot;}]}</p> */ public Builder stackPolicyBody(String stackPolicyBody) { this.putQueryParameter("StackPolicyBody", stackPolicyBody); this.stackPolicyBody = stackPolicyBody; return this; } /** * <p>The URL for the file that contains the stack policy. The URL must point to a template located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. The template can be up to 16,384 bytes in length, and the URL can be up to 1,350 bytes in length.</p> * <blockquote> * <p> If the region of the OSS bucket is not specified, the RegionId value is used.</p> * </blockquote> * <p>You can specify one of the StackPolicyBody and StackPolicyURL parameters, but you cannot specify both of them.</p> * * <strong>example:</strong> * <p>oss://ros/stack-policy/demo</p> */ public Builder stackPolicyURL(String stackPolicyURL) { this.putQueryParameter("StackPolicyURL", stackPolicyURL); this.stackPolicyURL = stackPolicyURL; return this; } @Override public SetStackPolicyRequest build() { return new SetStackPolicyRequest(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/SetStackPolicyResponse.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 SetStackPolicyResponse} extends {@link TeaModel} * * <p>SetStackPolicyResponse</p> */ public class SetStackPolicyResponse 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 SetStackPolicyResponseBody body; private SetStackPolicyResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetStackPolicyResponse 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 SetStackPolicyResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetStackPolicyResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetStackPolicyResponseBody body); @Override SetStackPolicyResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetStackPolicyResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetStackPolicyResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetStackPolicyResponse 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(SetStackPolicyResponseBody body) { this.body = body; return this; } @Override public SetStackPolicyResponse build() { return new SetStackPolicyResponse(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/SetStackPolicyResponseBody.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 SetStackPolicyResponseBody} extends {@link TeaModel} * * <p>SetStackPolicyResponseBody</p> */ public class SetStackPolicyResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetStackPolicyResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetStackPolicyResponseBody 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(SetStackPolicyResponseBody 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 SetStackPolicyResponseBody build() { return new SetStackPolicyResponseBody(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/SetTemplatePermissionRequest.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 SetTemplatePermissionRequest} extends {@link RequestModel} * * <p>SetTemplatePermissionRequest</p> */ public class SetTemplatePermissionRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccountIds") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> accountIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ShareOption") @com.aliyun.core.annotation.Validation(required = true) private String shareOption; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateId") @com.aliyun.core.annotation.Validation(required = true) private String templateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateVersion") private String templateVersion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VersionOption") private String versionOption; private SetTemplatePermissionRequest(Builder builder) { super(builder); this.accountIds = builder.accountIds; this.shareOption = builder.shareOption; this.templateId = builder.templateId; this.templateVersion = builder.templateVersion; this.versionOption = builder.versionOption; } public static Builder builder() { return new Builder(); } public static SetTemplatePermissionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return accountIds */ public java.util.List<String> getAccountIds() { return this.accountIds; } /** * @return shareOption */ public String getShareOption() { return this.shareOption; } /** * @return templateId */ public String getTemplateId() { return this.templateId; } /** * @return templateVersion */ public String getTemplateVersion() { return this.templateVersion; } /** * @return versionOption */ public String getVersionOption() { return this.versionOption; } public static final class Builder extends Request.Builder<SetTemplatePermissionRequest, Builder> { private java.util.List<String> accountIds; private String shareOption; private String templateId; private String templateVersion; private String versionOption; private Builder() { super(); } private Builder(SetTemplatePermissionRequest request) { super(request); this.accountIds = request.accountIds; this.shareOption = request.shareOption; this.templateId = request.templateId; this.templateVersion = request.templateVersion; this.versionOption = request.versionOption; } /** * <p>The Alibaba Cloud accounts with or from which you want to share or unshare the template.<br>Valid values of N: 1, 2, 3, 4, and 5.</p> * <blockquote> * <ul> * <li>This parameter cannot be set to the ID of the Alibaba Cloud account that owns the template, or the RAM users of this Alibaba Cloud account.</li> * <li>When ShareOption is set to CancelSharing, you can unshare the template from all the specified Alibaba Cloud accounts by using an asterisk (*).</li> * </ul> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>123456789</p> */ public Builder accountIds(java.util.List<String> accountIds) { this.putQueryParameter("AccountIds", accountIds); this.accountIds = accountIds; return this; } /** * <p>The sharing option.</p> * <p>Valid values:</p> * <ul> * <li>ShareToAccounts: shares the template with other Alibaba Cloud accounts.</li> * <li>CancelSharing: unshares the template.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ShareToAccounts</p> */ public Builder shareOption(String shareOption) { this.putQueryParameter("ShareOption", shareOption); this.shareOption = shareOption; return this; } /** * <p>The ID of the template.</p> * <p>This parameter is required.</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 version of the shared template. This parameter takes effect only if you set ShareOption to ShareToAccounts and set VersionOption to Specified.</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; } /** * <p>The version option for the shared template. This parameter takes effect only if you set ShareOption to ShareToAccounts.</p> * <p>Valid values:</p> * <ul> * <li>AllVersions (default): shares all versions of the template.</li> * <li>Latest: shares only the latest version of template. When the version of the template is updated, ROS updates the shared version to the latest version.</li> * <li>Current: shares only the current version of the template. When the version of the template is updated, ROS does not update the shared version.</li> * <li>Specified: shares only the specified version of the template.</li> * </ul> * * <strong>example:</strong> * <p>Specified</p> */ public Builder versionOption(String versionOption) { this.putQueryParameter("VersionOption", versionOption); this.versionOption = versionOption; return this; } @Override public SetTemplatePermissionRequest build() { return new SetTemplatePermissionRequest(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/SetTemplatePermissionResponse.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 SetTemplatePermissionResponse} extends {@link TeaModel} * * <p>SetTemplatePermissionResponse</p> */ public class SetTemplatePermissionResponse 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 SetTemplatePermissionResponseBody body; private SetTemplatePermissionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetTemplatePermissionResponse 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 SetTemplatePermissionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetTemplatePermissionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetTemplatePermissionResponseBody body); @Override SetTemplatePermissionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetTemplatePermissionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetTemplatePermissionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetTemplatePermissionResponse 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(SetTemplatePermissionResponseBody body) { this.body = body; return this; } @Override public SetTemplatePermissionResponse build() { return new SetTemplatePermissionResponse(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/SetTemplatePermissionResponseBody.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 SetTemplatePermissionResponseBody} extends {@link TeaModel} * * <p>SetTemplatePermissionResponseBody</p> */ public class SetTemplatePermissionResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetTemplatePermissionResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetTemplatePermissionResponseBody 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(SetTemplatePermissionResponseBody 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 SetTemplatePermissionResponseBody build() { return new SetTemplatePermissionResponseBody(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/SignalResourceRequest.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 SignalResourceRequest} extends {@link RequestModel} * * <p>SignalResourceRequest</p> */ public class SignalResourceRequest 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("StackId") @com.aliyun.core.annotation.Validation(required = true) private String stackId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") @com.aliyun.core.annotation.Validation(required = true) private String status; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UniqueId") @com.aliyun.core.annotation.Validation(required = true) private String uniqueId; private SignalResourceRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.logicalResourceId = builder.logicalResourceId; this.regionId = builder.regionId; this.stackId = builder.stackId; this.status = builder.status; this.uniqueId = builder.uniqueId; } public static Builder builder() { return new Builder(); } public static SignalResourceRequest 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 stackId */ public String getStackId() { return this.stackId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return uniqueId */ public String getUniqueId() { return this.uniqueId; } public static final class Builder extends Request.Builder<SignalResourceRequest, Builder> { private String clientToken; private String logicalResourceId; private String regionId; private String stackId; private String status; private String uniqueId; private Builder() { super(); } private Builder(SignalResourceRequest request) { super(request); this.clientToken = request.clientToken; this.logicalResourceId = request.logicalResourceId; this.regionId = request.regionId; this.stackId = request.stackId; this.status = request.status; this.uniqueId = request.uniqueId; } /** * <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 ensure 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 logical ID of the resource as defined in the template.</p> * <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 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; } /** * <p>The status of the signal. Failure signals can cause stack creation or update to fail. If all signals are warnings, the stack cannot be created or updated. Valid values:</p> * <ul> * <li>SUCCESS</li> * <li>FAILURE</li> * <li>WARNING</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>SUCCESS</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } /** * <p>The unique ID of the signal. The ID must be 1 to 64 characters in length. If multiple signals are sent to a single resource, each signal must have a unique ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>27c7347b-352a-4377-accf-63d361c1****</p> */ public Builder uniqueId(String uniqueId) { this.putQueryParameter("UniqueId", uniqueId); this.uniqueId = uniqueId; return this; } @Override public SignalResourceRequest build() { return new SignalResourceRequest(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/SignalResourceResponse.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 SignalResourceResponse} extends {@link TeaModel} * * <p>SignalResourceResponse</p> */ public class SignalResourceResponse 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 SignalResourceResponseBody body; private SignalResourceResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SignalResourceResponse 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 SignalResourceResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SignalResourceResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SignalResourceResponseBody body); @Override SignalResourceResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SignalResourceResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SignalResourceResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SignalResourceResponse 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(SignalResourceResponseBody body) { this.body = body; return this; } @Override public SignalResourceResponse build() { return new SignalResourceResponse(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/SignalResourceResponseBody.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 SignalResourceResponseBody} extends {@link TeaModel} * * <p>SignalResourceResponseBody</p> */ public class SignalResourceResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SignalResourceResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SignalResourceResponseBody 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(SignalResourceResponseBody model) { this.requestId = model.requestId; } /** * <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; } public SignalResourceResponseBody build() { return new SignalResourceResponseBody(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/StopStackGroupOperationRequest.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 StopStackGroupOperationRequest} extends {@link RequestModel} * * <p>StopStackGroupOperationRequest</p> */ public class StopStackGroupOperationRequest 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 StopStackGroupOperationRequest(Builder builder) { super(builder); this.operationId = builder.operationId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static StopStackGroupOperationRequest 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<StopStackGroupOperationRequest, Builder> { private String operationId; private String regionId; private Builder() { super(); } private Builder(StopStackGroupOperationRequest request) { super(request); this.operationId = request.operationId; 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 obtain 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. 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 StopStackGroupOperationRequest build() { return new StopStackGroupOperationRequest(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/StopStackGroupOperationResponse.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 StopStackGroupOperationResponse} extends {@link TeaModel} * * <p>StopStackGroupOperationResponse</p> */ public class StopStackGroupOperationResponse 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 StopStackGroupOperationResponseBody body; private StopStackGroupOperationResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static StopStackGroupOperationResponse 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 StopStackGroupOperationResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<StopStackGroupOperationResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(StopStackGroupOperationResponseBody body); @Override StopStackGroupOperationResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<StopStackGroupOperationResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private StopStackGroupOperationResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(StopStackGroupOperationResponse 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(StopStackGroupOperationResponseBody body) { this.body = body; return this; } @Override public StopStackGroupOperationResponse build() { return new StopStackGroupOperationResponse(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/StopStackGroupOperationResponseBody.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 StopStackGroupOperationResponseBody} extends {@link TeaModel} * * <p>StopStackGroupOperationResponseBody</p> */ public class StopStackGroupOperationResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private StopStackGroupOperationResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static StopStackGroupOperationResponseBody 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(StopStackGroupOperationResponseBody model) { this.requestId = model.requestId; } /** * <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; } public StopStackGroupOperationResponseBody build() { return new StopStackGroupOperationResponseBody(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/TagResourcesRequest.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 TagResourcesRequest} extends {@link RequestModel} * * <p>TagResourcesRequest</p> */ public class TagResourcesRequest 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("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> resourceId; @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("Tag") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<Tag> tag; private TagResourcesRequest(Builder builder) { super(builder); this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceType = builder.resourceType; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static TagResourcesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public java.util.List<String> getResourceId() { return this.resourceId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<TagResourcesRequest, Builder> { private String regionId; private java.util.List<String> resourceId; private String resourceType; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(TagResourcesRequest request) { super(request); this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceType = request.resourceType; this.tag = request.tag; } /** * <p>The region ID of the tag that you want to create. 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 IDs of the resources.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>7fee80e1-8c48-4c2f-8300-0f6dc40b****</p> */ public Builder resourceId(java.util.List<String> resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * <p>The type of the resource. Valid values:</p> * <ul> * <li>stack: stack</li> * <li>stackgroup: stack group</li> * <li>template: template</li> * <li>templatescratch: scenario</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>stack</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The tags of the resource. You can specify up to 20 tags.</p> * <p>This parameter is required.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public TagResourcesRequest build() { return new TagResourcesRequest(this); } } /** * * {@link TagResourcesRequest} extends {@link TeaModel} * * <p>TagResourcesRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") @com.aliyun.core.annotation.Validation(required = true) private String key; @com.aliyun.core.annotation.NameInMap("Value") @com.aliyun.core.annotation.Validation(required = true) private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag 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(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key of the resource. You can specify up to 20 tag keys.</p> * <p>The tag key can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag key cannot start with <code>aliyun</code> or <code>acs:</code>.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the resource. You can specify up to 20 tag values.</p> * <p>The tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(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/TagResourcesResponse.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 TagResourcesResponse} extends {@link TeaModel} * * <p>TagResourcesResponse</p> */ public class TagResourcesResponse 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 TagResourcesResponseBody body; private TagResourcesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static TagResourcesResponse 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 TagResourcesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<TagResourcesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(TagResourcesResponseBody body); @Override TagResourcesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<TagResourcesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private TagResourcesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(TagResourcesResponse 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(TagResourcesResponseBody body) { this.body = body; return this; } @Override public TagResourcesResponse build() { return new TagResourcesResponse(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/TagResourcesResponseBody.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 TagResourcesResponseBody} extends {@link TeaModel} * * <p>TagResourcesResponseBody</p> */ public class TagResourcesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private TagResourcesResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static TagResourcesResponseBody 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(TagResourcesResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>C46FF5A8-C5F0-4024-8262-B16B639225A0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public TagResourcesResponseBody build() { return new TagResourcesResponseBody(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/UntagResourcesRequest.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 UntagResourcesRequest} extends {@link RequestModel} * * <p>UntagResourcesRequest</p> */ public class UntagResourcesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("All") private Boolean all; @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("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> resourceId; @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("TagKey") private java.util.List<String> tagKey; private UntagResourcesRequest(Builder builder) { super(builder); this.all = builder.all; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceType = builder.resourceType; this.tagKey = builder.tagKey; } public static Builder builder() { return new Builder(); } public static UntagResourcesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return all */ public Boolean getAll() { return this.all; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public java.util.List<String> getResourceId() { return this.resourceId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return tagKey */ public java.util.List<String> getTagKey() { return this.tagKey; } public static final class Builder extends Request.Builder<UntagResourcesRequest, Builder> { private Boolean all; private String regionId; private java.util.List<String> resourceId; private String resourceType; private java.util.List<String> tagKey; private Builder() { super(); } private Builder(UntagResourcesRequest request) { super(request); this.all = request.all; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceType = request.resourceType; this.tagKey = request.tagKey; } /** * <p>Specifies whether to remove all tags from the resource. This parameter takes effect when TagKey is not specified in the request. Valid values:</p> * <ul> * <li>true</li> * <li>false (default)</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder all(Boolean all) { this.putQueryParameter("All", all); this.all = all; return this; } /** * <p>The region ID of the tag. 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 IDs of the resource.</p> * <blockquote> * <p>If you set ResourceType to stackgroup, you must set ResourceId to the name of the stack group.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>46ec7b78-9d5e-4b21-aefd-448c90aa****</p> */ public Builder resourceId(java.util.List<String> resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * <p>The type of the resource. Valid values:</p> * <ul> * <li>stack: stack</li> * <li>stackgroup: stack group</li> * <li>template: template</li> * <li>templatescratch: scenario</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>stack</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The tag keys of the resource. You can specify up to 20 tag keys.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder tagKey(java.util.List<String> tagKey) { this.putQueryParameter("TagKey", tagKey); this.tagKey = tagKey; return this; } @Override public UntagResourcesRequest build() { return new UntagResourcesRequest(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/UntagResourcesResponse.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 UntagResourcesResponse} extends {@link TeaModel} * * <p>UntagResourcesResponse</p> */ public class UntagResourcesResponse 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 UntagResourcesResponseBody body; private UntagResourcesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UntagResourcesResponse 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 UntagResourcesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UntagResourcesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UntagResourcesResponseBody body); @Override UntagResourcesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UntagResourcesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UntagResourcesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UntagResourcesResponse 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(UntagResourcesResponseBody body) { this.body = body; return this; } @Override public UntagResourcesResponse build() { return new UntagResourcesResponse(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/UntagResourcesResponseBody.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 UntagResourcesResponseBody} extends {@link TeaModel} * * <p>UntagResourcesResponseBody</p> */ public class UntagResourcesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private UntagResourcesResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static UntagResourcesResponseBody 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(UntagResourcesResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>C46FF5A8-C5F0-4024-8262-B16B639225A0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public UntagResourcesResponseBody build() { return new UntagResourcesResponseBody(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/UpdateStackGroupRequest.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 UpdateStackGroupRequest} extends {@link RequestModel} * * <p>UpdateStackGroupRequest</p> */ public class UpdateStackGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccountIds") private java.util.List<String> accountIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AdministrationRoleName") private String administrationRoleName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AutoDeployment") private AutoDeployment autoDeployment; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Capabilities") private java.util.List<String> capabilities; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DeploymentOptions") private java.util.List<String> deploymentOptions; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DeploymentTargets") private DeploymentTargets deploymentTargets; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ExecutionRoleName") private String executionRoleName; @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("Parameters") private java.util.List<Parameters> parameters; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PermissionModel") private String permissionModel; @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("RegionIds") private java.util.List<String> regionIds; @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.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 UpdateStackGroupRequest(Builder builder) { super(builder); this.accountIds = builder.accountIds; this.administrationRoleName = builder.administrationRoleName; this.autoDeployment = builder.autoDeployment; this.capabilities = builder.capabilities; this.clientToken = builder.clientToken; this.deploymentOptions = builder.deploymentOptions; this.deploymentTargets = builder.deploymentTargets; this.description = builder.description; this.executionRoleName = builder.executionRoleName; this.operationDescription = builder.operationDescription; this.operationPreferences = builder.operationPreferences; this.parameters = builder.parameters; this.permissionModel = builder.permissionModel; this.regionId = builder.regionId; this.regionIds = builder.regionIds; this.stackGroupName = builder.stackGroupName; 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 UpdateStackGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return accountIds */ public java.util.List<String> getAccountIds() { return this.accountIds; } /** * @return administrationRoleName */ public String getAdministrationRoleName() { return this.administrationRoleName; } /** * @return autoDeployment */ public AutoDeployment getAutoDeployment() { return this.autoDeployment; } /** * @return capabilities */ public java.util.List<String> getCapabilities() { return this.capabilities; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return deploymentOptions */ public java.util.List<String> getDeploymentOptions() { return this.deploymentOptions; } /** * @return deploymentTargets */ public DeploymentTargets getDeploymentTargets() { return this.deploymentTargets; } /** * @return description */ public String getDescription() { return this.description; } /** * @return executionRoleName */ public String getExecutionRoleName() { return this.executionRoleName; } /** * @return operationDescription */ public String getOperationDescription() { return this.operationDescription; } /** * @return operationPreferences */ public java.util.Map<String, ?> getOperationPreferences() { return this.operationPreferences; } /** * @return parameters */ public java.util.List<Parameters> getParameters() { return this.parameters; } /** * @return permissionModel */ public String getPermissionModel() { return this.permissionModel; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return regionIds */ public java.util.List<String> getRegionIds() { return this.regionIds; } /** * @return stackGroupName */ public String getStackGroupName() { return this.stackGroupName; } /** * @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<UpdateStackGroupRequest, Builder> { private java.util.List<String> accountIds; private String administrationRoleName; private AutoDeployment autoDeployment; private java.util.List<String> capabilities; private String clientToken; private java.util.List<String> deploymentOptions; private DeploymentTargets deploymentTargets; private String description; private String executionRoleName; private String operationDescription; private java.util.Map<String, ?> operationPreferences; private java.util.List<Parameters> parameters; private String permissionModel; private String regionId; private java.util.List<String> regionIds; private String stackGroupName; private String templateBody; private String templateId; private String templateURL; private String templateVersion; private Builder() { super(); } private Builder(UpdateStackGroupRequest request) { super(request); this.accountIds = request.accountIds; this.administrationRoleName = request.administrationRoleName; this.autoDeployment = request.autoDeployment; this.capabilities = request.capabilities; this.clientToken = request.clientToken; this.deploymentOptions = request.deploymentOptions; this.deploymentTargets = request.deploymentTargets; this.description = request.description; this.executionRoleName = request.executionRoleName; this.operationDescription = request.operationDescription; this.operationPreferences = request.operationPreferences; this.parameters = request.parameters; this.permissionModel = request.permissionModel; this.regionId = request.regionId; this.regionIds = request.regionIds; this.stackGroupName = request.stackGroupName; this.templateBody = request.templateBody; this.templateId = request.templateId; this.templateURL = request.templateURL; this.templateVersion = request.templateVersion; } /** * <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 Alibaba Cloud Object Storage Service (OSS) bucket. The template body must be 1 to 524,288 bytes in length. Examples: oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. 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 TemplateBody, TemplateURL, and TemplateId parameters.</p> * </blockquote> * * <strong>example:</strong> * <p>[&quot;12****&quot;]</p> */ public Builder accountIds(java.util.List<String> accountIds) { String accountIdsShrink = shrink(accountIds, "AccountIds", "json"); this.putQueryParameter("AccountIds", accountIdsShrink); this.accountIds = accountIds; return this; } /** * <p>The key of parameter N. If you do not specify the key and value of the parameter, ROS uses the default key and value in the template.</p> * <p>Maximum value of N: 200.</p> * <blockquote> * <p> The Parameters parameter is optional. If you set the Parameters parameter, you must set the Parameters.N.ParameterKey parameter.</p> * </blockquote> * * <strong>example:</strong> * <p>AliyunROSStackGroupAdministrationRole</p> */ public Builder administrationRoleName(String administrationRoleName) { this.putQueryParameter("AdministrationRoleName", administrationRoleName); this.administrationRoleName = administrationRoleName; return this; } /** * <p>The IDs of the folders in the resource directory. You can specify up to five folder IDs.</p> * <p>You can create stacks within all members in the specified folders. If you create stacks in the Root folder, the stacks are created within all members in the resource directory.</p> * <blockquote> * <p> To view the folder IDs, go to the <strong>Overview</strong> page in the <strong>Resource Management</strong> console. For more information, see <a href="https://help.aliyun.com/document_detail/111223.html">View the basic information of a folder</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>{&quot;Enabled&quot;: true, &quot;RetainStacksOnAccountRemoval&quot;: true}</p> */ public Builder autoDeployment(AutoDeployment autoDeployment) { String autoDeploymentShrink = shrink(autoDeployment, "AutoDeployment", "json"); this.putQueryParameter("AutoDeployment", autoDeploymentShrink); this.autoDeployment = autoDeployment; return this; } /** * <p>The option for the stack group. You can specify up to one option.</p> */ public Builder capabilities(java.util.List<String> capabilities) { this.putQueryParameter("Capabilities", capabilities); this.capabilities = capabilities; 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 TemplateBody, TemplateURL, and TemplateId parameters.</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; } /** * DeploymentOptions. */ public Builder deploymentOptions(java.util.List<String> deploymentOptions) { this.putQueryParameter("DeploymentOptions", deploymentOptions); this.deploymentOptions = deploymentOptions; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>{&quot;RdFolderIds&quot;: [&quot;fd-4PvlVLOL8v&quot;]}</p> */ public Builder deploymentTargets(DeploymentTargets deploymentTargets) { String deploymentTargetsShrink = shrink(deploymentTargets, "DeploymentTargets", "json"); this.putQueryParameter("DeploymentTargets", deploymentTargetsShrink); this.deploymentTargets = deploymentTargets; return this; } /** * <p>The structure that contains the template body. 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 TemplateBody, TemplateURL, and TemplateId parameters.</p> * </blockquote> * * <strong>example:</strong> * <p>My Stack Group</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The value of parameter N.</p> * <p>Maximum value of N: 200.</p> * <blockquote> * <p> The Parameters parameter is optional. If you set the Parameters parameter, you must set the Parameters.N.ParameterValue parameter.</p> * </blockquote> * * <strong>example:</strong> * <p>AliyunROSStackGroupExecutionRole</p> */ public Builder executionRoleName(String executionRoleName) { this.putQueryParameter("ExecutionRoleName", executionRoleName); this.executionRoleName = executionRoleName; return this; } /** * <p>The version of the template. If you do not specify a version, the latest version is used.</p> * <blockquote> * <p> This parameter takes effect only if the TemplateId parameter is set.</p> * </blockquote> * * <strong>example:</strong> * <p>Update stack instances in hangzhou</p> */ public Builder operationDescription(String operationDescription) { this.putQueryParameter("OperationDescription", operationDescription); this.operationDescription = operationDescription; return this; } /** * <p>The list of parameters.</p> * * <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>Specifies whether to enable automatic deployment.</p> * <p>Valid values:</p> * <ul> * <li>true: enables automatic deployment. If you add a member to the folder to which the stack group belongs after you enable automatic deployment, the stack group deploys its stack instances within the member. If you remove a member from the folder, the stack group deletes stack instances that are deployed within the member.</li> * <li>false: disables automatic deployment. After you disable automatic deployment, the stack instances remain unchanged even if members in the folder change.</li> * </ul> */ public Builder parameters(java.util.List<Parameters> parameters) { this.putQueryParameter("Parameters", parameters); this.parameters = parameters; return this; } /** * <p>The folder IDs in the resource directory. You can specify a maximum of five folder IDs.</p> * <p>You must set at least one of the RdFolderIds and AccountIds parameters. The parameters are subject to the following items:</p> * <ul> * <li>If you set only the RdFolderIds parameter, stacks are deployed within all the members in the specified folders. If you specify the Root folder, ROS deploys the stacks within all the members in the resource directory.</li> * <li>If you set only the AccountIds parameter, stacks are deployed within the specified members.</li> * <li>If you set both parameters, the accounts specified by AccountIds must be contained in the folders specified by RdFolderIds.</li> * </ul> * <blockquote> * <p> To view the folder IDs, go to the <strong>Overview</strong> page in the <strong>Resource Management</strong> console. For more information, see <a href="https://help.aliyun.com/document_detail/111223.html">View the basic information of a folder</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>SELF_MANAGED</p> */ public Builder permissionModel(String permissionModel) { this.putQueryParameter("PermissionModel", permissionModel); this.permissionModel = permissionModel; return this; } /** * <p>The region IDs of stack instances. You can specify a maximum of 20 region IDs.</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 description of the operation to update the stack group.</p> * * <strong>example:</strong> * <p>[&quot;cn-hangzhou&quot;, &quot;cn-beijing&quot;]</p> */ public Builder regionIds(java.util.List<String> regionIds) { String regionIdsShrink = shrink(regionIds, "RegionIds", "json"); this.putQueryParameter("RegionIds", regionIdsShrink); this.regionIds = regionIds; return this; } /** * <p>The region IDs of stack instances. You can specify a maximum of 20 region IDs.</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; } /** * TemplateBody. */ public Builder templateBody(String templateBody) { this.putBodyParameter("TemplateBody", templateBody); this.templateBody = templateBody; return this; } /** * <p>The permission model.</p> * <p>Valid values:</p> * <ul> * <li>SELF_MANAGED: the self-managed permission model. This is the default value. If you use the self-managed model for the stack group, you must create RAM roles for the administrator and execution accounts, and establish a trust relationship between the accounts to deploy stacks within the execution account.</li> * <li>SERVICE_MANAGED: the service-managed permission model. If you use the service-managed model for the stack group, ROS creates service-linked roles for the administrator and execution accounts, and the administrator account uses its role to deploy stacks within the execution account.</li> * </ul> * <blockquote> * <ul> * <li>If stack instances have been created in the stack group, you cannot switch the permission mode of the stack group.</li> * <li>If you want to use the service-managed permission model to deploy stacks, your account must be the management account or a delegated administrator account of your resource directory and the trusted access feature is enabled for the account. For more information, see <a href="https://help.aliyun.com/document_detail/308253.html">Step 1: (Optional) Create a delegated administrator account</a> and <a href="https://help.aliyun.com/document_detail/298229.html">Step 2: Enable trusted access</a>.</li> * </ul> * </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 name of the RAM role to be assumed by the administrator role AliyunROSStackGroupAdministrationRole. This parameter is required if you want to grant self-managed permissions to the stack group. If you do not specify a value for this parameter, the default value AliyunROSStackGroupExecutionRole is used. You can use this role in ROS to perform operations on the stacks that correspond to stack instances in the stack group.</p> * <p>The name must be 1 to 64 characters in length, and can contain letters, digits, and hyphens (-).</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 information about automatic deployment settings.</p> * <blockquote> * <p> This parameter is required only if the PermissionModel parameter is set to SERVICE_MANAGED.</p> * </blockquote> * * <strong>example:</strong> * <p>v1</p> */ public Builder templateVersion(String templateVersion) { this.putQueryParameter("TemplateVersion", templateVersion); this.templateVersion = templateVersion; return this; } @Override public UpdateStackGroupRequest build() { return new UpdateStackGroupRequest(this); } } /** * * {@link UpdateStackGroupRequest} extends {@link TeaModel} * * <p>UpdateStackGroupRequest</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>The IDs of the members in the resource directory. You can specify a maximum of 20 member IDs.</p> * <blockquote> * <p> To view the member IDs, go to the <strong>Overview</strong> page in the <strong>Resource Management</strong> console. For more information, see <a href="https://help.aliyun.com/document_detail/111624.html">View the detailed information of a member</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>true</p> */ public Builder enabled(Boolean enabled) { this.enabled = enabled; return this; } /** * <p>The IDs of the members in the resource directory. You can specify a maximum of 20 member IDs.</p> * <blockquote> * <p> To view the member IDs, go to the <strong>Overview</strong> page in the <strong>Resource Management</strong> console. For more information, see <a href="https://help.aliyun.com/document_detail/111624.html">View the detailed information of a member</a>.</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 UpdateStackGroupRequest} extends {@link TeaModel} * * <p>UpdateStackGroupRequest</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 list of one or more Alibaba Cloud accounts with which you want to share or unshare the template.</p> */ public Builder accountIds(java.util.List<String> accountIds) { this.accountIds = accountIds; return this; } /** * <p>The ID of the operation.</p> */ public Builder rdFolderIds(java.util.List<String> rdFolderIds) { this.rdFolderIds = rdFolderIds; return this; } public DeploymentTargets build() { return new DeploymentTargets(this); } } } /** * * {@link UpdateStackGroupRequest} extends {@link TeaModel} * * <p>UpdateStackGroupRequest</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>Specifies whether to retain stacks in a member when you remove the member from the folder.</p> * <p>Valid values:</p> * <ul> * <li>true: retains the stacks.</li> * <li>false: deletes the stacks.</li> * </ul> * <blockquote> * <p> This parameter is required if the Enabled parameter is set to true.</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 folders in which you want to use service-managed permissions to update stacks.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</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/UpdateStackGroupResponse.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 UpdateStackGroupResponse} extends {@link TeaModel} * * <p>UpdateStackGroupResponse</p> */ public class UpdateStackGroupResponse 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 UpdateStackGroupResponseBody body; private UpdateStackGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UpdateStackGroupResponse 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 UpdateStackGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UpdateStackGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UpdateStackGroupResponseBody body); @Override UpdateStackGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UpdateStackGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UpdateStackGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UpdateStackGroupResponse 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(UpdateStackGroupResponseBody body) { this.body = body; return this; } @Override public UpdateStackGroupResponse build() { return new UpdateStackGroupResponse(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/UpdateStackGroupResponseBody.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 UpdateStackGroupResponseBody} extends {@link TeaModel} * * <p>UpdateStackGroupResponseBody</p> */ public class UpdateStackGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("OperationId") private String operationId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private UpdateStackGroupResponseBody(Builder builder) { this.operationId = builder.operationId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static UpdateStackGroupResponseBody 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(UpdateStackGroupResponseBody model) { this.operationId = model.operationId; this.requestId = model.requestId; } /** * <p>The ID of the operation.</p> * * <strong>example:</strong> * <p>6da106ca-1784-4a6f-a7e1-e723863d****</p> */ public Builder operationId(String operationId) { this.operationId = operationId; 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; } public UpdateStackGroupResponseBody build() { return new UpdateStackGroupResponseBody(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/UpdateStackInstancesRequest.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 UpdateStackInstancesRequest} extends {@link RequestModel} * * <p>UpdateStackInstancesRequest</p> */ public class UpdateStackInstancesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccountIds") private java.util.List<String> accountIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DeploymentTargets") private DeploymentTargets deploymentTargets; @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("ParameterOverrides") private java.util.List<ParameterOverrides> parameterOverrides; @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("RegionIds") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> regionIds; @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("TimeoutInMinutes") @com.aliyun.core.annotation.Validation(maximum = 1440, minimum = 10) private Long timeoutInMinutes; private UpdateStackInstancesRequest(Builder builder) { super(builder); this.accountIds = builder.accountIds; this.clientToken = builder.clientToken; this.deploymentTargets = builder.deploymentTargets; this.operationDescription = builder.operationDescription; this.operationPreferences = builder.operationPreferences; this.parameterOverrides = builder.parameterOverrides; this.regionId = builder.regionId; this.regionIds = builder.regionIds; this.stackGroupName = builder.stackGroupName; this.timeoutInMinutes = builder.timeoutInMinutes; } public static Builder builder() { return new Builder(); } public static UpdateStackInstancesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return accountIds */ public java.util.List<String> getAccountIds() { return this.accountIds; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return deploymentTargets */ public DeploymentTargets getDeploymentTargets() { return this.deploymentTargets; } /** * @return operationDescription */ public String getOperationDescription() { return this.operationDescription; } /** * @return operationPreferences */ public java.util.Map<String, ?> getOperationPreferences() { return this.operationPreferences; } /** * @return parameterOverrides */ public java.util.List<ParameterOverrides> getParameterOverrides() { return this.parameterOverrides; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return regionIds */ public java.util.List<String> getRegionIds() { return this.regionIds; } /** * @return stackGroupName */ public String getStackGroupName() { return this.stackGroupName; } /** * @return timeoutInMinutes */ public Long getTimeoutInMinutes() { return this.timeoutInMinutes; } public static final class Builder extends Request.Builder<UpdateStackInstancesRequest, Builder> { private java.util.List<String> accountIds; private String clientToken; private DeploymentTargets deploymentTargets; private String operationDescription; private java.util.Map<String, ?> operationPreferences; private java.util.List<ParameterOverrides> parameterOverrides; private String regionId; private java.util.List<String> regionIds; private String stackGroupName; private Long timeoutInMinutes; private Builder() { super(); } private Builder(UpdateStackInstancesRequest request) { super(request); this.accountIds = request.accountIds; this.clientToken = request.clientToken; this.deploymentTargets = request.deploymentTargets; this.operationDescription = request.operationDescription; this.operationPreferences = request.operationPreferences; this.parameterOverrides = request.parameterOverrides; this.regionId = request.regionId; this.regionIds = request.regionIds; this.stackGroupName = request.stackGroupName; this.timeoutInMinutes = request.timeoutInMinutes; } /** * <p>The IDs of the execution accounts within which you want to deploy stacks in self-managed mode. You can specify up to 20 execution account IDs.</p> * <blockquote> * <p>If you want to update stacks in self-managed permission mode, you must specify this parameter.</p> * </blockquote> * * <strong>example:</strong> * <p>[&quot;151266687691****&quot;,&quot;141261387191****&quot;]</p> */ public Builder accountIds(java.util.List<String> accountIds) { String accountIdsShrink = shrink(accountIds, "AccountIds", "json"); this.putQueryParameter("AccountIds", accountIdsShrink); this.accountIds = accountIds; 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 contain letters, digits, hyphens (-), and underscores (_), and cannot exceed 64 characters in length.<br>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 folders in which you want to deploy stacks in service-managed mode.</p> * <blockquote> * <p>If you want to update stacks in service-managed permission mode, you must specify this parameter.</p> * </blockquote> */ public Builder deploymentTargets(DeploymentTargets deploymentTargets) { String deploymentTargetsShrink = shrink(deploymentTargets, "DeploymentTargets", "json"); this.putQueryParameter("DeploymentTargets", deploymentTargetsShrink); this.deploymentTargets = deploymentTargets; return this; } /** * <p>The description of the update operation.</p> * <p>The description must be 1 to 256 characters in length.</p> * * <strong>example:</strong> * <p>Update stack instances in hangzhou and beijing</p> */ public Builder operationDescription(String operationDescription) { this.putQueryParameter("OperationDescription", operationDescription); this.operationDescription = operationDescription; return this; } /** * <p>The preference settings of the update operation.</p> * <p>The following parameters are available:</p> * <ul> * <li><p>{&quot;FailureToleranceCount&quot;: N}</p> * <p> The number of accounts within which stack operation failures are allowed in each region. If the value of this parameter is exceeded in a region, ROS stops the operation in the region. If ROS stops the operation in one region, ROS stops the operation in other regions.</p> * <p> Valid values of N: 0 to 20.</p> * <p> If you do not specify FailureToleranceCount, 0 is used as the default value.</p> * </li> * <li><p>{&quot;FailureTolerancePercentage&quot;: N}</p> * <p> The percentage of the number of accounts within which stack operation failures are allowed to the total number of accounts in each region. If the value of this parameter is exceeded, ROS stops the operation in the region.</p> * <p> Valid values of N: 0 to 100. If the numeric value in the percentage is not an integer, ROS rounds the value down to the nearest integer.</p> * <p> If you do not specify FailureTolerancePercentage, 0 is used as the default value.</p> * </li> * <li><p>{&quot;MaxConcurrentCount&quot;: N}</p> * <p> The maximum number of accounts within which multiple stacks are deployed at the same time in each region.</p> * <p> Valid values of N: 1 to 20.</p> * <p> If you do not specify MaxConcurrentCount, 1 is used as the default value.</p> * </li> * <li><p>{&quot;MaxConcurrentPercentage&quot;: N}</p> * <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. If the numeric value in the percentage is not an integer, ROS rounds the value down to the nearest integer.</p> * <p> If you do not specify MaxConcurrentPercentage, 1 is used as the default value.</p> * </li> * <li><p>{&quot;RegionConcurrencyType&quot;: N}</p> * <p>The mode that you want to use to deploy stacks across regions. Valid values:</p> * <ul> * <li><p>SEQUENTIAL (default): deploys stacks in the specified regions one by one in sequence. This way, ROS deploys stacks in only one region at a time. </p> * </li> * <li><p>PARALLEL: deploys stacks in all the specified regions in parallel.</p> * </li> * </ul> * </li> * </ul> * <p>Separate multiple parameters with commas (,).</p> * <blockquote> * <ul> * <li>You can specify only one of the following parameters: MaxConcurrentCount and MaxConcurrentPercentage.</li> * <li>You can specify only one of the following parameters: 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 parameters that are used to override specific parameters.</p> */ public Builder parameterOverrides(java.util.List<ParameterOverrides> parameterOverrides) { this.putQueryParameter("ParameterOverrides", parameterOverrides); this.parameterOverrides = parameterOverrides; 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 IDs of the regions where you want to update the stacks. You can specify up to 20 region IDs.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>[&quot;cn-hangzhou&quot;, &quot;cn-beijing&quot;]</p> */ public Builder regionIds(java.util.List<String> regionIds) { String regionIdsShrink = shrink(regionIds, "RegionIds", "json"); this.putQueryParameter("RegionIds", regionIdsShrink); this.regionIds = regionIds; 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 a 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 timeout period for the update operation.</p> * <ul> * <li>Default value: 60.</li> * <li>Unit: minutes.</li> * </ul> * * <strong>example:</strong> * <p>10</p> */ public Builder timeoutInMinutes(Long timeoutInMinutes) { this.putQueryParameter("TimeoutInMinutes", timeoutInMinutes); this.timeoutInMinutes = timeoutInMinutes; return this; } @Override public UpdateStackInstancesRequest build() { return new UpdateStackInstancesRequest(this); } } /** * * {@link UpdateStackInstancesRequest} extends {@link TeaModel} * * <p>UpdateStackInstancesRequest</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 member accounts in the resource directory. You can specify up to 20 member account IDs.</p> * <blockquote> * <p>To view the member account IDs, go to the <strong>Overview</strong> page in the <strong>Resource Management</strong> console. For more information, see <a href="https://help.aliyun.com/document_detail/111624.html">View the details of a member</a>.</p> * </blockquote> */ public Builder accountIds(java.util.List<String> accountIds) { this.accountIds = accountIds; return this; } /** * <p>The folder IDs of 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 UpdateStackInstancesRequest} extends {@link TeaModel} * * <p>UpdateStackInstancesRequest</p> */ public static class ParameterOverrides 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 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 key of parameter N that you want to use to override a specific parameter. If you do not specify this parameter, ROS uses the name that you specified when you created the stack group.</p> * <p>Maximum value of N: 200.</p> * <blockquote> * <ul> * <li>ParameterOverrides is optional.</li> * <li>If you specify ParameterOverrides, you must specify ParameterOverrides.N.ParameterKey and ParameterOverrides.N.ParameterValue.</li> * </ul> * </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 parameter N that you want to use to override a specific parameter. If you do not specify this parameter, ROS uses the value that you specified when you created the stack group.</p> * <p>Maximum value of N: 200.</p> * <blockquote> * <ul> * <li>ParameterOverrides is optional.</li> * <li>If you specify ParameterOverrides, you must specify ParameterOverrides.N.ParameterKey and ParameterOverrides.N.ParameterValue.</li> * </ul> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder parameterValue(String parameterValue) { this.parameterValue = parameterValue; return this; } public ParameterOverrides build() { return new ParameterOverrides(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/UpdateStackInstancesResponse.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 UpdateStackInstancesResponse} extends {@link TeaModel} * * <p>UpdateStackInstancesResponse</p> */ public class UpdateStackInstancesResponse 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 UpdateStackInstancesResponseBody body; private UpdateStackInstancesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UpdateStackInstancesResponse 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 UpdateStackInstancesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UpdateStackInstancesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UpdateStackInstancesResponseBody body); @Override UpdateStackInstancesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UpdateStackInstancesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UpdateStackInstancesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UpdateStackInstancesResponse 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(UpdateStackInstancesResponseBody body) { this.body = body; return this; } @Override public UpdateStackInstancesResponse build() { return new UpdateStackInstancesResponse(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/UpdateStackInstancesResponseBody.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 UpdateStackInstancesResponseBody} extends {@link TeaModel} * * <p>UpdateStackInstancesResponseBody</p> */ public class UpdateStackInstancesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("OperationId") private String operationId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private UpdateStackInstancesResponseBody(Builder builder) { this.operationId = builder.operationId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static UpdateStackInstancesResponseBody 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(UpdateStackInstancesResponseBody model) { this.operationId = model.operationId; this.requestId = model.requestId; } /** * <p>The ID of the operation.</p> * * <strong>example:</strong> * <p>6da106ca-1784-4a6f-a7e1-e723863d****</p> */ public Builder operationId(String operationId) { this.operationId = operationId; 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; } public UpdateStackInstancesResponseBody build() { return new UpdateStackInstancesResponseBody(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/UpdateStackRequest.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 UpdateStackRequest} extends {@link RequestModel} * * <p>UpdateStackRequest</p> */ public class UpdateStackRequest 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("DisableRollback") @Deprecated private Boolean disableRollback; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRunOptions") private java.util.List<String> dryRunOptions; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Parallelism") private Long parallelism; @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("RamRoleName") private String ramRoleName; @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("ReplacementOption") private String replacementOption; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @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("StackPolicyBody") private String stackPolicyBody; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackPolicyDuringUpdateBody") private String stackPolicyDuringUpdateBody; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackPolicyDuringUpdateURL") private String stackPolicyDuringUpdateURL; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StackPolicyURL") private String stackPolicyURL; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TaintResources") private java.util.List<String> taintResources; @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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TimeoutInMinutes") private Long timeoutInMinutes; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UsePreviousParameters") private Boolean usePreviousParameters; private UpdateStackRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.disableRollback = builder.disableRollback; this.dryRun = builder.dryRun; this.dryRunOptions = builder.dryRunOptions; this.parallelism = builder.parallelism; this.parameters = builder.parameters; this.ramRoleName = builder.ramRoleName; this.regionId = builder.regionId; this.replacementOption = builder.replacementOption; this.resourceGroupId = builder.resourceGroupId; this.stackId = builder.stackId; this.stackPolicyBody = builder.stackPolicyBody; this.stackPolicyDuringUpdateBody = builder.stackPolicyDuringUpdateBody; this.stackPolicyDuringUpdateURL = builder.stackPolicyDuringUpdateURL; this.stackPolicyURL = builder.stackPolicyURL; this.tags = builder.tags; this.taintResources = builder.taintResources; this.templateBody = builder.templateBody; this.templateId = builder.templateId; this.templateURL = builder.templateURL; this.templateVersion = builder.templateVersion; this.timeoutInMinutes = builder.timeoutInMinutes; this.usePreviousParameters = builder.usePreviousParameters; } public static Builder builder() { return new Builder(); } public static UpdateStackRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return disableRollback */ public Boolean getDisableRollback() { return this.disableRollback; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return dryRunOptions */ public java.util.List<String> getDryRunOptions() { return this.dryRunOptions; } /** * @return parallelism */ public Long getParallelism() { return this.parallelism; } /** * @return parameters */ public java.util.List<Parameters> getParameters() { return this.parameters; } /** * @return ramRoleName */ public String getRamRoleName() { return this.ramRoleName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return replacementOption */ public String getReplacementOption() { return this.replacementOption; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return stackPolicyBody */ public String getStackPolicyBody() { return this.stackPolicyBody; } /** * @return stackPolicyDuringUpdateBody */ public String getStackPolicyDuringUpdateBody() { return this.stackPolicyDuringUpdateBody; } /** * @return stackPolicyDuringUpdateURL */ public String getStackPolicyDuringUpdateURL() { return this.stackPolicyDuringUpdateURL; } /** * @return stackPolicyURL */ public String getStackPolicyURL() { return this.stackPolicyURL; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return taintResources */ public java.util.List<String> getTaintResources() { return this.taintResources; } /** * @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; } /** * @return timeoutInMinutes */ public Long getTimeoutInMinutes() { return this.timeoutInMinutes; } /** * @return usePreviousParameters */ public Boolean getUsePreviousParameters() { return this.usePreviousParameters; } public static final class Builder extends Request.Builder<UpdateStackRequest, Builder> { private String clientToken; private Boolean disableRollback; private Boolean dryRun; private java.util.List<String> dryRunOptions; private Long parallelism; private java.util.List<Parameters> parameters; private String ramRoleName; private String regionId; private String replacementOption; private String resourceGroupId; private String stackId; private String stackPolicyBody; private String stackPolicyDuringUpdateBody; private String stackPolicyDuringUpdateURL; private String stackPolicyURL; private java.util.List<Tags> tags; private java.util.List<String> taintResources; private String templateBody; private String templateId; private String templateURL; private String templateVersion; private Long timeoutInMinutes; private Boolean usePreviousParameters; private Builder() { super(); } private Builder(UpdateStackRequest request) { super(request); this.clientToken = request.clientToken; this.disableRollback = request.disableRollback; this.dryRun = request.dryRun; this.dryRunOptions = request.dryRunOptions; this.parallelism = request.parallelism; this.parameters = request.parameters; this.ramRoleName = request.ramRoleName; this.regionId = request.regionId; this.replacementOption = request.replacementOption; this.resourceGroupId = request.resourceGroupId; this.stackId = request.stackId; this.stackPolicyBody = request.stackPolicyBody; this.stackPolicyDuringUpdateBody = request.stackPolicyDuringUpdateBody; this.stackPolicyDuringUpdateURL = request.stackPolicyDuringUpdateURL; this.stackPolicyURL = request.stackPolicyURL; this.tags = request.tags; this.taintResources = request.taintResources; this.templateBody = request.templateBody; this.templateId = request.templateId; this.templateURL = request.templateURL; this.templateVersion = request.templateVersion; this.timeoutInMinutes = request.timeoutInMinutes; this.usePreviousParameters = request.usePreviousParameters; } /** * <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>123e4567-e89b-12d3-a456-42665544****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to roll back the resources in the stack when the stack fails to be updated.</p> * <p>Default value: false. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder disableRollback(Boolean disableRollback) { this.putQueryParameter("DisableRollback", disableRollback); this.disableRollback = disableRollback; return this; } /** * <p>Specifies whether only to validate the stack in the request. Default value: false. Valid values:</p> * <ul> * <li>true: only validates the stack.</li> * <li>false: validates and updates the stack.</li> * </ul> * <blockquote> * <p> When no changes are made during the update, the following rules apply: If you set the DryRun parameter to false, the NotSupported error code is returned. If you set the DryRun parameter to true, no error is reported.</p> * </blockquote> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The dry run option in the list format. You can specify only one dry run option.</p> * <blockquote> * <p>This parameter takes effect only when DryRun is set to true.</p> * </blockquote> */ public Builder dryRunOptions(java.util.List<String> dryRunOptions) { this.putQueryParameter("DryRunOptions", dryRunOptions); this.dryRunOptions = dryRunOptions; return this; } /** * <p>The maximum number of concurrent operations that can be performed on resources.</p> * <p>By default, this parameter is empty. You can set this parameter to an integer that is greater than or equal to 0.</p> * <blockquote> * <ul> * <li>If you set this parameter to an integer that is greater than 0, the integer is used.</li> * <li>If you set this parameter to 0, no limit is imposed on Resource Orchestration Service (ROS) stacks. However, the default value in Terraform is used for Terraform stacks. In most cases, the default value in Terraform is 10.</li> * <li>If you leave this parameter empty, the value that you specified for this parameter in the previous request is used. If you left this parameter empty in the previous request, no limit is imposed on ROS stacks. However, the default value in Terraform is used for Terraform stacks. In most cases, the default value in Terraform is 10.</li> * <li>If you set this parameter to a specific value, ROS associates the value with the stack. The value affects subsequent operations on the stack.</li> * </ul> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder parallelism(Long parallelism) { this.putQueryParameter("Parallelism", parallelism); this.parallelism = parallelism; return this; } /** * <p>The parameters.</p> */ public Builder parameters(java.util.List<Parameters> parameters) { this.putQueryParameter("Parameters", parameters); this.parameters = parameters; return this; } /** * <p>The name of the RAM role. Resource Orchestration Service (ROS) assumes the RAM role to create the stack and uses the credentials of the role to call the APIs of Alibaba Cloud services.</p> * <p>ROS assumes the RAM role to perform operations on the stack. If you have permissions to perform operations on the stack but do not have permissions to use the RAM role, ROS still assumes the RAM role. You must make sure that the least privileges are granted to the RAM role.</p> * <p>If you do not specify this parameter, ROS assumes the existing RAM role that is associated with the stack. If no RAM roles are available, ROS uses a temporary credential that is generated from the credentials of your account.</p> * <p>The name of the RAM role can be up to 64 bytes in length.</p> * * <strong>example:</strong> * <p>test-role</p> */ public Builder ramRoleName(String ramRoleName) { this.putQueryParameter("RamRoleName", ramRoleName); this.ramRoleName = ramRoleName; return this; } /** * <p>The ID of the region in which the stack is deployed. 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-beijing</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>Specifies whether to enable the replacement update feature. If you cannot change resource properties, you can enable the replacement update feature to replace the resource properties. If the replacement update feature is used, the existing resource is deleted and a new resource is created. The physical ID of the new resource is different from the physical ID of the deleted resource.</p> * <p>Default value: Disabled. Valid values:</p> * <ul> * <li>Enabled</li> * <li>Disabled</li> * </ul> * <blockquote> * <p> Changes have higher priorities than replacement updates.</p> * </blockquote> * * <strong>example:</strong> * <p>Disabled</p> */ public Builder replacementOption(String replacementOption) { this.putQueryParameter("ReplacementOption", replacementOption); this.replacementOption = replacementOption; return this; } /** * <p>The ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; 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 structure that contains the stack policy body. The policy body must be 1 to 16,384 bytes in length.</p> * <blockquote> * <p> You can specify only one of the StackPolicyBody and StackPolicyURL parameters.</p> * </blockquote> * * <strong>example:</strong> * <p>{&quot;Statement&quot;: [{&quot;Action&quot;: &quot;Update:<em>&quot;, &quot;Resource&quot;: &quot;</em>&quot;, &quot;Effect&quot;: &quot;Allow&quot;, &quot;Principal&quot;: &quot;*&quot;}]}</p> */ public Builder stackPolicyBody(String stackPolicyBody) { this.putQueryParameter("StackPolicyBody", stackPolicyBody); this.stackPolicyBody = stackPolicyBody; return this; } /** * <p>The structure that contains the body of the temporary overriding stack policy. The policy body must be 1 to 16,384 bytes in length.</p> * <p>If you want to update protected resources, you must specify a temporary overriding stack policy during the update. If you do not specify a temporary overriding stack policy, the existing policy that is associated with the stack is used.</p> * <p>This parameter takes effect only when the ChangeSetType parameter is set to UPDATE. You can specify only one of the following parameters:</p> * <ul> * <li>StackPolicyBody</li> * <li>StackPolicyURL</li> * <li>StackPolicyDuringUpdateBody</li> * <li>StackPolicyDuringUpdateURL</li> * </ul> * * <strong>example:</strong> * <p>{&quot;Statement&quot;: [{&quot;Effect&quot;: &quot;Allow&quot;, &quot;Action&quot;: &quot;Update:<em>&quot;, &quot;Principal&quot;: &quot;</em>&quot;, &quot;Resource&quot;: &quot;*&quot;}]}</p> */ public Builder stackPolicyDuringUpdateBody(String stackPolicyDuringUpdateBody) { this.putQueryParameter("StackPolicyDuringUpdateBody", stackPolicyDuringUpdateBody); this.stackPolicyDuringUpdateBody = stackPolicyDuringUpdateBody; return this; } /** * <p>The URL of the file that contains the temporary overriding stack policy. The URL must point to a policy that is located on an HTTP or HTTPS web server or in an OSS bucket, such as oss://ros/stack-policy/demo or oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy file can be up to 16,384 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>The URL can be up to 1,350 bytes in length.</p> * <p>If you want to update protected resources, you must specify a temporary overriding stack policy during the update. If you do not specify a temporary overriding stack policy, the existing policy that is associated with the stack is used. This parameter takes effect only when the ChangeSetType parameter is set to UPDATE. You can specify only one of the following parameters:</p> * <ul> * <li>StackPolicyBody</li> * <li>StackPolicyURL</li> * <li>StackPolicyDuringUpdateBody</li> * <li>StackPolicyDuringUpdateURL</li> * </ul> * * <strong>example:</strong> * <p>oss://ros-stack-policy/demo</p> */ public Builder stackPolicyDuringUpdateURL(String stackPolicyDuringUpdateURL) { this.putQueryParameter("StackPolicyDuringUpdateURL", stackPolicyDuringUpdateURL); this.stackPolicyDuringUpdateURL = stackPolicyDuringUpdateURL; return this; } /** * <p>The URL of the file that contains the stack policy. The URL must point to a policy 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 policy file can be up to 16,384 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 can specify only one of the StackPolicyBody and StackPolicyURL parameters.</p> * </blockquote> * <p>The URL can be up to 1,350 bytes in length.</p> * * <strong>example:</strong> * <p>oss://ros-stack-policy/demo</p> */ public Builder stackPolicyURL(String stackPolicyURL) { this.putQueryParameter("StackPolicyURL", stackPolicyURL); this.stackPolicyURL = stackPolicyURL; return this; } /** * <p>The value of tag N that you want to add to the template.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } /** * TaintResources. */ public Builder taintResources(java.util.List<String> taintResources) { this.putQueryParameter("TaintResources", taintResources); this.taintResources = taintResources; return this; } /** * TemplateBody. */ 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 templates 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 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 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. 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; } /** * <p>The timeout period for the update operation on the stack.</p> * <ul> * <li>Default value: 60.</li> * <li>Unit: minutes.</li> * </ul> * * <strong>example:</strong> * <p>10</p> */ public Builder timeoutInMinutes(Long timeoutInMinutes) { this.putQueryParameter("TimeoutInMinutes", timeoutInMinutes); this.timeoutInMinutes = timeoutInMinutes; return this; } /** * <p>Specifies whether to use the values specified in the previous request for the parameters that you do not specify in the current request.</p> * <p>Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder usePreviousParameters(Boolean usePreviousParameters) { this.putQueryParameter("UsePreviousParameters", usePreviousParameters); this.usePreviousParameters = usePreviousParameters; return this; } @Override public UpdateStackRequest build() { return new UpdateStackRequest(this); } } /** * * {@link UpdateStackRequest} extends {@link TeaModel} * * <p>UpdateStackRequest</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. If you do not specify the name and value of a parameter, ROS uses the default name and value 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> * <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 parameter N. 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> * <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 UpdateStackRequest} extends {@link TeaModel} * * <p>UpdateStackRequest</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") @com.aliyun.core.annotation.Validation(required = true) 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 key of tag N that you want to add to the stack.</p> * <p>Valid values of N: 1 to 20.</p> * <blockquote> * <ul> * <li>The Tags parameter is optional. If you specify Tags, you must specify Tags.N.Key.</li> * <li>The tag of a stack is propagated to each resource that supports the tag feature in the stack. For more information, see <a href="https://help.aliyun.com/document_detail/201421.html">Propagate tags</a>.</li> * </ul> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>usage</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N that you want to add to the stack.</p> * <p>Valid values of N: 1 to 20.</p> * <blockquote> * <p> The tag of a stack is propagated to each resource that supports the tag feature in the stack. For more information, see <a href="https://help.aliyun.com/document_detail/201421.html">Propagate tags</a>.</p> * </blockquote> * * <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/UpdateStackResponse.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 UpdateStackResponse} extends {@link TeaModel} * * <p>UpdateStackResponse</p> */ public class UpdateStackResponse 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 UpdateStackResponseBody body; private UpdateStackResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UpdateStackResponse 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 UpdateStackResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UpdateStackResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UpdateStackResponseBody body); @Override UpdateStackResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UpdateStackResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UpdateStackResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UpdateStackResponse 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(UpdateStackResponseBody body) { this.body = body; return this; } @Override public UpdateStackResponse build() { return new UpdateStackResponse(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/UpdateStackResponseBody.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 UpdateStackResponseBody} extends {@link TeaModel} * * <p>UpdateStackResponseBody</p> */ public class UpdateStackResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("DryRunResult") private DryRunResult dryRunResult; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("StackId") private String stackId; private UpdateStackResponseBody(Builder builder) { this.dryRunResult = builder.dryRunResult; this.requestId = builder.requestId; this.stackId = builder.stackId; } public static Builder builder() { return new Builder(); } public static UpdateStackResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return dryRunResult */ public DryRunResult getDryRunResult() { return this.dryRunResult; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return stackId */ public String getStackId() { return this.stackId; } public static final class Builder { private DryRunResult dryRunResult; private String requestId; private String stackId; private Builder() { } private Builder(UpdateStackResponseBody model) { this.dryRunResult = model.dryRunResult; this.requestId = model.requestId; this.stackId = model.stackId; } /** * <p>The dry run result. This parameter is returned only if DryRun is set to true.</p> */ public Builder dryRunResult(DryRunResult dryRunResult) { this.dryRunResult = dryRunResult; 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 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 UpdateStackResponseBody build() { return new UpdateStackResponseBody(this); } } /** * * {@link UpdateStackResponseBody} extends {@link TeaModel} * * <p>UpdateStackResponseBody</p> */ public static class DryRunResult extends TeaModel { @com.aliyun.core.annotation.NameInMap("ParametersAllowedToBeModified") private java.util.List<String> parametersAllowedToBeModified; @com.aliyun.core.annotation.NameInMap("ParametersCauseInterruptionIfModified") private java.util.List<String> parametersCauseInterruptionIfModified; @com.aliyun.core.annotation.NameInMap("ParametersCauseReplacementIfModified") private java.util.List<String> parametersCauseReplacementIfModified; @com.aliyun.core.annotation.NameInMap("ParametersConditionallyAllowedToBeModified") private java.util.List<String> parametersConditionallyAllowedToBeModified; @com.aliyun.core.annotation.NameInMap("ParametersConditionallyCauseInterruptionIfModified") private java.util.List<String> parametersConditionallyCauseInterruptionIfModified; @com.aliyun.core.annotation.NameInMap("ParametersConditionallyCauseReplacementIfModified") private java.util.List<String> parametersConditionallyCauseReplacementIfModified; @com.aliyun.core.annotation.NameInMap("ParametersNotAllowedToBeModified") private java.util.List<String> parametersNotAllowedToBeModified; @com.aliyun.core.annotation.NameInMap("ParametersUncertainlyAllowedToBeModified") private java.util.List<String> parametersUncertainlyAllowedToBeModified; @com.aliyun.core.annotation.NameInMap("ParametersUncertainlyCauseInterruptionIfModified") private java.util.List<String> parametersUncertainlyCauseInterruptionIfModified; @com.aliyun.core.annotation.NameInMap("ParametersUncertainlyCauseReplacementIfModified") private java.util.List<String> parametersUncertainlyCauseReplacementIfModified; private DryRunResult(Builder builder) { this.parametersAllowedToBeModified = builder.parametersAllowedToBeModified; this.parametersCauseInterruptionIfModified = builder.parametersCauseInterruptionIfModified; this.parametersCauseReplacementIfModified = builder.parametersCauseReplacementIfModified; this.parametersConditionallyAllowedToBeModified = builder.parametersConditionallyAllowedToBeModified; this.parametersConditionallyCauseInterruptionIfModified = builder.parametersConditionallyCauseInterruptionIfModified; this.parametersConditionallyCauseReplacementIfModified = builder.parametersConditionallyCauseReplacementIfModified; this.parametersNotAllowedToBeModified = builder.parametersNotAllowedToBeModified; this.parametersUncertainlyAllowedToBeModified = builder.parametersUncertainlyAllowedToBeModified; this.parametersUncertainlyCauseInterruptionIfModified = builder.parametersUncertainlyCauseInterruptionIfModified; this.parametersUncertainlyCauseReplacementIfModified = builder.parametersUncertainlyCauseReplacementIfModified; } public static Builder builder() { return new Builder(); } public static DryRunResult create() { return builder().build(); } /** * @return parametersAllowedToBeModified */ public java.util.List<String> getParametersAllowedToBeModified() { return this.parametersAllowedToBeModified; } /** * @return parametersCauseInterruptionIfModified */ public java.util.List<String> getParametersCauseInterruptionIfModified() { return this.parametersCauseInterruptionIfModified; } /** * @return parametersCauseReplacementIfModified */ public java.util.List<String> getParametersCauseReplacementIfModified() { return this.parametersCauseReplacementIfModified; } /** * @return parametersConditionallyAllowedToBeModified */ public java.util.List<String> getParametersConditionallyAllowedToBeModified() { return this.parametersConditionallyAllowedToBeModified; } /** * @return parametersConditionallyCauseInterruptionIfModified */ public java.util.List<String> getParametersConditionallyCauseInterruptionIfModified() { return this.parametersConditionallyCauseInterruptionIfModified; } /** * @return parametersConditionallyCauseReplacementIfModified */ public java.util.List<String> getParametersConditionallyCauseReplacementIfModified() { return this.parametersConditionallyCauseReplacementIfModified; } /** * @return parametersNotAllowedToBeModified */ public java.util.List<String> getParametersNotAllowedToBeModified() { return this.parametersNotAllowedToBeModified; } /** * @return parametersUncertainlyAllowedToBeModified */ public java.util.List<String> getParametersUncertainlyAllowedToBeModified() { return this.parametersUncertainlyAllowedToBeModified; } /** * @return parametersUncertainlyCauseInterruptionIfModified */ public java.util.List<String> getParametersUncertainlyCauseInterruptionIfModified() { return this.parametersUncertainlyCauseInterruptionIfModified; } /** * @return parametersUncertainlyCauseReplacementIfModified */ public java.util.List<String> getParametersUncertainlyCauseReplacementIfModified() { return this.parametersUncertainlyCauseReplacementIfModified; } public static final class Builder { private java.util.List<String> parametersAllowedToBeModified; private java.util.List<String> parametersCauseInterruptionIfModified; private java.util.List<String> parametersCauseReplacementIfModified; private java.util.List<String> parametersConditionallyAllowedToBeModified; private java.util.List<String> parametersConditionallyCauseInterruptionIfModified; private java.util.List<String> parametersConditionallyCauseReplacementIfModified; private java.util.List<String> parametersNotAllowedToBeModified; private java.util.List<String> parametersUncertainlyAllowedToBeModified; private java.util.List<String> parametersUncertainlyCauseInterruptionIfModified; private java.util.List<String> parametersUncertainlyCauseReplacementIfModified; private Builder() { } private Builder(DryRunResult model) { this.parametersAllowedToBeModified = model.parametersAllowedToBeModified; this.parametersCauseInterruptionIfModified = model.parametersCauseInterruptionIfModified; this.parametersCauseReplacementIfModified = model.parametersCauseReplacementIfModified; this.parametersConditionallyAllowedToBeModified = model.parametersConditionallyAllowedToBeModified; this.parametersConditionallyCauseInterruptionIfModified = model.parametersConditionallyCauseInterruptionIfModified; this.parametersConditionallyCauseReplacementIfModified = model.parametersConditionallyCauseReplacementIfModified; this.parametersNotAllowedToBeModified = model.parametersNotAllowedToBeModified; this.parametersUncertainlyAllowedToBeModified = model.parametersUncertainlyAllowedToBeModified; this.parametersUncertainlyCauseInterruptionIfModified = model.parametersUncertainlyCauseInterruptionIfModified; this.parametersUncertainlyCauseReplacementIfModified = model.parametersUncertainlyCauseReplacementIfModified; } /** * <p>The parameters that can be modified. If you change only values of the parameters in a stack template and use the template to update the stack, no validation errors are caused.</p> */ public Builder parametersAllowedToBeModified(java.util.List<String> parametersAllowedToBeModified) { this.parametersAllowedToBeModified = parametersAllowedToBeModified; return this; } /** * <p>The parameters whose changes cause service interruptions.</p> * <blockquote> * <ul> * <li>This parameter is supported only for a small number of resource types.</li> * <li>This parameter is valid only for updates on ROS stacks.</li> * </ul> * </blockquote> */ public Builder parametersCauseInterruptionIfModified(java.util.List<String> parametersCauseInterruptionIfModified) { this.parametersCauseInterruptionIfModified = parametersCauseInterruptionIfModified; return this; } /** * <p>The parameters whose changes trigger replacement updates for resources.</p> * <blockquote> * <ul> * <li>This parameter can be returned only if ReplacementOption is set to Enabled.</li> * <li>This parameter is valid only for updates on ROS stacks.</li> * </ul> * </blockquote> */ public Builder parametersCauseReplacementIfModified(java.util.List<String> parametersCauseReplacementIfModified) { this.parametersCauseReplacementIfModified = parametersCauseReplacementIfModified; return this; } /** * <p>The parameters that can be modified under specific conditions. If you change only values of the parameters in a stack template and use the template to update the stack, the new values of the parameters determine whether validation errors are caused.</p> */ public Builder parametersConditionallyAllowedToBeModified(java.util.List<String> parametersConditionallyAllowedToBeModified) { this.parametersConditionallyAllowedToBeModified = parametersConditionallyAllowedToBeModified; return this; } /** * <p>The parameters whose changes cause service interruptions under specific conditions.</p> * <blockquote> * <ul> * <li>This parameter is supported only for a small number of resource types.</li> * <li>This parameter is valid only for updates on ROS stacks.</li> * </ul> * </blockquote> */ public Builder parametersConditionallyCauseInterruptionIfModified(java.util.List<String> parametersConditionallyCauseInterruptionIfModified) { this.parametersConditionallyCauseInterruptionIfModified = parametersConditionallyCauseInterruptionIfModified; return this; } /** * <p>The parameters whose changes trigger replacement updates for resources under specific conditions.</p> * <blockquote> * <ul> * <li>This parameter can be returned only if ReplacementOption is set to Enabled.</li> * <li>This parameter is valid only for updates on ROS stacks.</li> * </ul> * </blockquote> */ public Builder parametersConditionallyCauseReplacementIfModified(java.util.List<String> parametersConditionallyCauseReplacementIfModified) { this.parametersConditionallyCauseReplacementIfModified = parametersConditionallyCauseReplacementIfModified; return this; } /** * <p>The parameters that cannot be modified. If you change only values of the parameters in a stack template and use the template to update the stack, validation errors are caused.</p> */ public Builder parametersNotAllowedToBeModified(java.util.List<String> parametersNotAllowedToBeModified) { this.parametersNotAllowedToBeModified = parametersNotAllowedToBeModified; return this; } /** * <p>The parameters that can be modified under uncertain conditions. If you change only values of the parameters in a stack template and use the template to update the stack, the actual running environment determines whether validation errors are caused.</p> */ public Builder parametersUncertainlyAllowedToBeModified(java.util.List<String> parametersUncertainlyAllowedToBeModified) { this.parametersUncertainlyAllowedToBeModified = parametersUncertainlyAllowedToBeModified; return this; } /** * <p>The parameters whose changes cause service interruptions under uncertain conditions.</p> * <blockquote> * <ul> * <li>This parameter is supported only for a small number of resource types.</li> * <li>This parameter is valid only for updates on ROS stacks.</li> * </ul> * </blockquote> */ public Builder parametersUncertainlyCauseInterruptionIfModified(java.util.List<String> parametersUncertainlyCauseInterruptionIfModified) { this.parametersUncertainlyCauseInterruptionIfModified = parametersUncertainlyCauseInterruptionIfModified; return this; } /** * <p>The parameters whose changes trigger replacement updates for resources under uncertain conditions.</p> * <blockquote> * <ul> * <li>This parameter can be returned only if ReplacementOption is set to Enabled.</li> * <li>This parameter is valid only for updates on ROS stacks.</li> * </ul> * </blockquote> */ public Builder parametersUncertainlyCauseReplacementIfModified(java.util.List<String> parametersUncertainlyCauseReplacementIfModified) { this.parametersUncertainlyCauseReplacementIfModified = parametersUncertainlyCauseReplacementIfModified; return this; } public DryRunResult build() { return new DryRunResult(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/UpdateStackTemplateByResourcesRequest.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 UpdateStackTemplateByResourcesRequest} extends {@link RequestModel} * * <p>UpdateStackTemplateByResourcesRequest</p> */ public class UpdateStackTemplateByResourcesRequest 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("DryRun") private Boolean dryRun; @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("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("TemplateFormat") private String templateFormat; private UpdateStackTemplateByResourcesRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.logicalResourceId = builder.logicalResourceId; this.regionId = builder.regionId; this.stackId = builder.stackId; this.templateFormat = builder.templateFormat; } public static Builder builder() { return new Builder(); } public static UpdateStackTemplateByResourcesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return logicalResourceId */ public java.util.List<String> getLogicalResourceId() { return this.logicalResourceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return stackId */ public String getStackId() { return this.stackId; } /** * @return templateFormat */ public String getTemplateFormat() { return this.templateFormat; } public static final class Builder extends Request.Builder<UpdateStackTemplateByResourcesRequest, Builder> { private String clientToken; private Boolean dryRun; private java.util.List<String> logicalResourceId; private String regionId; private String stackId; private String templateFormat; private Builder() { super(); } private Builder(UpdateStackTemplateByResourcesRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.logicalResourceId = request.logicalResourceId; this.regionId = request.regionId; this.stackId = request.stackId; this.templateFormat = request.templateFormat; } /** * <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>Specifies whether to only preview the corrected template in this request. Default value: false. Valid values:</p> * <ul> * <li>true: returns the content of the corrected template and does not correct the template. After Resource Orchestration Service (ROS) compares the corrected template with the original template, ROS determines whether to execute the correction.</li> * <li>false: corrects the template to eliminate drift.</li> * </ul> * <blockquote> * <p> We recommend that you set the DryRun parameter to true to preview the corrected template. If the template content meets expectations, set the DryRun parameter to false to execute the correction.</p> * </blockquote> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The logical ID of resource.</p> * * <strong>example:</strong> * <p>Vpc</p> */ public Builder logicalResourceId(java.util.List<String> logicalResourceId) { this.putQueryParameter("LogicalResourceId", logicalResourceId); this.logicalResourceId = logicalResourceId; 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 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 format of the returned template. Default value: JSON. Valid values:</p> * <ul> * <li>JSON</li> * <li>YAML</li> * </ul> * * <strong>example:</strong> * <p>JSON</p> */ public Builder templateFormat(String templateFormat) { this.putQueryParameter("TemplateFormat", templateFormat); this.templateFormat = templateFormat; return this; } @Override public UpdateStackTemplateByResourcesRequest build() { return new UpdateStackTemplateByResourcesRequest(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/UpdateStackTemplateByResourcesResponse.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 UpdateStackTemplateByResourcesResponse} extends {@link TeaModel} * * <p>UpdateStackTemplateByResourcesResponse</p> */ public class UpdateStackTemplateByResourcesResponse 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 UpdateStackTemplateByResourcesResponseBody body; private UpdateStackTemplateByResourcesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UpdateStackTemplateByResourcesResponse 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 UpdateStackTemplateByResourcesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UpdateStackTemplateByResourcesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UpdateStackTemplateByResourcesResponseBody body); @Override UpdateStackTemplateByResourcesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UpdateStackTemplateByResourcesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UpdateStackTemplateByResourcesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UpdateStackTemplateByResourcesResponse 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(UpdateStackTemplateByResourcesResponseBody body) { this.body = body; return this; } @Override public UpdateStackTemplateByResourcesResponse build() { return new UpdateStackTemplateByResourcesResponse(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/UpdateStackTemplateByResourcesResponseBody.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 UpdateStackTemplateByResourcesResponseBody} extends {@link TeaModel} * * <p>UpdateStackTemplateByResourcesResponseBody</p> */ public class UpdateStackTemplateByResourcesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NewTemplateBody") private String newTemplateBody; @com.aliyun.core.annotation.NameInMap("OldTemplateBody") private String oldTemplateBody; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private UpdateStackTemplateByResourcesResponseBody(Builder builder) { this.newTemplateBody = builder.newTemplateBody; this.oldTemplateBody = builder.oldTemplateBody; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static UpdateStackTemplateByResourcesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return newTemplateBody */ public String getNewTemplateBody() { return this.newTemplateBody; } /** * @return oldTemplateBody */ public String getOldTemplateBody() { return this.oldTemplateBody; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String newTemplateBody; private String oldTemplateBody; private String requestId; private Builder() { } private Builder(UpdateStackTemplateByResourcesResponseBody model) { this.newTemplateBody = model.newTemplateBody; this.oldTemplateBody = model.oldTemplateBody; this.requestId = model.requestId; } /** * <p>The template content after correction.</p> * * <strong>example:</strong> * <p>{&quot;ROSTemplateFormatVersion&quot;: &quot;2015-09-01&quot;, &quot;Resources&quot;: {&quot;Vpc&quot;: {&quot;Type&quot;: &quot;ALIYUN::ECS::VPC&quot;, &quot;Properties&quot;: {&quot;VpcName&quot;: &quot;test&quot;, &quot;CidrBlock&quot;: &quot;192.168.0.0/16&quot;, &quot;Description&quot;: &quot;test2&quot;}}}, &quot;Outputs&quot;: {&quot;VpcId&quot;: {&quot;Value&quot;: {&quot;Fn::GetAtt&quot;: [&quot;Vpc&quot;, &quot;VpcId&quot;]}}}}</p> */ public Builder newTemplateBody(String newTemplateBody) { this.newTemplateBody = newTemplateBody; return this; } /** * <p>The template content before correction.</p> * * <strong>example:</strong> * <p>{&quot;ROSTemplateFormatVersion&quot;: &quot;2015-09-01&quot;, &quot;Resources&quot;: {&quot;Vpc&quot;: {&quot;Type&quot;: &quot;ALIYUN::ECS::VPC&quot;, &quot;Properties&quot;: {&quot;VpcName&quot;: &quot;test&quot;, &quot;CidrBlock&quot;: &quot;192.168.0.0/16&quot;, &quot;Description&quot;: &quot;test1&quot;}}}, &quot;Outputs&quot;: {&quot;VpcId&quot;: {&quot;Value&quot;: {&quot;Fn::GetAtt&quot;: [&quot;Vpc&quot;, &quot;VpcId&quot;]}}}}</p> */ public Builder oldTemplateBody(String oldTemplateBody) { this.oldTemplateBody = oldTemplateBody; 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; } public UpdateStackTemplateByResourcesResponseBody build() { return new UpdateStackTemplateByResourcesResponseBody(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/UpdateTemplateRequest.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 UpdateTemplateRequest} extends {@link RequestModel} * * <p>UpdateTemplateRequest</p> */ public class UpdateTemplateRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IsDraft") private Boolean isDraft; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RotateStrategy") private String rotateStrategy; @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") @com.aliyun.core.annotation.Validation(required = true) private String templateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateName") private String templateName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateURL") private String templateURL; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ValidationOptions") private java.util.List<String> validationOptions; private UpdateTemplateRequest(Builder builder) { super(builder); this.description = builder.description; this.isDraft = builder.isDraft; this.rotateStrategy = builder.rotateStrategy; this.templateBody = builder.templateBody; this.templateId = builder.templateId; this.templateName = builder.templateName; this.templateURL = builder.templateURL; this.validationOptions = builder.validationOptions; } public static Builder builder() { return new Builder(); } public static UpdateTemplateRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return isDraft */ public Boolean getIsDraft() { return this.isDraft; } /** * @return rotateStrategy */ public String getRotateStrategy() { return this.rotateStrategy; } /** * @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 templateURL */ public String getTemplateURL() { return this.templateURL; } /** * @return validationOptions */ public java.util.List<String> getValidationOptions() { return this.validationOptions; } public static final class Builder extends Request.Builder<UpdateTemplateRequest, Builder> { private String description; private Boolean isDraft; private String rotateStrategy; private String templateBody; private String templateId; private String templateName; private String templateURL; private java.util.List<String> validationOptions; private Builder() { super(); } private Builder(UpdateTemplateRequest request) { super(request); this.description = request.description; this.isDraft = request.isDraft; this.rotateStrategy = request.rotateStrategy; this.templateBody = request.templateBody; this.templateId = request.templateId; this.templateName = request.templateName; this.templateURL = request.templateURL; this.validationOptions = request.validationOptions; } /** * <p>The description of the template. The maximum length is 256 characters.</p> * * <strong>example:</strong> * <p>It is a demo.</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>Whether to update the Draft (draft) version. Values:</p> * <ul> * <li>false (default): If template content is provided, a new version is created, and the Draft version is cleared. Otherwise, the current latest version is modified.</li> * <li>true: Modifies the Draft version. The Draft version can only be retrieved via the GetTemplate interface. The ListTemplateVersions interface will not return it. The TemplateVersion parameter in other interfaces cannot specify Draft.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder isDraft(Boolean isDraft) { this.putQueryParameter("IsDraft", isDraft); this.isDraft = isDraft; return this; } /** * <p>Template version rotation strategy. Values:</p> * <ul> * <li>None (default): No rotation. An error occurs when the version limit is reached.</li> * <li>DeleteOldestNonSharedVersionWhenLimitExceeded: Rotates and deletes non-shared template versions.<blockquote> * <ul> * <li>If all versions of the template are shared, they cannot be rotated and deleted.</li> * <li>The current latest version will not be rotated and deleted.</li> * <li>Regardless of whether rotation deletion is used, the template version number cannot exceed v65000.</li> * </ul> * </blockquote> * </li> * </ul> * * <strong>example:</strong> * <p>None</p> */ public Builder rotateStrategy(String rotateStrategy) { this.putQueryParameter("RotateStrategy", rotateStrategy); this.rotateStrategy = rotateStrategy; return this; } /** * <p>The structure of the template body. The length should be between 1 and 524,288 bytes. If the content is long, it is recommended to use HTTP POST + Body Param to pass the parameter in the request body to avoid request failure due to an overly long URL.</p> * <blockquote> * <p>You must and can only specify one of <code>TemplateBody</code>, <code>TemplateURL</code>, <code>TemplateId</code>, or <code>TemplateScratchId</code>.</p> * </blockquote> * * <strong>example:</strong> * <p>{&quot;ROSTemplateFormatVersion&quot;:&quot;2015-09-01&quot;}</p> */ public Builder templateBody(String templateBody) { this.putBodyParameter("TemplateBody", templateBody); this.templateBody = templateBody; return this; } /** * <p>The template ID. Supports both shared and private templates.</p> * <p>This parameter is required.</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 name of the template.<br>The length should not exceed 255 characters (utf-8 encoding), and it must start with a number, letter, or Chinese character. It can include numbers, letters, Chinese characters, hyphens (-), and underscores (_).</p> * * <strong>example:</strong> * <p>MyTemplate</p> */ public Builder templateName(String templateName) { this.putQueryParameter("TemplateName", templateName); this.templateName = templateName; return this; } /** * <p>The location of the file containing the template body. The URL must point to a template located on a web server (HTTP or HTTPS) or in an Alibaba Cloud OSS bucket (e.g., oss://ros/template/demo, oss://ros/template/demo?RegionId=cn-hangzhou), with a maximum size of 524,288 bytes. </p> * <blockquote> * <p>If the OSS region is not specified, it defaults to the same as the <code>RegionId</code> parameter in the request.</p> * </blockquote> * <p>You can only specify one of <code>TemplateBody</code> or <code>TemplateURL</code>.<br>The maximum length of the URL is 1,024 bytes.</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>Validation options.</p> * <p>By default, no options are enabled, and strict validation is performed.</p> */ public Builder validationOptions(java.util.List<String> validationOptions) { this.putQueryParameter("ValidationOptions", validationOptions); this.validationOptions = validationOptions; return this; } @Override public UpdateTemplateRequest build() { return new UpdateTemplateRequest(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/UpdateTemplateResponse.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 UpdateTemplateResponse} extends {@link TeaModel} * * <p>UpdateTemplateResponse</p> */ public class UpdateTemplateResponse 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 UpdateTemplateResponseBody body; private UpdateTemplateResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UpdateTemplateResponse 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 UpdateTemplateResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UpdateTemplateResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UpdateTemplateResponseBody body); @Override UpdateTemplateResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UpdateTemplateResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UpdateTemplateResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UpdateTemplateResponse 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(UpdateTemplateResponseBody body) { this.body = body; return this; } @Override public UpdateTemplateResponse build() { return new UpdateTemplateResponse(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/UpdateTemplateResponseBody.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 UpdateTemplateResponseBody} extends {@link TeaModel} * * <p>UpdateTemplateResponseBody</p> */ public class UpdateTemplateResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TemplateId") private String templateId; @com.aliyun.core.annotation.NameInMap("TemplateVersion") private String templateVersion; private UpdateTemplateResponseBody(Builder builder) { this.requestId = builder.requestId; this.templateId = builder.templateId; this.templateVersion = builder.templateVersion; } public static Builder builder() { return new Builder(); } public static UpdateTemplateResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return templateId */ public String getTemplateId() { return this.templateId; } /** * @return templateVersion */ public String getTemplateVersion() { return this.templateVersion; } public static final class Builder { private String requestId; private String templateId; private String templateVersion; private Builder() { } private Builder(UpdateTemplateResponseBody model) { this.requestId = model.requestId; this.templateId = model.templateId; this.templateVersion = model.templateVersion; } /** * <p>Request ID.</p> * * <strong>example:</strong> * <p>8C5D90E1-66B6-496C-9371-3807F8DA80A8</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Template ID.</p> * * <strong>example:</strong> * <p>5ecd1e10-b0e9-4389-a565-e4c15efc****</p> */ public Builder templateId(String templateId) { this.templateId = templateId; return this; } /** * <p>The template version affected by this operation.</p> * * <strong>example:</strong> * <p>v2</p> */ public Builder templateVersion(String templateVersion) { this.templateVersion = templateVersion; return this; } public UpdateTemplateResponseBody build() { return new UpdateTemplateResponseBody(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/UpdateTemplateScratchRequest.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 UpdateTemplateScratchRequest} extends {@link RequestModel} * * <p>UpdateTemplateScratchRequest</p> */ public class UpdateTemplateScratchRequest 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("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ExecutionMode") private String executionMode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LogicalIdStrategy") private String logicalIdStrategy; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PreferenceParameters") private java.util.List<PreferenceParameters> preferenceParameters; @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("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceResourceGroup") private SourceResourceGroup sourceResourceGroup; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceResources") private java.util.List<SourceResources> sourceResources; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceTag") private SourceTag sourceTag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateScratchId") @com.aliyun.core.annotation.Validation(required = true) private String templateScratchId; private UpdateTemplateScratchRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.description = builder.description; this.executionMode = builder.executionMode; this.logicalIdStrategy = builder.logicalIdStrategy; this.preferenceParameters = builder.preferenceParameters; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.sourceResourceGroup = builder.sourceResourceGroup; this.sourceResources = builder.sourceResources; this.sourceTag = builder.sourceTag; this.templateScratchId = builder.templateScratchId; } public static Builder builder() { return new Builder(); } public static UpdateTemplateScratchRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return description */ public String getDescription() { return this.description; } /** * @return executionMode */ public String getExecutionMode() { return this.executionMode; } /** * @return logicalIdStrategy */ public String getLogicalIdStrategy() { return this.logicalIdStrategy; } /** * @return preferenceParameters */ public java.util.List<PreferenceParameters> getPreferenceParameters() { return this.preferenceParameters; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @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 templateScratchId */ public String getTemplateScratchId() { return this.templateScratchId; } public static final class Builder extends Request.Builder<UpdateTemplateScratchRequest, Builder> { private String clientToken; private String description; private String executionMode; private String logicalIdStrategy; private java.util.List<PreferenceParameters> preferenceParameters; private String regionId; private String resourceGroupId; private SourceResourceGroup sourceResourceGroup; private java.util.List<SourceResources> sourceResources; private SourceTag sourceTag; private String templateScratchId; private Builder() { super(); } private Builder(UpdateTemplateScratchRequest request) { super(request); this.clientToken = request.clientToken; this.description = request.description; this.executionMode = request.executionMode; this.logicalIdStrategy = request.logicalIdStrategy; this.preferenceParameters = request.preferenceParameters; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.sourceResourceGroup = request.sourceResourceGroup; this.sourceResources = request.sourceResources; this.sourceTag = request.sourceTag; this.templateScratchId = request.templateScratchId; } /** * <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. The token can contain only ASCII characters and cannot exceed 64 characters in length.</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 description of the scenario.</p> * * <strong>example:</strong> * <p>The description of the scenario.</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The execution mode. Valid values:</p> * <ul> * <li>Async (default)</li> * <li>Sync</li> * </ul> * <blockquote> * <p>If you have a wide scope of resources, Sync takes longer. If you set ExecutionMode to Sync, we recommend that you specify ClientToken to prevent the execution timeout.</p> * </blockquote> * * <strong>example:</strong> * <p>Sync</p> */ public Builder executionMode(String executionMode) { this.putQueryParameter("ExecutionMode", executionMode); this.executionMode = executionMode; return this; } /** * <p>The policy based on which the logical ID is generated. Valid values:</p> * <ul> * <li>LongTypePrefixAndIndexSuffix: 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> * <blockquote> * <p> If you set TemplateScratchType to ArchitectureDetection, the default value of LogicalIdStrategy is LongTypePrefixAndHashSuffix. In other cases, the default value of LogicalIdStrategy is LongTypePrefixAndIndexSuffix.</p> * </blockquote> * * <strong>example:</strong> * <p>LongTypePrefixAndIndexSuffix</p> */ public Builder logicalIdStrategy(String logicalIdStrategy) { this.putQueryParameter("LogicalIdStrategy", logicalIdStrategy); this.logicalIdStrategy = logicalIdStrategy; return this; } /** * <p>The preference parameters of the resource scenario.</p> */ public Builder preferenceParameters(java.util.List<PreferenceParameters> preferenceParameters) { String preferenceParametersShrink = shrink(preferenceParameters, "PreferenceParameters", "json"); this.putQueryParameter("PreferenceParameters", preferenceParametersShrink); this.preferenceParameters = preferenceParameters; return this; } /** * <p>The region ID of the 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 group.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * <p>The source resource group.</p> * <blockquote> * <p> You must specify only one of the following parameters: SourceResources, SourceTag, and SourceResourceGroup.</p> * </blockquote> */ public Builder sourceResourceGroup(SourceResourceGroup sourceResourceGroup) { String sourceResourceGroupShrink = shrink(sourceResourceGroup, "SourceResourceGroup", "json"); this.putQueryParameter("SourceResourceGroup", sourceResourceGroupShrink); this.sourceResourceGroup = sourceResourceGroup; return this; } /** * <p>The source resources.</p> * <blockquote> * <p> You must specify only one of the following parameters: SourceResources, SourceTag, and SourceResourceGroup.</p> * </blockquote> */ public Builder sourceResources(java.util.List<SourceResources> sourceResources) { String sourceResourcesShrink = shrink(sourceResources, "SourceResources", "json"); this.putQueryParameter("SourceResources", sourceResourcesShrink); this.sourceResources = sourceResources; return this; } /** * <p>The source tag.</p> * <blockquote> * <p> You must specify only one of the following parameters: SourceResources, SourceTag, and SourceResourceGroup.</p> * </blockquote> */ public Builder sourceTag(SourceTag sourceTag) { String sourceTagShrink = shrink(sourceTag, "SourceTag", "json"); this.putQueryParameter("SourceTag", sourceTagShrink); this.sourceTag = sourceTag; return this; } /** * <p>The ID of the resource scenario.</p> * <p>The valid values of the ParameterKey and ParameterValue request parameters vary based on the IDs of different types of resource scenarios. For more information, see the &quot;Additional information about request parameters&quot; section of this topic.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/610832.html">ListTemplateScratches</a> operation to query the ID of a resource scenario.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ts-7f7a704cf71c49a6****</p> */ public Builder templateScratchId(String templateScratchId) { this.putQueryParameter("TemplateScratchId", templateScratchId); this.templateScratchId = templateScratchId; return this; } @Override public UpdateTemplateScratchRequest build() { return new UpdateTemplateScratchRequest(this); } } /** * * {@link UpdateTemplateScratchRequest} extends {@link TeaModel} * * <p>UpdateTemplateScratchRequest</p> */ public static class PreferenceParameters 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 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> * <p>For more information about the valid values of ParameterKey, see the &quot;<strong>Additional information about request parameters</strong>&quot; section of this topic.</p> * <blockquote> * <ul> * <li>PreferenceParameters is optional. If you specify PreferenceParameters, you must specify both ParameterKey and ParameterValue.</li> * <li>If you set TemplateScratchType to ResourceImport, you must set ParameterKey to DeletionPolicy.</li> * </ul> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>DeletionPolicy</p> */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * <p>The parameter value. The value of ParameterValue varies based on the value of ParameterKey.</p> * <p>For more information about the valid values of ParameterKey, see the &quot;<strong>Additional information about request parameters</strong>&quot; section of this topic.</p> * <blockquote> * <p> PreferenceParameters is optional. If you specify PreferenceParameters, you must specify both ParameterKey and ParameterValue.</p> * </blockquote> * <p>This parameter is required.</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 UpdateTemplateScratchRequest} extends {@link TeaModel} * * <p>UpdateTemplateScratchRequest</p> */ public static class SourceResourceGroup extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceGroupId") @com.aliyun.core.annotation.Validation(required = true) 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> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>rg-acfmzawhxxc****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The resource types for filtering resources.</p> */ public Builder resourceTypeFilter(java.util.List<String> resourceTypeFilter) { this.resourceTypeFilter = resourceTypeFilter; return this; } public SourceResourceGroup build() { return new SourceResourceGroup(this); } } } /** * * {@link UpdateTemplateScratchRequest} extends {@link TeaModel} * * <p>UpdateTemplateScratchRequest</p> */ public static class SourceResources extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private String resourceId; @com.aliyun.core.annotation.NameInMap("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; private SourceResources(Builder builder) { this.resourceId = builder.resourceId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static SourceResources create() { return builder().build(); } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private String resourceId; private String resourceType; private Builder() { } private Builder(SourceResources model) { this.resourceId = model.resourceId; this.resourceType = model.resourceType; } /** * <p>The resource ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpc-bp1m6fww66xbntjyc****</p> */ public Builder resourceId(String resourceId) { this.resourceId = resourceId; return this; } /** * <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.resourceType = resourceType; return this; } public SourceResources build() { return new SourceResources(this); } } } /** * * {@link UpdateTemplateScratchRequest} extends {@link TeaModel} * * <p>UpdateTemplateScratchRequest</p> */ public static class SourceTag extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceTags") @com.aliyun.core.annotation.Validation(required = true) 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. A tag contains a tag key and a tag value.</p> * <p>If you want to specify only the tag key, you must leave the tag value empty. Example: {&quot;TagKey&quot;: &quot;&quot;}.</p> * <p>If you set TemplateScratchType to ArchitectureDetection, you can add up to 5 source tags. In other cases, you can add up to 10 source tags.</p> * <p>This parameter is required.</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 types for filtering resources.</p> */ public Builder resourceTypeFilter(java.util.List<String> resourceTypeFilter) { this.resourceTypeFilter = resourceTypeFilter; return this; } public SourceTag build() { return new SourceTag(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/UpdateTemplateScratchResponse.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 UpdateTemplateScratchResponse} extends {@link TeaModel} * * <p>UpdateTemplateScratchResponse</p> */ public class UpdateTemplateScratchResponse 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 UpdateTemplateScratchResponseBody body; private UpdateTemplateScratchResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UpdateTemplateScratchResponse 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 UpdateTemplateScratchResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UpdateTemplateScratchResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UpdateTemplateScratchResponseBody body); @Override UpdateTemplateScratchResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UpdateTemplateScratchResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UpdateTemplateScratchResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UpdateTemplateScratchResponse 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(UpdateTemplateScratchResponseBody body) { this.body = body; return this; } @Override public UpdateTemplateScratchResponse build() { return new UpdateTemplateScratchResponse(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/UpdateTemplateScratchResponseBody.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 UpdateTemplateScratchResponseBody} extends {@link TeaModel} * * <p>UpdateTemplateScratchResponseBody</p> */ public class UpdateTemplateScratchResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TemplateScratchId") private String templateScratchId; private UpdateTemplateScratchResponseBody(Builder builder) { this.requestId = builder.requestId; this.templateScratchId = builder.templateScratchId; } public static Builder builder() { return new Builder(); } public static UpdateTemplateScratchResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return templateScratchId */ public String getTemplateScratchId() { return this.templateScratchId; } public static final class Builder { private String requestId; private String templateScratchId; private Builder() { } private Builder(UpdateTemplateScratchResponseBody model) { this.requestId = model.requestId; this.templateScratchId = model.templateScratchId; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>221DA822-B8CF-50DF-A9D2-BA197BF97BD5</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the scenario.</p> * * <strong>example:</strong> * <p>ts-7f7a704cf71c49a6****</p> */ public Builder templateScratchId(String templateScratchId) { this.templateScratchId = templateScratchId; return this; } public UpdateTemplateScratchResponseBody build() { return new UpdateTemplateScratchResponseBody(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/ValidateTemplateRequest.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 ValidateTemplateRequest} extends {@link RequestModel} * * <p>ValidateTemplateRequest</p> */ public class ValidateTemplateRequest 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("RegionId") private String regionId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("TemplateBody") private String templateBody; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateURL") private String templateURL; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UpdateInfoOptions") private java.util.List<String> updateInfoOptions; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ValidationOption") private String validationOption; private ValidateTemplateRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.regionId = builder.regionId; this.templateBody = builder.templateBody; this.templateURL = builder.templateURL; this.updateInfoOptions = builder.updateInfoOptions; this.validationOption = builder.validationOption; } public static Builder builder() { return new Builder(); } public static ValidateTemplateRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return templateBody */ public String getTemplateBody() { return this.templateBody; } /** * @return templateURL */ public String getTemplateURL() { return this.templateURL; } /** * @return updateInfoOptions */ public java.util.List<String> getUpdateInfoOptions() { return this.updateInfoOptions; } /** * @return validationOption */ public String getValidationOption() { return this.validationOption; } public static final class Builder extends Request.Builder<ValidateTemplateRequest, Builder> { private String clientToken; private String regionId; private String templateBody; private String templateURL; private java.util.List<String> updateInfoOptions; private String validationOption; private Builder() { super(); } private Builder(ValidateTemplateRequest request) { super(request); this.clientToken = request.clientToken; this.regionId = request.regionId; this.templateBody = request.templateBody; this.templateURL = request.templateURL; this.updateInfoOptions = request.updateInfoOptions; this.validationOption = request.validationOption; } /** * <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.</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>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 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; } /** * TemplateBody. */ public Builder templateBody(String templateBody) { this.putBodyParameter("TemplateBody", templateBody); this.templateBody = templateBody; 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 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 one of TemplateBody and TemplateURL, but not both of them. 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 options that are used to control the generation of information about the stack update. You can specify up to two options.</p> */ public Builder updateInfoOptions(java.util.List<String> updateInfoOptions) { this.putQueryParameter("UpdateInfoOptions", updateInfoOptions); this.updateInfoOptions = updateInfoOptions; return this; } /** * <p>Specifies whether to enable additional validation for the template. Valid values:</p> * <ul> * <li>None (default): does not enable additional validation.</li> * <li>EnableTerraformValidation: runs the <code>terraform validate</code> command in the Terraform CLI to enable additional validation for a Terraform template.</li> * <li>EnableFastTerraformValidation: runs a command that is similar to the <code>terraform validate</code> command in the Terraform CLI to enable additional validation for a Terraform template.</li> * </ul> * <blockquote> * <p>Compared with the EnableTerraformValidation method, the EnableFastTerraformValidation method validates a template at a faster speed but a lower integrity level.</p> * </blockquote> * * <strong>example:</strong> * <p>None</p> */ public Builder validationOption(String validationOption) { this.putQueryParameter("ValidationOption", validationOption); this.validationOption = validationOption; return this; } @Override public ValidateTemplateRequest build() { return new ValidateTemplateRequest(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/ValidateTemplateResponse.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 ValidateTemplateResponse} extends {@link TeaModel} * * <p>ValidateTemplateResponse</p> */ public class ValidateTemplateResponse 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 ValidateTemplateResponseBody body; private ValidateTemplateResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ValidateTemplateResponse 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 ValidateTemplateResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ValidateTemplateResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ValidateTemplateResponseBody body); @Override ValidateTemplateResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ValidateTemplateResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ValidateTemplateResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ValidateTemplateResponse 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(ValidateTemplateResponseBody body) { this.body = body; return this; } @Override public ValidateTemplateResponse build() { return new ValidateTemplateResponse(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/ValidateTemplateResponseBody.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 ValidateTemplateResponseBody} extends {@link TeaModel} * * <p>ValidateTemplateResponseBody</p> */ public class ValidateTemplateResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Outputs") private java.util.List<Outputs> outputs; @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("ResourceTypes") private ResourceTypes resourceTypes; @com.aliyun.core.annotation.NameInMap("Resources") private java.util.List<Resources> resources; @com.aliyun.core.annotation.NameInMap("UpdateInfo") private UpdateInfo updateInfo; private ValidateTemplateResponseBody(Builder builder) { this.description = builder.description; this.outputs = builder.outputs; this.parameters = builder.parameters; this.requestId = builder.requestId; this.resourceTypes = builder.resourceTypes; this.resources = builder.resources; this.updateInfo = builder.updateInfo; } public static Builder builder() { return new Builder(); } public static ValidateTemplateResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return outputs */ public java.util.List<Outputs> getOutputs() { return this.outputs; } /** * @return parameters */ public java.util.List<java.util.Map<String, ?>> getParameters() { return this.parameters; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceTypes */ public ResourceTypes getResourceTypes() { return this.resourceTypes; } /** * @return resources */ public java.util.List<Resources> getResources() { return this.resources; } /** * @return updateInfo */ public UpdateInfo getUpdateInfo() { return this.updateInfo; } public static final class Builder { private String description; private java.util.List<Outputs> outputs; private java.util.List<java.util.Map<String, ?>> parameters; private String requestId; private ResourceTypes resourceTypes; private java.util.List<Resources> resources; private UpdateInfo updateInfo; private Builder() { } private Builder(ValidateTemplateResponseBody model) { this.description = model.description; this.outputs = model.outputs; this.parameters = model.parameters; this.requestId = model.requestId; this.resourceTypes = model.resourceTypes; this.resources = model.resources; this.updateInfo = model.updateInfo; } /** * <p>The description of the template.</p> * * <strong>example:</strong> * <p>No description</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The outputs of the template.</p> */ public Builder outputs(java.util.List<Outputs> outputs) { this.outputs = outputs; return this; } /** * <p>The parameters that are defined in the Parameters section of 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-B35EF84B6E6F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The resource types that are used in the template.</p> */ public Builder resourceTypes(ResourceTypes resourceTypes) { this.resourceTypes = resourceTypes; return this; } /** * <p>The regular resources that are defined in the template.</p> * <blockquote> * <ul> * <li>For a Resource Orchestration Service (ROS) template, the resource whose definition contains <code>Count</code> is not displayed as a list.</li> * <li>For a Terraform template, the resource whose definition contains <code>count</code> or <code>for_each</code> is not displayed as a list.</li> * </ul> * </blockquote> */ public Builder resources(java.util.List<Resources> resources) { this.resources = resources; return this; } /** * <p>The information about the stack update. This parameter cannot be returned if the value of UpdateInfoOptions contains Disabled.</p> */ public Builder updateInfo(UpdateInfo updateInfo) { this.updateInfo = updateInfo; return this; } public ValidateTemplateResponseBody build() { return new ValidateTemplateResponseBody(this); } } /** * * {@link ValidateTemplateResponseBody} extends {@link TeaModel} * * <p>ValidateTemplateResponseBody</p> */ public static class Outputs extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Label") private String label; @com.aliyun.core.annotation.NameInMap("OutputKey") private String outputKey; private Outputs(Builder builder) { this.description = builder.description; this.label = builder.label; this.outputKey = builder.outputKey; } public static Builder builder() { return new Builder(); } public static Outputs create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return label */ public String getLabel() { return this.label; } /** * @return outputKey */ public String getOutputKey() { return this.outputKey; } public static final class Builder { private String description; private String label; private String outputKey; private Builder() { } private Builder(Outputs model) { this.description = model.description; this.label = model.label; this.outputKey = model.outputKey; } /** * <p>The description of the template output.</p> * * <strong>example:</strong> * <p>The instance ID of my ECS.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The alias of the template output.</p> * * <strong>example:</strong> * <p>Instance ID</p> */ public Builder label(String label) { this.label = label; return this; } /** * <p>The name of the template output.</p> * * <strong>example:</strong> * <p>instance_id</p> */ public Builder outputKey(String outputKey) { this.outputKey = outputKey; return this; } public Outputs build() { return new Outputs(this); } } } /** * * {@link ValidateTemplateResponseBody} extends {@link TeaModel} * * <p>ValidateTemplateResponseBody</p> */ public static class ResourceTypes extends TeaModel { @com.aliyun.core.annotation.NameInMap("DataSources") private java.util.List<String> dataSources; @com.aliyun.core.annotation.NameInMap("Resources") private java.util.List<String> resources; private ResourceTypes(Builder builder) { this.dataSources = builder.dataSources; this.resources = builder.resources; } public static Builder builder() { return new Builder(); } public static ResourceTypes create() { return builder().build(); } /** * @return dataSources */ public java.util.List<String> getDataSources() { return this.dataSources; } /** * @return resources */ public java.util.List<String> getResources() { return this.resources; } public static final class Builder { private java.util.List<String> dataSources; private java.util.List<String> resources; private Builder() { } private Builder(ResourceTypes model) { this.dataSources = model.dataSources; this.resources = model.resources; } /** * <p>The DataSource resource types that are used in the template. The value is deduplicated.</p> */ public Builder dataSources(java.util.List<String> dataSources) { this.dataSources = dataSources; return this; } /** * <p>The regular resource types that are used in the template. The value is deduplicated.</p> */ public Builder resources(java.util.List<String> resources) { this.resources = resources; return this; } public ResourceTypes build() { return new ResourceTypes(this); } } } /** * * {@link ValidateTemplateResponseBody} extends {@link TeaModel} * * <p>ValidateTemplateResponseBody</p> */ public static class Resources extends TeaModel { @com.aliyun.core.annotation.NameInMap("LogicalResourceIdPattern") private String logicalResourceIdPattern; @com.aliyun.core.annotation.NameInMap("ResourcePath") private String resourcePath; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private Resources(Builder builder) { this.logicalResourceIdPattern = builder.logicalResourceIdPattern; this.resourcePath = builder.resourcePath; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static Resources create() { return builder().build(); } /** * @return logicalResourceIdPattern */ public String getLogicalResourceIdPattern() { return this.logicalResourceIdPattern; } /** * @return resourcePath */ public String getResourcePath() { return this.resourcePath; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private String logicalResourceIdPattern; private String resourcePath; private String resourceType; private Builder() { } private Builder(Resources model) { this.logicalResourceIdPattern = model.logicalResourceIdPattern; this.resourcePath = model.resourcePath; this.resourceType = model.resourceType; } /** * <p>The pattern in which the logical IDs of regular resources are formed.</p> * <p>If resources are defined in a ROS template, the following rules apply:</p> * <ul> * <li>Resource whose definition does not contain <code>Count</code>: If the resource name defined in the template is <code>server</code>, the values of LogicalResourceIdPattern and <code>ResourcePath</code> are both <code>server</code>.``</li> * <li>Resource whose definition contains <code>Count</code>: If the resource name defined in the template is <code>server</code>, the value of LogicalResourceIdPattern is <code>server[*]</code>, and the value of <code>ResourcePath</code> is <code>server</code>.</li> * </ul> * <p>If resources and <a href="https://www.terraform.io/language/modules">modules</a> are defined in a Terraform template, the following rules apply:</p> * <ul> * <li>Resource and module whose definitions do not contain <a href="https://www.terraform.io/language/meta-arguments/count"><code>count</code></a> or <a href="https://www.terraform.io/language/meta-arguments/for_each"><code>for_each</code></a>: If the resource name defined in the template is <code>server</code>, the values of LogicalResourceIdPattern and <code>ResourcePath</code> are both <code>server</code>.``</li> * <li>Resource and module whose definitions contain <a href="https://www.terraform.io/language/meta-arguments/count"><code>count</code></a> or <a href="https://www.terraform.io/language/meta-arguments/for_each"><code>for_each</code></a>: If the resource name defined in the template is <code>server</code>, the value of LogicalResourceIdPattern is <code>server[*]</code>, and the value of <code>ResourcePath</code> is <code>server</code>.</li> * </ul> * <p>Examples of LogicalResourceIdPattern for resources in a Terraform template:</p> * <ul> * <li><p>Valid values of LogicalResourceIdPattern if a resource belongs to the root module:</p> * <ul> * <li><code>server</code>: In this case, <code>count</code> and <code>for_each</code> are not contained in the resource. The value of <code>ResourcePath</code> is <code>server</code>.</li> * <li><code>server[*]</code>: In this case, <code>count</code> or <code>for_each</code> is contained in the resource. The value of <code>ResourcePath</code> is <code>server</code>.</li> * </ul> * </li> * <li><p>Valid values of LogicalResourceIdPattern if a resource belongs to a child module:</p> * <ul> * <li><code>app.server</code>: In this case, <code>count</code> and <code>for_each</code> are not contained in the <code>app</code> module and the <code>server</code> resource. The value of <code>ResourcePath</code> is <code>app.server</code>.````</li> * <li><code>app.server[*]</code>: In this case, <code>count</code> or <code>for_each</code> is contained in the <code>server</code> resource, but <code>count</code> and <code>for_each</code> are not contained in the <code>app</code> module. The value of <code>ResourcePath</code> is <code>app.server</code>.</li> * <li><code>app[*].server</code>: In this case, <code>count</code> or <code>for_each</code> is contained in the <code>app</code> module, but <code>count</code> and <code>for_each</code> are not contained in the <code>server</code> resource. The value of <code>ResourcePath</code> is <code>app.server</code>.</li> * <li><code>app[*].server[*]</code>: In this case, <code>count</code> or <code>for_each</code> is contained in the <code>app</code> module and the <code>server</code> resource. The value of <code>ResourcePath</code> is <code>app.server</code>.````</li> * <li><code>app.app_group[*].server</code>: In this case, <code>count</code> or <code>for_each</code> is contained in the <code>app_group</code> module, but <code>count</code> and <code>for_each</code> are not contained in the <code>app</code> module and the <code>server</code> resource. The value of <code>ResourcePath</code> is <code>app.app_group.server</code>. The <code>app_group</code> module is a child module of the <code>app</code> module.````</li> * </ul> * </li> * </ul> * * <strong>example:</strong> * <p>server</p> */ public Builder logicalResourceIdPattern(String logicalResourceIdPattern) { this.logicalResourceIdPattern = logicalResourceIdPattern; return this; } /** * <p>The path of the regular resource. In most cases, the path of a regular resource is the same as the resource name.</p> * * <strong>example:</strong> * <p>server</p> */ public Builder resourcePath(String resourcePath) { this.resourcePath = resourcePath; return this; } /** * <p>The regular resource type.</p> * * <strong>example:</strong> * <p>ALIYUN::ECS::InstanceGroup</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public Resources build() { return new Resources(this); } } } /** * * {@link ValidateTemplateResponseBody} extends {@link TeaModel} * * <p>ValidateTemplateResponseBody</p> */ public static class UpdateInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("ParametersAllowedToBeModified") private java.util.List<String> parametersAllowedToBeModified; @com.aliyun.core.annotation.NameInMap("ParametersCauseInterruptionIfModified") private java.util.List<String> parametersCauseInterruptionIfModified; @com.aliyun.core.annotation.NameInMap("ParametersCauseReplacementIfModified") private java.util.List<String> parametersCauseReplacementIfModified; @com.aliyun.core.annotation.NameInMap("ParametersConditionallyAllowedToBeModified") private java.util.List<String> parametersConditionallyAllowedToBeModified; @com.aliyun.core.annotation.NameInMap("ParametersConditionallyCauseInterruptionIfModified") private java.util.List<String> parametersConditionallyCauseInterruptionIfModified; @com.aliyun.core.annotation.NameInMap("ParametersConditionallyCauseReplacementIfModified") private java.util.List<String> parametersConditionallyCauseReplacementIfModified; @com.aliyun.core.annotation.NameInMap("ParametersNotAllowedToBeModified") private java.util.List<String> parametersNotAllowedToBeModified; @com.aliyun.core.annotation.NameInMap("ParametersUncertainlyAllowedToBeModified") private java.util.List<String> parametersUncertainlyAllowedToBeModified; @com.aliyun.core.annotation.NameInMap("ParametersUncertainlyCauseInterruptionIfModified") private java.util.List<String> parametersUncertainlyCauseInterruptionIfModified; @com.aliyun.core.annotation.NameInMap("ParametersUncertainlyCauseReplacementIfModified") private java.util.List<String> parametersUncertainlyCauseReplacementIfModified; private UpdateInfo(Builder builder) { this.parametersAllowedToBeModified = builder.parametersAllowedToBeModified; this.parametersCauseInterruptionIfModified = builder.parametersCauseInterruptionIfModified; this.parametersCauseReplacementIfModified = builder.parametersCauseReplacementIfModified; this.parametersConditionallyAllowedToBeModified = builder.parametersConditionallyAllowedToBeModified; this.parametersConditionallyCauseInterruptionIfModified = builder.parametersConditionallyCauseInterruptionIfModified; this.parametersConditionallyCauseReplacementIfModified = builder.parametersConditionallyCauseReplacementIfModified; this.parametersNotAllowedToBeModified = builder.parametersNotAllowedToBeModified; this.parametersUncertainlyAllowedToBeModified = builder.parametersUncertainlyAllowedToBeModified; this.parametersUncertainlyCauseInterruptionIfModified = builder.parametersUncertainlyCauseInterruptionIfModified; this.parametersUncertainlyCauseReplacementIfModified = builder.parametersUncertainlyCauseReplacementIfModified; } public static Builder builder() { return new Builder(); } public static UpdateInfo create() { return builder().build(); } /** * @return parametersAllowedToBeModified */ public java.util.List<String> getParametersAllowedToBeModified() { return this.parametersAllowedToBeModified; } /** * @return parametersCauseInterruptionIfModified */ public java.util.List<String> getParametersCauseInterruptionIfModified() { return this.parametersCauseInterruptionIfModified; } /** * @return parametersCauseReplacementIfModified */ public java.util.List<String> getParametersCauseReplacementIfModified() { return this.parametersCauseReplacementIfModified; } /** * @return parametersConditionallyAllowedToBeModified */ public java.util.List<String> getParametersConditionallyAllowedToBeModified() { return this.parametersConditionallyAllowedToBeModified; } /** * @return parametersConditionallyCauseInterruptionIfModified */ public java.util.List<String> getParametersConditionallyCauseInterruptionIfModified() { return this.parametersConditionallyCauseInterruptionIfModified; } /** * @return parametersConditionallyCauseReplacementIfModified */ public java.util.List<String> getParametersConditionallyCauseReplacementIfModified() { return this.parametersConditionallyCauseReplacementIfModified; } /** * @return parametersNotAllowedToBeModified */ public java.util.List<String> getParametersNotAllowedToBeModified() { return this.parametersNotAllowedToBeModified; } /** * @return parametersUncertainlyAllowedToBeModified */ public java.util.List<String> getParametersUncertainlyAllowedToBeModified() { return this.parametersUncertainlyAllowedToBeModified; } /** * @return parametersUncertainlyCauseInterruptionIfModified */ public java.util.List<String> getParametersUncertainlyCauseInterruptionIfModified() { return this.parametersUncertainlyCauseInterruptionIfModified; } /** * @return parametersUncertainlyCauseReplacementIfModified */ public java.util.List<String> getParametersUncertainlyCauseReplacementIfModified() { return this.parametersUncertainlyCauseReplacementIfModified; } public static final class Builder { private java.util.List<String> parametersAllowedToBeModified; private java.util.List<String> parametersCauseInterruptionIfModified; private java.util.List<String> parametersCauseReplacementIfModified; private java.util.List<String> parametersConditionallyAllowedToBeModified; private java.util.List<String> parametersConditionallyCauseInterruptionIfModified; private java.util.List<String> parametersConditionallyCauseReplacementIfModified; private java.util.List<String> parametersNotAllowedToBeModified; private java.util.List<String> parametersUncertainlyAllowedToBeModified; private java.util.List<String> parametersUncertainlyCauseInterruptionIfModified; private java.util.List<String> parametersUncertainlyCauseReplacementIfModified; private Builder() { } private Builder(UpdateInfo model) { this.parametersAllowedToBeModified = model.parametersAllowedToBeModified; this.parametersCauseInterruptionIfModified = model.parametersCauseInterruptionIfModified; this.parametersCauseReplacementIfModified = model.parametersCauseReplacementIfModified; this.parametersConditionallyAllowedToBeModified = model.parametersConditionallyAllowedToBeModified; this.parametersConditionallyCauseInterruptionIfModified = model.parametersConditionallyCauseInterruptionIfModified; this.parametersConditionallyCauseReplacementIfModified = model.parametersConditionallyCauseReplacementIfModified; this.parametersNotAllowedToBeModified = model.parametersNotAllowedToBeModified; this.parametersUncertainlyAllowedToBeModified = model.parametersUncertainlyAllowedToBeModified; this.parametersUncertainlyCauseInterruptionIfModified = model.parametersUncertainlyCauseInterruptionIfModified; this.parametersUncertainlyCauseReplacementIfModified = model.parametersUncertainlyCauseReplacementIfModified; } /** * <p>The parameters that can be modified.</p> */ public Builder parametersAllowedToBeModified(java.util.List<String> parametersAllowedToBeModified) { this.parametersAllowedToBeModified = parametersAllowedToBeModified; return this; } /** * <p>The parameters whose changes cause service interruptions.</p> * <blockquote> * <ul> * <li>This parameter is supported only for a small number of resource types.</li> * <li>This parameter is valid only for updates on ROS stacks.</li> * </ul> * </blockquote> */ public Builder parametersCauseInterruptionIfModified(java.util.List<String> parametersCauseInterruptionIfModified) { this.parametersCauseInterruptionIfModified = parametersCauseInterruptionIfModified; return this; } /** * <p>The parameters whose changes trigger replacement updates for resources.</p> * <blockquote> * <ul> * <li>This parameter can be returned only if the value of UpdateInfoOptions contains EnableReplacement.</li> * <li>This parameter is valid only for updates on ROS stacks.</li> * </ul> * </blockquote> */ public Builder parametersCauseReplacementIfModified(java.util.List<String> parametersCauseReplacementIfModified) { this.parametersCauseReplacementIfModified = parametersCauseReplacementIfModified; return this; } /** * <p>The parameters that can be modified under specific conditions.</p> */ public Builder parametersConditionallyAllowedToBeModified(java.util.List<String> parametersConditionallyAllowedToBeModified) { this.parametersConditionallyAllowedToBeModified = parametersConditionallyAllowedToBeModified; return this; } /** * <p>The parameters whose changes cause service interruptions under specific conditions.</p> * <blockquote> * <ul> * <li>This parameter is supported only for a small number of resource types.</li> * <li>This parameter is valid only for updates on ROS stacks.</li> * </ul> * </blockquote> */ public Builder parametersConditionallyCauseInterruptionIfModified(java.util.List<String> parametersConditionallyCauseInterruptionIfModified) { this.parametersConditionallyCauseInterruptionIfModified = parametersConditionallyCauseInterruptionIfModified; return this; } /** * <p>The parameters whose changes trigger replacement updates for resources under specific conditions.</p> * <blockquote> * <ul> * <li>This parameter can be returned only if the value of UpdateInfoOptions contains EnableReplacement.</li> * <li>This parameter is valid only for updates on ROS stacks.</li> * </ul> * </blockquote> */ public Builder parametersConditionallyCauseReplacementIfModified(java.util.List<String> parametersConditionallyCauseReplacementIfModified) { this.parametersConditionallyCauseReplacementIfModified = parametersConditionallyCauseReplacementIfModified; return this; } /** * <p>The parameters that cannot be modified.</p> */ public Builder parametersNotAllowedToBeModified(java.util.List<String> parametersNotAllowedToBeModified) { this.parametersNotAllowedToBeModified = parametersNotAllowedToBeModified; return this; } /** * <p>The parameters that can be modified under uncertain conditions.</p> */ public Builder parametersUncertainlyAllowedToBeModified(java.util.List<String> parametersUncertainlyAllowedToBeModified) { this.parametersUncertainlyAllowedToBeModified = parametersUncertainlyAllowedToBeModified; return this; } /** * <p>The parameters whose changes cause service interruptions under uncertain conditions.</p> * <blockquote> * <ul> * <li>This parameter is supported only for a small number of resource types.</li> * <li>This parameter is valid only for updates on ROS stacks.</li> * </ul> * </blockquote> */ public Builder parametersUncertainlyCauseInterruptionIfModified(java.util.List<String> parametersUncertainlyCauseInterruptionIfModified) { this.parametersUncertainlyCauseInterruptionIfModified = parametersUncertainlyCauseInterruptionIfModified; return this; } /** * <p>The parameters whose changes trigger replacement updates for resources under uncertain conditions.</p> * <blockquote> * <ul> * <li>This parameter can be returned only if the value of UpdateInfoOptions contains EnableReplacement.</li> * <li>This parameter is valid only for updates on ROS stacks.</li> * </ul> * </blockquote> */ public Builder parametersUncertainlyCauseReplacementIfModified(java.util.List<String> parametersUncertainlyCauseReplacementIfModified) { this.parametersUncertainlyCauseReplacementIfModified = parametersUncertainlyCauseReplacementIfModified; return this; } public UpdateInfo build() { return new UpdateInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun/ros20190910/AsyncClient.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.ros20190910; import com.aliyun.ros20190910.models.*; import darabonba.core.async.*; import darabonba.core.sync.*; import java.util.concurrent.CompletableFuture; public interface AsyncClient { static DefaultAsyncClientBuilder builder() { return new DefaultAsyncClientBuilder(); } static AsyncClient create() { return builder().build(); } CompletableFuture<CancelUpdateStackResponse> cancelUpdateStack(CancelUpdateStackRequest request); CompletableFuture<ContinueCreateStackResponse> continueCreateStack(ContinueCreateStackRequest request); CompletableFuture<CreateChangeSetResponse> createChangeSet(CreateChangeSetRequest request); CompletableFuture<CreateStackResponse> createStack(CreateStackRequest request); CompletableFuture<CreateStackGroupResponse> createStackGroup(CreateStackGroupRequest request); CompletableFuture<CreateStackInstancesResponse> createStackInstances(CreateStackInstancesRequest request); CompletableFuture<CreateTemplateResponse> createTemplate(CreateTemplateRequest request); CompletableFuture<CreateTemplateScratchResponse> createTemplateScratch(CreateTemplateScratchRequest request); CompletableFuture<DeleteChangeSetResponse> deleteChangeSet(DeleteChangeSetRequest request); CompletableFuture<DeleteStackResponse> deleteStack(DeleteStackRequest request); CompletableFuture<DeleteStackGroupResponse> deleteStackGroup(DeleteStackGroupRequest request); CompletableFuture<DeleteStackInstancesResponse> deleteStackInstances(DeleteStackInstancesRequest request); CompletableFuture<DeleteTemplateResponse> deleteTemplate(DeleteTemplateRequest request); CompletableFuture<DeleteTemplateScratchResponse> deleteTemplateScratch(DeleteTemplateScratchRequest request); CompletableFuture<DescribeRegionsResponse> describeRegions(DescribeRegionsRequest request); CompletableFuture<DetectStackDriftResponse> detectStackDrift(DetectStackDriftRequest request); CompletableFuture<DetectStackGroupDriftResponse> detectStackGroupDrift(DetectStackGroupDriftRequest request); CompletableFuture<DetectStackResourceDriftResponse> detectStackResourceDrift(DetectStackResourceDriftRequest request); CompletableFuture<ExecuteChangeSetResponse> executeChangeSet(ExecuteChangeSetRequest request); CompletableFuture<GenerateTemplateByScratchResponse> generateTemplateByScratch(GenerateTemplateByScratchRequest request); CompletableFuture<GenerateTemplatePolicyResponse> generateTemplatePolicy(GenerateTemplatePolicyRequest request); CompletableFuture<GetChangeSetResponse> getChangeSet(GetChangeSetRequest request); CompletableFuture<GetFeatureDetailsResponse> getFeatureDetails(GetFeatureDetailsRequest request); CompletableFuture<GetResourceTypeResponse> getResourceType(GetResourceTypeRequest request); CompletableFuture<GetResourceTypeTemplateResponse> getResourceTypeTemplate(GetResourceTypeTemplateRequest request); CompletableFuture<GetServiceProvisionsResponse> getServiceProvisions(GetServiceProvisionsRequest request); CompletableFuture<GetStackResponse> getStack(GetStackRequest request); CompletableFuture<GetStackDriftDetectionStatusResponse> getStackDriftDetectionStatus(GetStackDriftDetectionStatusRequest request); CompletableFuture<GetStackGroupResponse> getStackGroup(GetStackGroupRequest request); CompletableFuture<GetStackGroupOperationResponse> getStackGroupOperation(GetStackGroupOperationRequest request); CompletableFuture<GetStackInstanceResponse> getStackInstance(GetStackInstanceRequest request); CompletableFuture<GetStackPolicyResponse> getStackPolicy(GetStackPolicyRequest request); CompletableFuture<GetStackResourceResponse> getStackResource(GetStackResourceRequest request); CompletableFuture<GetTemplateResponse> getTemplate(GetTemplateRequest request); CompletableFuture<GetTemplateEstimateCostResponse> getTemplateEstimateCost(GetTemplateEstimateCostRequest request); CompletableFuture<GetTemplateParameterConstraintsResponse> getTemplateParameterConstraints(GetTemplateParameterConstraintsRequest request); CompletableFuture<GetTemplateScratchResponse> getTemplateScratch(GetTemplateScratchRequest request); CompletableFuture<GetTemplateSummaryResponse> getTemplateSummary(GetTemplateSummaryRequest request); CompletableFuture<ListChangeSetsResponse> listChangeSets(ListChangeSetsRequest request); CompletableFuture<ListResourceTypesResponse> listResourceTypes(ListResourceTypesRequest request); CompletableFuture<ListStackEventsResponse> listStackEvents(ListStackEventsRequest request); CompletableFuture<ListStackGroupOperationResultsResponse> listStackGroupOperationResults(ListStackGroupOperationResultsRequest request); CompletableFuture<ListStackGroupOperationsResponse> listStackGroupOperations(ListStackGroupOperationsRequest request); CompletableFuture<ListStackGroupsResponse> listStackGroups(ListStackGroupsRequest request); CompletableFuture<ListStackInstancesResponse> listStackInstances(ListStackInstancesRequest request); CompletableFuture<ListStackOperationRisksResponse> listStackOperationRisks(ListStackOperationRisksRequest request); CompletableFuture<ListStackResourceDriftsResponse> listStackResourceDrifts(ListStackResourceDriftsRequest request); CompletableFuture<ListStackResourcesResponse> listStackResources(ListStackResourcesRequest request); CompletableFuture<ListStacksResponse> listStacks(ListStacksRequest request); CompletableFuture<ListTagKeysResponse> listTagKeys(ListTagKeysRequest request); CompletableFuture<ListTagResourcesResponse> listTagResources(ListTagResourcesRequest request); CompletableFuture<ListTagValuesResponse> listTagValues(ListTagValuesRequest request); CompletableFuture<ListTemplateScratchesResponse> listTemplateScratches(ListTemplateScratchesRequest request); CompletableFuture<ListTemplateVersionsResponse> listTemplateVersions(ListTemplateVersionsRequest request); CompletableFuture<ListTemplatesResponse> listTemplates(ListTemplatesRequest request); CompletableFuture<MoveResourceGroupResponse> moveResourceGroup(MoveResourceGroupRequest request); CompletableFuture<PreviewStackResponse> previewStack(PreviewStackRequest request); CompletableFuture<SetDeletionProtectionResponse> setDeletionProtection(SetDeletionProtectionRequest request); CompletableFuture<SetStackPolicyResponse> setStackPolicy(SetStackPolicyRequest request); CompletableFuture<SetTemplatePermissionResponse> setTemplatePermission(SetTemplatePermissionRequest request); CompletableFuture<SignalResourceResponse> signalResource(SignalResourceRequest request); CompletableFuture<StopStackGroupOperationResponse> stopStackGroupOperation(StopStackGroupOperationRequest request); CompletableFuture<TagResourcesResponse> tagResources(TagResourcesRequest request); CompletableFuture<UntagResourcesResponse> untagResources(UntagResourcesRequest request); CompletableFuture<UpdateStackResponse> updateStack(UpdateStackRequest request); CompletableFuture<UpdateStackGroupResponse> updateStackGroup(UpdateStackGroupRequest request); CompletableFuture<UpdateStackInstancesResponse> updateStackInstances(UpdateStackInstancesRequest request); CompletableFuture<UpdateStackTemplateByResourcesResponse> updateStackTemplateByResources(UpdateStackTemplateByResourcesRequest request); CompletableFuture<UpdateTemplateResponse> updateTemplate(UpdateTemplateRequest request); CompletableFuture<UpdateTemplateScratchResponse> updateTemplateScratch(UpdateTemplateScratchRequest request); CompletableFuture<ValidateTemplateResponse> validateTemplate(ValidateTemplateRequest request); }
0
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun/ros20190910/DefaultAsyncClient.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.ros20190910; import com.aliyun.core.http.*; import com.aliyun.ros20190910.models.*; import darabonba.core.utils.*; import com.aliyun.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import java.util.concurrent.CompletableFuture; /** * <p>Main client.</p> */ public final class DefaultAsyncClient implements AsyncClient { protected final String product; protected final String version; protected final String endpointRule; protected final java.util.Map<String, String> endpointMap; protected final TeaRequest REQUEST; protected final TeaAsyncHandler handler; protected DefaultAsyncClient(ClientConfiguration configuration) { this.handler = new TeaAsyncHandler(configuration); this.product = "ROS"; this.version = "2019-09-10"; this.endpointRule = "central"; this.endpointMap = new java.util.HashMap<>(); this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version); } @Override public CompletableFuture<CancelUpdateStackResponse> cancelUpdateStack(CancelUpdateStackRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CancelUpdateStack").setMethod(HttpMethod.POST).setPathRegex("/V2/CancelUpdateStack").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CancelUpdateStackResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CancelUpdateStackResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ContinueCreateStackResponse> continueCreateStack(ContinueCreateStackRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ContinueCreateStack").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ContinueCreateStackResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ContinueCreateStackResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<CreateChangeSetResponse> createChangeSet(CreateChangeSetRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateChangeSet").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateChangeSetResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateChangeSetResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<CreateStackResponse> createStack(CreateStackRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateStack").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateStackResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateStackResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<CreateStackGroupResponse> createStackGroup(CreateStackGroupRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateStackGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateStackGroupResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateStackGroupResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<CreateStackInstancesResponse> createStackInstances(CreateStackInstancesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateStackInstances").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateStackInstancesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateStackInstancesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<CreateTemplateResponse> createTemplate(CreateTemplateRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateTemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateTemplateResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateTemplateResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<CreateTemplateScratchResponse> createTemplateScratch(CreateTemplateScratchRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateTemplateScratch").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateTemplateScratchResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateTemplateScratchResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<DeleteChangeSetResponse> deleteChangeSet(DeleteChangeSetRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteChangeSet").setMethod(HttpMethod.POST).setPathRegex("/V2/DeleteChangeSet").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteChangeSetResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteChangeSetResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<DeleteStackResponse> deleteStack(DeleteStackRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteStack").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteStackResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteStackResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<DeleteStackGroupResponse> deleteStackGroup(DeleteStackGroupRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteStackGroup").setMethod(HttpMethod.POST).setPathRegex("/V2/DeleteStackGroup").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteStackGroupResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteStackGroupResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<DeleteStackInstancesResponse> deleteStackInstances(DeleteStackInstancesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteStackInstances").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteStackInstancesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteStackInstancesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<DeleteTemplateResponse> deleteTemplate(DeleteTemplateRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteTemplate").setMethod(HttpMethod.POST).setPathRegex("/V2/DeleteTemplate").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteTemplateResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteTemplateResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<DeleteTemplateScratchResponse> deleteTemplateScratch(DeleteTemplateScratchRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteTemplateScratch").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteTemplateScratchResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteTemplateScratchResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<DescribeRegionsResponse> describeRegions(DescribeRegionsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeRegions").setMethod(HttpMethod.POST).setPathRegex("/V2/DescribeRegions").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeRegionsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeRegionsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<DetectStackDriftResponse> detectStackDrift(DetectStackDriftRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DetectStackDrift").setMethod(HttpMethod.POST).setPathRegex("/V2/DetectStackDrift").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DetectStackDriftResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DetectStackDriftResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<DetectStackGroupDriftResponse> detectStackGroupDrift(DetectStackGroupDriftRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DetectStackGroupDrift").setMethod(HttpMethod.POST).setPathRegex("/V2/DetectStackGroupDrift").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DetectStackGroupDriftResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DetectStackGroupDriftResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<DetectStackResourceDriftResponse> detectStackResourceDrift(DetectStackResourceDriftRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DetectStackResourceDrift").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DetectStackResourceDriftResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DetectStackResourceDriftResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ExecuteChangeSetResponse> executeChangeSet(ExecuteChangeSetRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ExecuteChangeSet").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ExecuteChangeSetResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ExecuteChangeSetResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GenerateTemplateByScratchResponse> generateTemplateByScratch(GenerateTemplateByScratchRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GenerateTemplateByScratch").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GenerateTemplateByScratchResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GenerateTemplateByScratchResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GenerateTemplatePolicyResponse> generateTemplatePolicy(GenerateTemplatePolicyRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GenerateTemplatePolicy").setMethod(HttpMethod.POST).setPathRegex("/V2/GenerateTemplatePolicy").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GenerateTemplatePolicyResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GenerateTemplatePolicyResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetChangeSetResponse> getChangeSet(GetChangeSetRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetChangeSet").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetChangeSetResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetChangeSetResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetFeatureDetailsResponse> getFeatureDetails(GetFeatureDetailsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetFeatureDetails").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetFeatureDetailsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetFeatureDetailsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetResourceTypeResponse> getResourceType(GetResourceTypeRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetResourceType").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetResourceTypeResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetResourceTypeResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetResourceTypeTemplateResponse> getResourceTypeTemplate(GetResourceTypeTemplateRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetResourceTypeTemplate").setMethod(HttpMethod.POST).setPathRegex("/V2/GetResourceTypeTemplate").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetResourceTypeTemplateResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetResourceTypeTemplateResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetServiceProvisionsResponse> getServiceProvisions(GetServiceProvisionsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetServiceProvisions").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetServiceProvisionsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetServiceProvisionsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetStackResponse> getStack(GetStackRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetStack").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetStackResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetStackResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetStackDriftDetectionStatusResponse> getStackDriftDetectionStatus(GetStackDriftDetectionStatusRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetStackDriftDetectionStatus").setMethod(HttpMethod.POST).setPathRegex("/V2/GetStackDriftDetectionStatus").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetStackDriftDetectionStatusResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetStackDriftDetectionStatusResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetStackGroupResponse> getStackGroup(GetStackGroupRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetStackGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetStackGroupResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetStackGroupResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetStackGroupOperationResponse> getStackGroupOperation(GetStackGroupOperationRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetStackGroupOperation").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetStackGroupOperationResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetStackGroupOperationResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetStackInstanceResponse> getStackInstance(GetStackInstanceRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetStackInstance").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetStackInstanceResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetStackInstanceResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetStackPolicyResponse> getStackPolicy(GetStackPolicyRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetStackPolicy").setMethod(HttpMethod.POST).setPathRegex("/V2/GetStackPolicy").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetStackPolicyResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetStackPolicyResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetStackResourceResponse> getStackResource(GetStackResourceRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetStackResource").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetStackResourceResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetStackResourceResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetTemplateResponse> getTemplate(GetTemplateRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetTemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetTemplateResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetTemplateResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetTemplateEstimateCostResponse> getTemplateEstimateCost(GetTemplateEstimateCostRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetTemplateEstimateCost").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetTemplateEstimateCostResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetTemplateEstimateCostResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetTemplateParameterConstraintsResponse> getTemplateParameterConstraints(GetTemplateParameterConstraintsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetTemplateParameterConstraints").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetTemplateParameterConstraintsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetTemplateParameterConstraintsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetTemplateScratchResponse> getTemplateScratch(GetTemplateScratchRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetTemplateScratch").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetTemplateScratchResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetTemplateScratchResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<GetTemplateSummaryResponse> getTemplateSummary(GetTemplateSummaryRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetTemplateSummary").setMethod(HttpMethod.POST).setPathRegex("/V2/GetTemplateSummary").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetTemplateSummaryResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetTemplateSummaryResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListChangeSetsResponse> listChangeSets(ListChangeSetsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListChangeSets").setMethod(HttpMethod.POST).setPathRegex("/V2/ListChangeSets").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListChangeSetsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListChangeSetsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListResourceTypesResponse> listResourceTypes(ListResourceTypesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListResourceTypes").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListResourceTypesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListResourceTypesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListStackEventsResponse> listStackEvents(ListStackEventsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListStackEvents").setMethod(HttpMethod.POST).setPathRegex("/V2/ListStackEvents").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListStackEventsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListStackEventsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListStackGroupOperationResultsResponse> listStackGroupOperationResults(ListStackGroupOperationResultsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListStackGroupOperationResults").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListStackGroupOperationResultsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListStackGroupOperationResultsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListStackGroupOperationsResponse> listStackGroupOperations(ListStackGroupOperationsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListStackGroupOperations").setMethod(HttpMethod.POST).setPathRegex("/V2/ListStackGroupOperations").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListStackGroupOperationsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListStackGroupOperationsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListStackGroupsResponse> listStackGroups(ListStackGroupsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListStackGroups").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListStackGroupsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListStackGroupsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListStackInstancesResponse> listStackInstances(ListStackInstancesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListStackInstances").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListStackInstancesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListStackInstancesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListStackOperationRisksResponse> listStackOperationRisks(ListStackOperationRisksRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListStackOperationRisks").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListStackOperationRisksResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListStackOperationRisksResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListStackResourceDriftsResponse> listStackResourceDrifts(ListStackResourceDriftsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListStackResourceDrifts").setMethod(HttpMethod.POST).setPathRegex("/V2/ListStackResourceDrifts").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListStackResourceDriftsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListStackResourceDriftsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListStackResourcesResponse> listStackResources(ListStackResourcesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListStackResources").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListStackResourcesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListStackResourcesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListStacksResponse> listStacks(ListStacksRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListStacks").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListStacksResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListStacksResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListTagKeysResponse> listTagKeys(ListTagKeysRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListTagKeys").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListTagKeysResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListTagKeysResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListTagResourcesResponse> listTagResources(ListTagResourcesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListTagResources").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListTagResourcesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListTagResourcesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListTagValuesResponse> listTagValues(ListTagValuesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListTagValues").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListTagValuesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListTagValuesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListTemplateScratchesResponse> listTemplateScratches(ListTemplateScratchesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListTemplateScratches").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListTemplateScratchesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListTemplateScratchesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListTemplateVersionsResponse> listTemplateVersions(ListTemplateVersionsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListTemplateVersions").setMethod(HttpMethod.POST).setPathRegex("/V2/ListTemplateVersions").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListTemplateVersionsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListTemplateVersionsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ListTemplatesResponse> listTemplates(ListTemplatesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListTemplates").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListTemplatesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListTemplatesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<MoveResourceGroupResponse> moveResourceGroup(MoveResourceGroupRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("MoveResourceGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(MoveResourceGroupResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<MoveResourceGroupResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<PreviewStackResponse> previewStack(PreviewStackRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("PreviewStack").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(PreviewStackResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<PreviewStackResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<SetDeletionProtectionResponse> setDeletionProtection(SetDeletionProtectionRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SetDeletionProtection").setMethod(HttpMethod.POST).setPathRegex("/V2/SetDeletionProtection").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SetDeletionProtectionResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<SetDeletionProtectionResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<SetStackPolicyResponse> setStackPolicy(SetStackPolicyRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SetStackPolicy").setMethod(HttpMethod.POST).setPathRegex("/V2/SetStackPolicy").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SetStackPolicyResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<SetStackPolicyResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<SetTemplatePermissionResponse> setTemplatePermission(SetTemplatePermissionRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SetTemplatePermission").setMethod(HttpMethod.POST).setPathRegex("/V2/SetTemplatePermission").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SetTemplatePermissionResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<SetTemplatePermissionResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<SignalResourceResponse> signalResource(SignalResourceRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SignalResource").setMethod(HttpMethod.POST).setPathRegex("/V2/SignalResource").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SignalResourceResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<SignalResourceResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<StopStackGroupOperationResponse> stopStackGroupOperation(StopStackGroupOperationRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("StopStackGroupOperation").setMethod(HttpMethod.POST).setPathRegex("/V2/StopStackGroupOperation").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StopStackGroupOperationResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<StopStackGroupOperationResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<TagResourcesResponse> tagResources(TagResourcesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("TagResources").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(TagResourcesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<TagResourcesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<UntagResourcesResponse> untagResources(UntagResourcesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UntagResources").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UntagResourcesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UntagResourcesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<UpdateStackResponse> updateStack(UpdateStackRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateStack").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateStackResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UpdateStackResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<UpdateStackGroupResponse> updateStackGroup(UpdateStackGroupRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateStackGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateStackGroupResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UpdateStackGroupResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<UpdateStackInstancesResponse> updateStackInstances(UpdateStackInstancesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateStackInstances").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateStackInstancesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UpdateStackInstancesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<UpdateStackTemplateByResourcesResponse> updateStackTemplateByResources(UpdateStackTemplateByResourcesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateStackTemplateByResources").setMethod(HttpMethod.POST).setPathRegex("/V2/UpdateStackTemplateByResources").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateStackTemplateByResourcesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UpdateStackTemplateByResourcesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<UpdateTemplateResponse> updateTemplate(UpdateTemplateRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateTemplate").setMethod(HttpMethod.POST).setPathRegex("/V2/UpdateTemplate").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateTemplateResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UpdateTemplateResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<UpdateTemplateScratchResponse> updateTemplateScratch(UpdateTemplateScratchRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateTemplateScratch").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateTemplateScratchResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UpdateTemplateScratchResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } @Override public CompletableFuture<ValidateTemplateResponse> validateTemplate(ValidateTemplateRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ValidateTemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.NONE).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ValidateTemplateResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ValidateTemplateResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun/ros20190910/DefaultAsyncClientBuilder.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.ros20190910; import com.aliyun.pop.BaseClientBuilder; public final class DefaultAsyncClientBuilder extends BaseClientBuilder<DefaultAsyncClientBuilder, AsyncClient> { @Override protected String serviceName() { return "ros"; } @Override protected final AsyncClient buildClient() { return new DefaultAsyncClient(super.applyClientConfiguration()); } }
0
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun/ros20190910/models/CancelUpdateStackRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.ros20190910.models; import com.aliyun.core.annotation.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; /** * {@link CancelUpdateStackRequest} extends {@link RequestModel} * * <p>CancelUpdateStackRequest</p> */ public class CancelUpdateStackRequest extends Request { @Query @NameInMap("CancelType") private String cancelType; @Query @NameInMap("RegionId") private String regionId; @Query @NameInMap("StackId") private String stackId; private CancelUpdateStackRequest(Builder builder) { super(builder); this.cancelType = builder.cancelType; this.regionId = builder.regionId; this.stackId = builder.stackId; } public static Builder builder() { return new Builder(); } public static CancelUpdateStackRequest create() { return builder().build(); } /** * @return cancelType */ public String getCancelType() { return this.cancelType; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return stackId */ public String getStackId() { return this.stackId; } public static final class Builder extends Request.Builder<Builder> { private String cancelType; private String regionId; private String stackId; /** * <p>CancelType.</p> */ public Builder cancelType(String cancelType) { this.putQueryParameter("CancelType", cancelType); this.cancelType = cancelType; return this; } /** * <p>RegionId.</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>StackId.</p> */ public Builder stackId(String stackId) { this.putQueryParameter("StackId", stackId); this.stackId = stackId; return this; } public CancelUpdateStackRequest build() { return new CancelUpdateStackRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun/ros20190910/models/CancelUpdateStackResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.ros20190910.models; import com.aliyun.core.annotation.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; /** * {@link CancelUpdateStackResponse} extends {@link TeaModel} * * <p>CancelUpdateStackResponse</p> */ public class CancelUpdateStackResponse extends Response { @NameInMap("headers") @Validation(required = true) private java.util.Map < String, String > headers; @NameInMap("body") @Validation(required = true) private CancelUpdateStackResponseBody body; private CancelUpdateStackResponse(Builder builder) { super(builder); this.headers = builder.headers; this.body = builder.body; } public static Builder builder() { return new Builder(); } public static CancelUpdateStackResponse create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return headers */ public java.util.Map < String, String > getHeaders() { return this.headers; } /** * @return body */ public CancelUpdateStackResponseBody getBody() { return this.body; } public static final class Builder extends Response.Builder { private java.util.Map < String, String > headers; private CancelUpdateStackResponseBody body; private Builder() { super(); } private Builder(CancelUpdateStackResponse response) { super(response); this.headers = response.headers; this.body = response.body; } /** * <p>headers.</p> */ public Builder headers(java.util.Map < String, String > headers) { this.headers = headers; return this; } /** * <p>body.</p> */ public Builder body(CancelUpdateStackResponseBody body) { this.body = body; return this; } public CancelUpdateStackResponse build() { return new CancelUpdateStackResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun/ros20190910/models/CancelUpdateStackResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.ros20190910.models; import com.aliyun.core.annotation.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; /** * {@link CancelUpdateStackResponseBody} extends {@link TeaModel} * * <p>CancelUpdateStackResponseBody</p> */ public class CancelUpdateStackResponseBody extends TeaModel { @NameInMap("RequestId") private String requestId; private CancelUpdateStackResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CancelUpdateStackResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; /** * <p>RequestId.</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CancelUpdateStackResponseBody build() { return new CancelUpdateStackResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun/ros20190910/models/ContinueCreateStackRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.ros20190910.models; import com.aliyun.core.annotation.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; /** * {@link ContinueCreateStackRequest} extends {@link RequestModel} * * <p>ContinueCreateStackRequest</p> */ public class ContinueCreateStackRequest extends Request { @Query @NameInMap("DryRun") private Boolean dryRun; @Query @NameInMap("Mode") private String mode; @Query @NameInMap("Parallelism") private Long parallelism; @Query @NameInMap("Parameters") private java.util.List < Parameters> parameters; @Query @NameInMap("RamRoleName") private String ramRoleName; @Query @NameInMap("RecreatingResources") private java.util.List < String > recreatingResources; @Query @NameInMap("RegionId") private String regionId; @Query @NameInMap("StackId") private String stackId; @Query @NameInMap("TemplateBody") private String templateBody; @Query @NameInMap("TemplateId") private String templateId; @Query @NameInMap("TemplateURL") private String templateURL; @Query @NameInMap("TemplateVersion") private String templateVersion; private ContinueCreateStackRequest(Builder builder) { super(builder); this.dryRun = builder.dryRun; this.mode = builder.mode; this.parallelism = builder.parallelism; this.parameters = builder.parameters; this.ramRoleName = builder.ramRoleName; this.recreatingResources = builder.recreatingResources; 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 ContinueCreateStackRequest create() { return builder().build(); } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return mode */ public String getMode() { return this.mode; } /** * @return parallelism */ public Long getParallelism() { return this.parallelism; } /** * @return parameters */ public java.util.List < Parameters> getParameters() { return this.parameters; } /** * @return ramRoleName */ public String getRamRoleName() { return this.ramRoleName; } /** * @return recreatingResources */ public java.util.List < String > getRecreatingResources() { return this.recreatingResources; } /** * @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<Builder> { private Boolean dryRun; private String mode; private Long parallelism; private java.util.List < Parameters> parameters; private String ramRoleName; private java.util.List < String > recreatingResources; private String regionId; private String stackId; private String templateBody; private String templateId; private String templateURL; private String templateVersion; /** * <p>DryRun.</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>Mode.</p> */ public Builder mode(String mode) { this.putQueryParameter("Mode", mode); this.mode = mode; return this; } /** * <p>Parallelism.</p> */ public Builder parallelism(Long parallelism) { this.putQueryParameter("Parallelism", parallelism); this.parallelism = parallelism; return this; } /** * <p>Parameters.</p> */ public Builder parameters(java.util.List < Parameters> parameters) { this.putQueryParameter("Parameters", parameters); this.parameters = parameters; return this; } /** * <p>RamRoleName.</p> */ public Builder ramRoleName(String ramRoleName) { this.putQueryParameter("RamRoleName", ramRoleName); this.ramRoleName = ramRoleName; return this; } /** * <p>RecreatingResources.</p> */ public Builder recreatingResources(java.util.List < String > recreatingResources) { this.putQueryParameter("RecreatingResources", recreatingResources); this.recreatingResources = recreatingResources; return this; } /** * <p>RegionId.</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>StackId.</p> */ public Builder stackId(String stackId) { this.putQueryParameter("StackId", stackId); this.stackId = stackId; return this; } /** * <p>TemplateBody.</p> */ public Builder templateBody(String templateBody) { this.putQueryParameter("TemplateBody", templateBody); this.templateBody = templateBody; return this; } /** * <p>TemplateId.</p> */ public Builder templateId(String templateId) { this.putQueryParameter("TemplateId", templateId); this.templateId = templateId; return this; } /** * <p>TemplateURL.</p> */ public Builder templateURL(String templateURL) { this.putQueryParameter("TemplateURL", templateURL); this.templateURL = templateURL; return this; } /** * <p>TemplateVersion.</p> */ public Builder templateVersion(String templateVersion) { this.putQueryParameter("TemplateVersion", templateVersion); this.templateVersion = templateVersion; return this; } public ContinueCreateStackRequest build() { return new ContinueCreateStackRequest(this); } } public static class Parameters extends TeaModel { @NameInMap("ParameterKey") private String parameterKey; @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; /** * <p>ParameterKey.</p> */ public Builder parameterKey(String parameterKey) { this.parameterKey = parameterKey; return this; } /** * <p>ParameterValue.</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-async/1.1.0-beta/com/aliyun/ros20190910
java-sources/com/aliyun/alibabacloud-ros20190910-async/1.1.0-beta/com/aliyun/ros20190910/models/ContinueCreateStackResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.ros20190910.models; import com.aliyun.core.annotation.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; /** * {@link ContinueCreateStackResponse} extends {@link TeaModel} * * <p>ContinueCreateStackResponse</p> */ public class ContinueCreateStackResponse extends Response { @NameInMap("headers") @Validation(required = true) private java.util.Map < String, String > headers; @NameInMap("body") @Validation(required = true) private ContinueCreateStackResponseBody body; private ContinueCreateStackResponse(Builder builder) { super(builder); this.headers = builder.headers; this.body = builder.body; } public static Builder builder() { return new Builder(); } public static ContinueCreateStackResponse create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return headers */ public java.util.Map < String, String > getHeaders() { return this.headers; } /** * @return body */ public ContinueCreateStackResponseBody getBody() { return this.body; } public static final class Builder extends Response.Builder { private java.util.Map < String, String > headers; private ContinueCreateStackResponseBody body; private Builder() { super(); } private Builder(ContinueCreateStackResponse response) { super(response); this.headers = response.headers; this.body = response.body; } /** * <p>headers.</p> */ public Builder headers(java.util.Map < String, String > headers) { this.headers = headers; return this; } /** * <p>body.</p> */ public Builder body(ContinueCreateStackResponseBody body) { this.body = body; return this; } public ContinueCreateStackResponse build() { return new ContinueCreateStackResponse(this); } } }