index
int64
repo_id
string
file_path
string
content
string
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DeleteSourceServerRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DeleteSourceServerRequest} extends {@link RequestModel} * * <p>DeleteSourceServerRequest</p> */ public class DeleteSourceServerRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Force") private Boolean force; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceId") @com.aliyun.core.annotation.Validation(required = true) private String sourceId; private DeleteSourceServerRequest(Builder builder) { super(builder); this.force = builder.force; this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.sourceId = builder.sourceId; } public static Builder builder() { return new Builder(); } public static DeleteSourceServerRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return force */ public Boolean getForce() { return this.force; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return sourceId */ public String getSourceId() { return this.sourceId; } public static final class Builder extends Request.Builder<DeleteSourceServerRequest, Builder> { private Boolean force; private Long ownerId; private String resourceOwnerAccount; private String sourceId; private Builder() { super(); } private Builder(DeleteSourceServerRequest request) { super(request); this.force = request.force; this.ownerId = request.ownerId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.sourceId = request.sourceId; } /** * <p>Specifies whether to forcibly delete the migration source. Valid values:</p> * <ul> * <li>true: forcibly deletes the migration source and the migration job created for the migration source, and releases the intermediate resources of the migration job.</li> * <li>false: does not delete the migration source if a migration job is created for the migration source.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder force(Boolean force) { this.putQueryParameter("Force", force); this.force = force; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The migration source ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>s-bp17m1vi6x20c6g6****</p> */ public Builder sourceId(String sourceId) { this.putQueryParameter("SourceId", sourceId); this.sourceId = sourceId; return this; } @Override public DeleteSourceServerRequest build() { return new DeleteSourceServerRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DeleteSourceServerResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DeleteSourceServerResponse} extends {@link TeaModel} * * <p>DeleteSourceServerResponse</p> */ public class DeleteSourceServerResponse 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 DeleteSourceServerResponseBody body; private DeleteSourceServerResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteSourceServerResponse 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 DeleteSourceServerResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteSourceServerResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteSourceServerResponseBody body); @Override DeleteSourceServerResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteSourceServerResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteSourceServerResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteSourceServerResponse 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(DeleteSourceServerResponseBody body) { this.body = body; return this; } @Override public DeleteSourceServerResponse build() { return new DeleteSourceServerResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DeleteSourceServerResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DeleteSourceServerResponseBody} extends {@link TeaModel} * * <p>DeleteSourceServerResponseBody</p> */ public class DeleteSourceServerResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteSourceServerResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteSourceServerResponseBody 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(DeleteSourceServerResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteSourceServerResponseBody build() { return new DeleteSourceServerResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DeleteWorkgroupRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DeleteWorkgroupRequest} extends {@link RequestModel} * * <p>DeleteWorkgroupRequest</p> */ public class DeleteWorkgroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("WorkgroupId") @com.aliyun.core.annotation.Validation(required = true) private String workgroupId; private DeleteWorkgroupRequest(Builder builder) { super(builder); this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.workgroupId = builder.workgroupId; } public static Builder builder() { return new Builder(); } public static DeleteWorkgroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return workgroupId */ public String getWorkgroupId() { return this.workgroupId; } public static final class Builder extends Request.Builder<DeleteWorkgroupRequest, Builder> { private Long ownerId; private String resourceOwnerAccount; private String workgroupId; private Builder() { super(); } private Builder(DeleteWorkgroupRequest request) { super(request); this.ownerId = request.ownerId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.workgroupId = request.workgroupId; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The ID of the workgroup.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>w-***</p> */ public Builder workgroupId(String workgroupId) { this.putQueryParameter("WorkgroupId", workgroupId); this.workgroupId = workgroupId; return this; } @Override public DeleteWorkgroupRequest build() { return new DeleteWorkgroupRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DeleteWorkgroupResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DeleteWorkgroupResponse} extends {@link TeaModel} * * <p>DeleteWorkgroupResponse</p> */ public class DeleteWorkgroupResponse 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 DeleteWorkgroupResponseBody body; private DeleteWorkgroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteWorkgroupResponse 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 DeleteWorkgroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteWorkgroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteWorkgroupResponseBody body); @Override DeleteWorkgroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteWorkgroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteWorkgroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteWorkgroupResponse 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(DeleteWorkgroupResponseBody body) { this.body = body; return this; } @Override public DeleteWorkgroupResponse build() { return new DeleteWorkgroupResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DeleteWorkgroupResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DeleteWorkgroupResponseBody} extends {@link TeaModel} * * <p>DeleteWorkgroupResponseBody</p> */ public class DeleteWorkgroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteWorkgroupResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteWorkgroupResponseBody 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(DeleteWorkgroupResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>410E6073-66D0-45D3-AB3E-4DC3F5E4****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteWorkgroupResponseBody build() { return new DeleteWorkgroupResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DescribeReplicationJobsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DescribeReplicationJobsRequest} extends {@link RequestModel} * * <p>DescribeReplicationJobsRequest</p> */ public class DescribeReplicationJobsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BusinessStatus") private String businessStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") private java.util.List<String> instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("JobId") private java.util.List<String> jobId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("JobType") private Integer jobType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @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") @com.aliyun.core.annotation.Validation(maximum = 50) private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") 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("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceId") private java.util.List<String> sourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private DescribeReplicationJobsRequest(Builder builder) { super(builder); this.businessStatus = builder.businessStatus; this.instanceId = builder.instanceId; this.jobId = builder.jobId; this.jobType = builder.jobType; this.name = builder.name; this.ownerId = builder.ownerId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.sourceId = builder.sourceId; this.status = builder.status; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static DescribeReplicationJobsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return businessStatus */ public String getBusinessStatus() { return this.businessStatus; } /** * @return instanceId */ public java.util.List<String> getInstanceId() { return this.instanceId; } /** * @return jobId */ public java.util.List<String> getJobId() { return this.jobId; } /** * @return jobType */ public Integer getJobType() { return this.jobType; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @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 resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return sourceId */ public java.util.List<String> getSourceId() { return this.sourceId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<DescribeReplicationJobsRequest, Builder> { private String businessStatus; private java.util.List<String> instanceId; private java.util.List<String> jobId; private Integer jobType; private String name; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private java.util.List<String> sourceId; private String status; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(DescribeReplicationJobsRequest request) { super(request); this.businessStatus = request.businessStatus; this.instanceId = request.instanceId; this.jobId = request.jobId; this.jobType = request.jobType; this.name = request.name; this.ownerId = request.ownerId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.sourceId = request.sourceId; this.status = request.status; this.tag = request.tag; } /** * <p>The business status of the migration job. Valid values:</p> * <ul> * <li>Preparing: The migration is being prepared.</li> * <li>Syncing: Data is being synchronized.</li> * <li>Processing: The migration is in progress.</li> * <li>Cleaning: Intermediate resources are being released.</li> * </ul> * * <strong>example:</strong> * <p>Preparing</p> */ public Builder businessStatus(String businessStatus) { this.putQueryParameter("BusinessStatus", businessStatus); this.businessStatus = businessStatus; return this; } /** * <p>The IDs of the destination Elastic Compute Service (ECS) instances.</p> */ public Builder instanceId(java.util.List<String> instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The IDs of the migration jobs. You can specify a maximum of 50 IDs.</p> * * <strong>example:</strong> * <p>j-bp19vlwm0tyigbmj****</p> */ public Builder jobId(java.util.List<String> jobId) { this.putQueryParameter("JobId", jobId); this.jobId = jobId; return this; } /** * <p>The type of the migration job. Valid values:</p> * <ul> * <li>0: server migration.</li> * <li>1: operating system migration.</li> * <li>2: cross-zone migration.</li> * <li>3: agentless migration for a VMware VM.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder jobType(Integer jobType) { this.putQueryParameter("JobType", jobType); this.jobType = jobType; return this; } /** * <p>The name of the migration job.</p> * * <strong>example:</strong> * <p>testMigrationTaskName</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The page number. Minimum value: 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 per page. Valid values: 1 to 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 ID of the Alibaba Cloud region to which you want to migrate the source server.</p> * <p>For example, if you want to migrate a source server to the China (Hangzhou) region, set this parameter to <code>cn-hangzhou</code>. You can call the <a href="https://help.aliyun.com/document_detail/25609.html">DescribeRegions</a> operation to query the latest regions.</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-acfmw3ty5y7****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The IDs of the source servers. You can specify a maximum of 50 IDs.</p> * * <strong>example:</strong> * <p>s-bp1e2fsl57knvuug****</p> */ public Builder sourceId(java.util.List<String> sourceId) { this.putQueryParameter("SourceId", sourceId); this.sourceId = sourceId; return this; } /** * <p>The status of the migration job. Valid values:</p> * <ul> * <li>Ready: The migration job is not started.</li> * <li>Running: The migration job is running.</li> * <li>Stopped: The migration job is paused.</li> * <li>InError: An error occurs in the migration job.</li> * <li>Finished: The migration job is complete.</li> * <li>Waiting: The migration job is waiting to run.</li> * <li>Expired: The migration job has expired.</li> * <li>Deleting: The migration job is being deleted.</li> * </ul> * * <strong>example:</strong> * <p>Ready</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } /** * <p>The information about tags that are attached to the SMC resource.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public DescribeReplicationJobsRequest build() { return new DescribeReplicationJobsRequest(this); } } /** * * {@link DescribeReplicationJobsRequest} extends {@link TeaModel} * * <p>DescribeReplicationJobsRequest</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 N that is added to the SMC resource. Valid values of N: 1 to 20.</p> * <p>The tag key can be an empty string. It can be up to 64 characters in length and cannot contain http:// or https://.</p> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N that is added to the SMC resource. Valid values of N: 1 to 20.</p> * <p>The tag value can be an empty string. It can be up to 64 characters in length and cannot contain http:// or https://.<a href="http://https://%E3%80%82"></a></p> * * <strong>example:</strong> * <p>TestValue</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DescribeReplicationJobsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DescribeReplicationJobsResponse} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponse</p> */ public class DescribeReplicationJobsResponse 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 DescribeReplicationJobsResponseBody body; private DescribeReplicationJobsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeReplicationJobsResponse 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 DescribeReplicationJobsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeReplicationJobsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeReplicationJobsResponseBody body); @Override DescribeReplicationJobsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeReplicationJobsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeReplicationJobsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeReplicationJobsResponse 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(DescribeReplicationJobsResponseBody body) { this.body = body; return this; } @Override public DescribeReplicationJobsResponse build() { return new DescribeReplicationJobsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DescribeReplicationJobsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public class DescribeReplicationJobsResponseBody 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("ReplicationJobs") private ReplicationJobs replicationJobs; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeReplicationJobsResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.replicationJobs = builder.replicationJobs; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeReplicationJobsResponseBody 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 replicationJobs */ public ReplicationJobs getReplicationJobs() { return this.replicationJobs; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private ReplicationJobs replicationJobs; private String requestId; private Integer totalCount; private Builder() { } private Builder(DescribeReplicationJobsResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.replicationJobs = model.replicationJobs; this.requestId = model.requestId; 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 on each page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The details of migration jobs.</p> */ public Builder replicationJobs(ReplicationJobs replicationJobs) { this.replicationJobs = replicationJobs; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>6E1187E8-843A-4850-B97E-2F17F00D48F7</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of migration jobs returned.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeReplicationJobsResponseBody build() { return new DescribeReplicationJobsResponseBody(this); } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class Part extends TeaModel { @com.aliyun.core.annotation.NameInMap("Block") private Boolean block; @com.aliyun.core.annotation.NameInMap("Device") private String device; @com.aliyun.core.annotation.NameInMap("SizeBytes") private Long sizeBytes; private Part(Builder builder) { this.block = builder.block; this.device = builder.device; this.sizeBytes = builder.sizeBytes; } public static Builder builder() { return new Builder(); } public static Part create() { return builder().build(); } /** * @return block */ public Boolean getBlock() { return this.block; } /** * @return device */ public String getDevice() { return this.device; } /** * @return sizeBytes */ public Long getSizeBytes() { return this.sizeBytes; } public static final class Builder { private Boolean block; private String device; private Long sizeBytes; private Builder() { } private Builder(Part model) { this.block = model.block; this.device = model.device; this.sizeBytes = model.sizeBytes; } /** * <p>Indicates whether block replication is enabled for the data disk partition.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder block(Boolean block) { this.block = block; return this; } /** * <p>The device ID of the data disk partition.</p> * * <strong>example:</strong> * <p>0_1</p> */ public Builder device(String device) { this.device = device; return this; } /** * <p>The size of the data disk partition. Unit: bytes.</p> * * <strong>example:</strong> * <p>21474836480</p> */ public Builder sizeBytes(Long sizeBytes) { this.sizeBytes = sizeBytes; return this; } public Part build() { return new Part(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class Parts extends TeaModel { @com.aliyun.core.annotation.NameInMap("Part") private java.util.List<Part> part; private Parts(Builder builder) { this.part = builder.part; } public static Builder builder() { return new Builder(); } public static Parts create() { return builder().build(); } /** * @return part */ public java.util.List<Part> getPart() { return this.part; } public static final class Builder { private java.util.List<Part> part; private Builder() { } private Builder(Parts model) { this.part = model.part; } /** * Part. */ public Builder part(java.util.List<Part> part) { this.part = part; return this; } public Parts build() { return new Parts(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class DataDisk extends TeaModel { @com.aliyun.core.annotation.NameInMap("Index") private Integer index; @com.aliyun.core.annotation.NameInMap("Parts") private Parts parts; @com.aliyun.core.annotation.NameInMap("Size") private Integer size; private DataDisk(Builder builder) { this.index = builder.index; this.parts = builder.parts; this.size = builder.size; } public static Builder builder() { return new Builder(); } public static DataDisk create() { return builder().build(); } /** * @return index */ public Integer getIndex() { return this.index; } /** * @return parts */ public Parts getParts() { return this.parts; } /** * @return size */ public Integer getSize() { return this.size; } public static final class Builder { private Integer index; private Parts parts; private Integer size; private Builder() { } private Builder(DataDisk model) { this.index = model.index; this.parts = model.parts; this.size = model.size; } /** * <p>The index number of the data disk.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder index(Integer index) { this.index = index; return this; } /** * <p>The data disk partitions.</p> */ public Builder parts(Parts parts) { this.parts = parts; return this; } /** * <p>The size of the data disk. Unit: GiB.</p> * * <strong>example:</strong> * <p>40</p> */ public Builder size(Integer size) { this.size = size; return this; } public DataDisk build() { return new DataDisk(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class DataDisks extends TeaModel { @com.aliyun.core.annotation.NameInMap("DataDisk") private java.util.List<DataDisk> dataDisk; private DataDisks(Builder builder) { this.dataDisk = builder.dataDisk; } public static Builder builder() { return new Builder(); } public static DataDisks create() { return builder().build(); } /** * @return dataDisk */ public java.util.List<DataDisk> getDataDisk() { return this.dataDisk; } public static final class Builder { private java.util.List<DataDisk> dataDisk; private Builder() { } private Builder(DataDisks model) { this.dataDisk = model.dataDisk; } /** * DataDisk. */ public Builder dataDisk(java.util.List<DataDisk> dataDisk) { this.dataDisk = dataDisk; return this; } public DataDisks build() { return new DataDisks(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class PartsPart extends TeaModel { @com.aliyun.core.annotation.NameInMap("Block") private Boolean block; @com.aliyun.core.annotation.NameInMap("Path") private String path; @com.aliyun.core.annotation.NameInMap("SizeBytes") private Long sizeBytes; private PartsPart(Builder builder) { this.block = builder.block; this.path = builder.path; this.sizeBytes = builder.sizeBytes; } public static Builder builder() { return new Builder(); } public static PartsPart create() { return builder().build(); } /** * @return block */ public Boolean getBlock() { return this.block; } /** * @return path */ public String getPath() { return this.path; } /** * @return sizeBytes */ public Long getSizeBytes() { return this.sizeBytes; } public static final class Builder { private Boolean block; private String path; private Long sizeBytes; private Builder() { } private Builder(PartsPart model) { this.block = model.block; this.path = model.path; this.sizeBytes = model.sizeBytes; } /** * <p>Whether block replication is enabled for the data disk partition. Valid values:</p> * <ul> * <li>true: Block replication is enabled for the data disk partition.</li> * <li>false: Block replication is disabled for the data disk partition.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder block(Boolean block) { this.block = block; return this; } /** * <p>The path of the data disk partition.</p> * * <strong>example:</strong> * <p>/home/data</p> */ public Builder path(String path) { this.path = path; return this; } /** * <p>The size of the data disk partition. Unit: bytes.</p> * * <strong>example:</strong> * <p>21474836480</p> */ public Builder sizeBytes(Long sizeBytes) { this.sizeBytes = sizeBytes; return this; } public PartsPart build() { return new PartsPart(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class DataParts extends TeaModel { @com.aliyun.core.annotation.NameInMap("Part") private java.util.List<PartsPart> part; private DataParts(Builder builder) { this.part = builder.part; } public static Builder builder() { return new Builder(); } public static DataParts create() { return builder().build(); } /** * @return part */ public java.util.List<PartsPart> getPart() { return this.part; } public static final class Builder { private java.util.List<PartsPart> part; private Builder() { } private Builder(DataParts model) { this.part = model.part; } /** * Part. */ public Builder part(java.util.List<PartsPart> part) { this.part = part; return this; } public DataParts build() { return new DataParts(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("DiskId") private String diskId; @com.aliyun.core.annotation.NameInMap("LVM") private Boolean LVM; @com.aliyun.core.annotation.NameInMap("Parts") private DataParts parts; @com.aliyun.core.annotation.NameInMap("Size") private Integer size; private Data(Builder builder) { this.diskId = builder.diskId; this.LVM = builder.LVM; this.parts = builder.parts; this.size = builder.size; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return diskId */ public String getDiskId() { return this.diskId; } /** * @return LVM */ public Boolean getLVM() { return this.LVM; } /** * @return parts */ public DataParts getParts() { return this.parts; } /** * @return size */ public Integer getSize() { return this.size; } public static final class Builder { private String diskId; private Boolean LVM; private DataParts parts; private Integer size; private Builder() { } private Builder(Data model) { this.diskId = model.diskId; this.LVM = model.LVM; this.parts = model.parts; this.size = model.size; } /** * <p>The ID of the data disk.</p> * * <strong>example:</strong> * <p>d-2zeh4twm100qskw7z41z</p> */ public Builder diskId(String diskId) { this.diskId = diskId; return this; } /** * <p>Specifies whether to use LVM. Valid values:</p> * <ul> * <li>true: Use LVM.</li> * <li>false: Not use LVM.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder LVM(Boolean LVM) { this.LVM = LVM; return this; } /** * <p>The information about the data disk partition.</p> */ public Builder parts(DataParts parts) { this.parts = parts; return this; } /** * <p>The size of a data disk on the destination ECS instance. Unit: GiB. Valid values: 20 to 32768.</p> * <blockquote> * <p> The size of a destination data disk must be larger than the size of data in the corresponding source data disk. For example, if the size of the source disk is 500 GiB but the actual used space is 100 GiB, you must set this parameter to a value greater than 100 GiB.</p> * </blockquote> * * <strong>example:</strong> * <p>22548578304</p> */ public Builder size(Integer size) { this.size = size; return this; } public Data build() { return new Data(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class DisksData extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; private DisksData(Builder builder) { this.data = builder.data; } public static Builder builder() { return new Builder(); } public static DisksData create() { return builder().build(); } /** * @return data */ public java.util.List<Data> getData() { return this.data; } public static final class Builder { private java.util.List<Data> data; private Builder() { } private Builder(DisksData model) { this.data = model.data; } /** * Data. */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } public DisksData build() { return new DisksData(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class SystemPartsPart extends TeaModel { @com.aliyun.core.annotation.NameInMap("Block") private Boolean block; @com.aliyun.core.annotation.NameInMap("Path") private String path; @com.aliyun.core.annotation.NameInMap("SizeBytes") private Long sizeBytes; private SystemPartsPart(Builder builder) { this.block = builder.block; this.path = builder.path; this.sizeBytes = builder.sizeBytes; } public static Builder builder() { return new Builder(); } public static SystemPartsPart create() { return builder().build(); } /** * @return block */ public Boolean getBlock() { return this.block; } /** * @return path */ public String getPath() { return this.path; } /** * @return sizeBytes */ public Long getSizeBytes() { return this.sizeBytes; } public static final class Builder { private Boolean block; private String path; private Long sizeBytes; private Builder() { } private Builder(SystemPartsPart model) { this.block = model.block; this.path = model.path; this.sizeBytes = model.sizeBytes; } /** * <p>Specifies whether block replication is enabled for the system disk partition. Valid values:</p> * <ul> * <li>true: Block replication is enabled for the system disk partition.</li> * <li>false: Block replication is disabled for the system disk partition.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder block(Boolean block) { this.block = block; return this; } /** * <p>The path of the system disk partition.</p> * * <strong>example:</strong> * <p>/boot</p> */ public Builder path(String path) { this.path = path; return this; } /** * <p>The size of the system disk partition. Unit: bytes.</p> * * <strong>example:</strong> * <p>21474836480</p> */ public Builder sizeBytes(Long sizeBytes) { this.sizeBytes = sizeBytes; return this; } public SystemPartsPart build() { return new SystemPartsPart(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class SystemParts extends TeaModel { @com.aliyun.core.annotation.NameInMap("Part") private java.util.List<SystemPartsPart> part; private SystemParts(Builder builder) { this.part = builder.part; } public static Builder builder() { return new Builder(); } public static SystemParts create() { return builder().build(); } /** * @return part */ public java.util.List<SystemPartsPart> getPart() { return this.part; } public static final class Builder { private java.util.List<SystemPartsPart> part; private Builder() { } private Builder(SystemParts model) { this.part = model.part; } /** * Part. */ public Builder part(java.util.List<SystemPartsPart> part) { this.part = part; return this; } public SystemParts build() { return new SystemParts(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class System extends TeaModel { @com.aliyun.core.annotation.NameInMap("DiskId") private String diskId; @com.aliyun.core.annotation.NameInMap("LVM") private Boolean LVM; @com.aliyun.core.annotation.NameInMap("Parts") private SystemParts parts; @com.aliyun.core.annotation.NameInMap("Size") private Integer size; private System(Builder builder) { this.diskId = builder.diskId; this.LVM = builder.LVM; this.parts = builder.parts; this.size = builder.size; } public static Builder builder() { return new Builder(); } public static System create() { return builder().build(); } /** * @return diskId */ public String getDiskId() { return this.diskId; } /** * @return LVM */ public Boolean getLVM() { return this.LVM; } /** * @return parts */ public SystemParts getParts() { return this.parts; } /** * @return size */ public Integer getSize() { return this.size; } public static final class Builder { private String diskId; private Boolean LVM; private SystemParts parts; private Integer size; private Builder() { } private Builder(System model) { this.diskId = model.diskId; this.LVM = model.LVM; this.parts = model.parts; this.size = model.size; } /** * <p>The ID of the system disk.</p> * * <strong>example:</strong> * <p>d-2zeh4twm100qskw7z41z</p> */ public Builder diskId(String diskId) { this.diskId = diskId; return this; } /** * <p>Specifies whether to use LVM. Valid values:</p> * <ul> * <li>true: Use LVM.</li> * <li>false: Not use LVM.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder LVM(Boolean LVM) { this.LVM = LVM; return this; } /** * <p>The information about the system disk partition.</p> */ public Builder parts(SystemParts parts) { this.parts = parts; return this; } /** * <p>The size of the source system disk. Unit: GiB. Valid values: 20 to 32768.</p> * <blockquote> * <p> The parameter value must be greater than the actual used space of the data disk on the source server. For example, if the size of the source disk is 500 GiB but the actual used space is 100 GiB, you must set this parameter to a value greater than 100 GiB.</p> * </blockquote> * * <strong>example:</strong> * <p>100</p> */ public Builder size(Integer size) { this.size = size; return this; } public System build() { return new System(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class Disks extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private DisksData data; @com.aliyun.core.annotation.NameInMap("System") private System system; private Disks(Builder builder) { this.data = builder.data; this.system = builder.system; } public static Builder builder() { return new Builder(); } public static Disks create() { return builder().build(); } /** * @return data */ public DisksData getData() { return this.data; } /** * @return system */ public System getSystem() { return this.system; } public static final class Builder { private DisksData data; private System system; private Builder() { } private Builder(Disks model) { this.data = model.data; this.system = model.system; } /** * <p>The information about the data disk.</p> */ public Builder data(DisksData data) { this.data = data; return this; } /** * <p>The information about the system disk.</p> */ public Builder system(System system) { this.system = system; return this; } public Disks build() { return new Disks(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class ReplicationJobRun extends TeaModel { @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.NameInMap("ImageId") private String imageId; @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; @com.aliyun.core.annotation.NameInMap("Type") private String type; private ReplicationJobRun(Builder builder) { this.endTime = builder.endTime; this.imageId = builder.imageId; this.startTime = builder.startTime; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static ReplicationJobRun create() { return builder().build(); } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return startTime */ public String getStartTime() { return this.startTime; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String endTime; private String imageId; private String startTime; private String type; private Builder() { } private Builder(ReplicationJobRun model) { this.endTime = model.endTime; this.imageId = model.imageId; this.startTime = model.startTime; this.type = model.type; } /** * <p>The time when the migration job ended. The time follows the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p> * <blockquote> * <p> The time displayed in the SMC console is in the format of UTC+8.</p> * </blockquote> * * <strong>example:</strong> * <p>2019-10-04T13:35:00Z</p> */ public Builder endTime(String endTime) { this.endTime = endTime; return this; } /** * <p>The ID of the destination image.</p> * * <strong>example:</strong> * <p>m-o6w3gy99qf89rkga****</p> */ public Builder imageId(String imageId) { this.imageId = imageId; return this; } /** * <p>The time when the migration job was started. The time follows the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p> * <blockquote> * <p> The time displayed in the SMC console is in the format of UTC+8.</p> * </blockquote> * * <strong>example:</strong> * <p>2019-10-01T13:35:00Z</p> */ public Builder startTime(String startTime) { this.startTime = startTime; return this; } /** * <p>The method used to run the migration job. Valid values:</p> * <ul> * <li>Manual: The migration job was manually started.</li> * <li>Schedule: The migration job was started at a scheduled time or at a specific interval.</li> * </ul> * * <strong>example:</strong> * <p>Schedule</p> */ public Builder type(String type) { this.type = type; return this; } public ReplicationJobRun build() { return new ReplicationJobRun(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class ReplicationJobRuns extends TeaModel { @com.aliyun.core.annotation.NameInMap("ReplicationJobRun") private java.util.List<ReplicationJobRun> replicationJobRun; private ReplicationJobRuns(Builder builder) { this.replicationJobRun = builder.replicationJobRun; } public static Builder builder() { return new Builder(); } public static ReplicationJobRuns create() { return builder().build(); } /** * @return replicationJobRun */ public java.util.List<ReplicationJobRun> getReplicationJobRun() { return this.replicationJobRun; } public static final class Builder { private java.util.List<ReplicationJobRun> replicationJobRun; private Builder() { } private Builder(ReplicationJobRuns model) { this.replicationJobRun = model.replicationJobRun; } /** * ReplicationJobRun. */ public Builder replicationJobRun(java.util.List<ReplicationJobRun> replicationJobRun) { this.replicationJobRun = replicationJobRun; return this; } public ReplicationJobRuns build() { return new ReplicationJobRuns(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class SystemDiskPart extends TeaModel { @com.aliyun.core.annotation.NameInMap("Block") private Boolean block; @com.aliyun.core.annotation.NameInMap("Device") private String device; @com.aliyun.core.annotation.NameInMap("SizeBytes") private Long sizeBytes; private SystemDiskPart(Builder builder) { this.block = builder.block; this.device = builder.device; this.sizeBytes = builder.sizeBytes; } public static Builder builder() { return new Builder(); } public static SystemDiskPart create() { return builder().build(); } /** * @return block */ public Boolean getBlock() { return this.block; } /** * @return device */ public String getDevice() { return this.device; } /** * @return sizeBytes */ public Long getSizeBytes() { return this.sizeBytes; } public static final class Builder { private Boolean block; private String device; private Long sizeBytes; private Builder() { } private Builder(SystemDiskPart model) { this.block = model.block; this.device = model.device; this.sizeBytes = model.sizeBytes; } /** * <p>Indicates whether block replication is enabled for the system disk partition.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder block(Boolean block) { this.block = block; return this; } /** * <p>The device ID of the system disk partition.</p> * * <strong>example:</strong> * <p>0_1</p> */ public Builder device(String device) { this.device = device; return this; } /** * <p>The size of the system disk partition. Unit: bytes.</p> * * <strong>example:</strong> * <p>254803968</p> */ public Builder sizeBytes(Long sizeBytes) { this.sizeBytes = sizeBytes; return this; } public SystemDiskPart build() { return new SystemDiskPart(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class SystemDiskParts extends TeaModel { @com.aliyun.core.annotation.NameInMap("SystemDiskPart") private java.util.List<SystemDiskPart> systemDiskPart; private SystemDiskParts(Builder builder) { this.systemDiskPart = builder.systemDiskPart; } public static Builder builder() { return new Builder(); } public static SystemDiskParts create() { return builder().build(); } /** * @return systemDiskPart */ public java.util.List<SystemDiskPart> getSystemDiskPart() { return this.systemDiskPart; } public static final class Builder { private java.util.List<SystemDiskPart> systemDiskPart; private Builder() { } private Builder(SystemDiskParts model) { this.systemDiskPart = model.systemDiskPart; } /** * SystemDiskPart. */ public Builder systemDiskPart(java.util.List<SystemDiskPart> systemDiskPart) { this.systemDiskPart = systemDiskPart; return this; } public SystemDiskParts build() { return new SystemDiskParts(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</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 N that is added to the SMC resource. Valid values of N: 1 to 20.</p> * <p>The tag key can be an empty string. It can be up to 64 characters in length and cannot contain http:// or https://.<a href="http://https://%E3%80%82"></a></p> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N that is added to the SMC resource. Valid values of N: 1 to 20.</p> * <p>The tag value can be an empty string. It can be up to 64 characters in length and cannot contain http:// or https://.<a href="http://https://%E3%80%82"></a></p> * * <strong>example:</strong> * <p>TestValue</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private Tags(Builder builder) { this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder { private java.util.List<Tag> tag; private Builder() { } private Builder(Tags model) { this.tag = model.tag; } /** * Tag. */ public Builder tag(java.util.List<Tag> tag) { this.tag = tag; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class ReplicationJob extends TeaModel { @com.aliyun.core.annotation.NameInMap("BusinessStatus") private String businessStatus; @com.aliyun.core.annotation.NameInMap("ContainerNamespace") private String containerNamespace; @com.aliyun.core.annotation.NameInMap("ContainerRepository") private String containerRepository; @com.aliyun.core.annotation.NameInMap("ContainerTag") private String containerTag; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("DataDisks") private DataDisks dataDisks; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Disks") private Disks disks; @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.NameInMap("ErrorCode") private String errorCode; @com.aliyun.core.annotation.NameInMap("Frequency") private Integer frequency; @com.aliyun.core.annotation.NameInMap("ImageId") private String imageId; @com.aliyun.core.annotation.NameInMap("ImageName") private String imageName; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InstanceRamRole") private String instanceRamRole; @com.aliyun.core.annotation.NameInMap("InstanceType") private String instanceType; @com.aliyun.core.annotation.NameInMap("JobId") private String jobId; @com.aliyun.core.annotation.NameInMap("JobType") private Integer jobType; @com.aliyun.core.annotation.NameInMap("LaunchTemplateId") private String launchTemplateId; @com.aliyun.core.annotation.NameInMap("LaunchTemplateVersion") private String launchTemplateVersion; @com.aliyun.core.annotation.NameInMap("LicenseType") private String licenseType; @com.aliyun.core.annotation.NameInMap("MaxNumberOfImageToKeep") private Integer maxNumberOfImageToKeep; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("NetMode") private Integer netMode; @com.aliyun.core.annotation.NameInMap("Progress") private Float progress; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ReplicationJobRuns") private ReplicationJobRuns replicationJobRuns; @com.aliyun.core.annotation.NameInMap("ReplicationParameters") private String replicationParameters; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("RunOnce") private Boolean runOnce; @com.aliyun.core.annotation.NameInMap("ScheduledStartTime") private String scheduledStartTime; @com.aliyun.core.annotation.NameInMap("SourceId") private String sourceId; @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("StatusInfo") private String statusInfo; @com.aliyun.core.annotation.NameInMap("SystemDiskParts") private SystemDiskParts systemDiskParts; @com.aliyun.core.annotation.NameInMap("SystemDiskSize") private Integer systemDiskSize; @com.aliyun.core.annotation.NameInMap("Tags") private Tags tags; @com.aliyun.core.annotation.NameInMap("TargetType") private String targetType; @com.aliyun.core.annotation.NameInMap("TransitionInstanceId") private String transitionInstanceId; @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; @com.aliyun.core.annotation.NameInMap("ValidTime") private String validTime; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.NameInMap("WorkgroupId") private String workgroupId; private ReplicationJob(Builder builder) { this.businessStatus = builder.businessStatus; this.containerNamespace = builder.containerNamespace; this.containerRepository = builder.containerRepository; this.containerTag = builder.containerTag; this.creationTime = builder.creationTime; this.dataDisks = builder.dataDisks; this.description = builder.description; this.disks = builder.disks; this.endTime = builder.endTime; this.errorCode = builder.errorCode; this.frequency = builder.frequency; this.imageId = builder.imageId; this.imageName = builder.imageName; this.instanceId = builder.instanceId; this.instanceRamRole = builder.instanceRamRole; this.instanceType = builder.instanceType; this.jobId = builder.jobId; this.jobType = builder.jobType; this.launchTemplateId = builder.launchTemplateId; this.launchTemplateVersion = builder.launchTemplateVersion; this.licenseType = builder.licenseType; this.maxNumberOfImageToKeep = builder.maxNumberOfImageToKeep; this.name = builder.name; this.netMode = builder.netMode; this.progress = builder.progress; this.regionId = builder.regionId; this.replicationJobRuns = builder.replicationJobRuns; this.replicationParameters = builder.replicationParameters; this.resourceGroupId = builder.resourceGroupId; this.runOnce = builder.runOnce; this.scheduledStartTime = builder.scheduledStartTime; this.sourceId = builder.sourceId; this.startTime = builder.startTime; this.status = builder.status; this.statusInfo = builder.statusInfo; this.systemDiskParts = builder.systemDiskParts; this.systemDiskSize = builder.systemDiskSize; this.tags = builder.tags; this.targetType = builder.targetType; this.transitionInstanceId = builder.transitionInstanceId; this.vSwitchId = builder.vSwitchId; this.validTime = builder.validTime; this.vpcId = builder.vpcId; this.workgroupId = builder.workgroupId; } public static Builder builder() { return new Builder(); } public static ReplicationJob create() { return builder().build(); } /** * @return businessStatus */ public String getBusinessStatus() { return this.businessStatus; } /** * @return containerNamespace */ public String getContainerNamespace() { return this.containerNamespace; } /** * @return containerRepository */ public String getContainerRepository() { return this.containerRepository; } /** * @return containerTag */ public String getContainerTag() { return this.containerTag; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return dataDisks */ public DataDisks getDataDisks() { return this.dataDisks; } /** * @return description */ public String getDescription() { return this.description; } /** * @return disks */ public Disks getDisks() { return this.disks; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return errorCode */ public String getErrorCode() { return this.errorCode; } /** * @return frequency */ public Integer getFrequency() { return this.frequency; } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return imageName */ public String getImageName() { return this.imageName; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceRamRole */ public String getInstanceRamRole() { return this.instanceRamRole; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } /** * @return jobId */ public String getJobId() { return this.jobId; } /** * @return jobType */ public Integer getJobType() { return this.jobType; } /** * @return launchTemplateId */ public String getLaunchTemplateId() { return this.launchTemplateId; } /** * @return launchTemplateVersion */ public String getLaunchTemplateVersion() { return this.launchTemplateVersion; } /** * @return licenseType */ public String getLicenseType() { return this.licenseType; } /** * @return maxNumberOfImageToKeep */ public Integer getMaxNumberOfImageToKeep() { return this.maxNumberOfImageToKeep; } /** * @return name */ public String getName() { return this.name; } /** * @return netMode */ public Integer getNetMode() { return this.netMode; } /** * @return progress */ public Float getProgress() { return this.progress; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return replicationJobRuns */ public ReplicationJobRuns getReplicationJobRuns() { return this.replicationJobRuns; } /** * @return replicationParameters */ public String getReplicationParameters() { return this.replicationParameters; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return runOnce */ public Boolean getRunOnce() { return this.runOnce; } /** * @return scheduledStartTime */ public String getScheduledStartTime() { return this.scheduledStartTime; } /** * @return sourceId */ public String getSourceId() { return this.sourceId; } /** * @return startTime */ public String getStartTime() { return this.startTime; } /** * @return status */ public String getStatus() { return this.status; } /** * @return statusInfo */ public String getStatusInfo() { return this.statusInfo; } /** * @return systemDiskParts */ public SystemDiskParts getSystemDiskParts() { return this.systemDiskParts; } /** * @return systemDiskSize */ public Integer getSystemDiskSize() { return this.systemDiskSize; } /** * @return tags */ public Tags getTags() { return this.tags; } /** * @return targetType */ public String getTargetType() { return this.targetType; } /** * @return transitionInstanceId */ public String getTransitionInstanceId() { return this.transitionInstanceId; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } /** * @return validTime */ public String getValidTime() { return this.validTime; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return workgroupId */ public String getWorkgroupId() { return this.workgroupId; } public static final class Builder { private String businessStatus; private String containerNamespace; private String containerRepository; private String containerTag; private String creationTime; private DataDisks dataDisks; private String description; private Disks disks; private String endTime; private String errorCode; private Integer frequency; private String imageId; private String imageName; private String instanceId; private String instanceRamRole; private String instanceType; private String jobId; private Integer jobType; private String launchTemplateId; private String launchTemplateVersion; private String licenseType; private Integer maxNumberOfImageToKeep; private String name; private Integer netMode; private Float progress; private String regionId; private ReplicationJobRuns replicationJobRuns; private String replicationParameters; private String resourceGroupId; private Boolean runOnce; private String scheduledStartTime; private String sourceId; private String startTime; private String status; private String statusInfo; private SystemDiskParts systemDiskParts; private Integer systemDiskSize; private Tags tags; private String targetType; private String transitionInstanceId; private String vSwitchId; private String validTime; private String vpcId; private String workgroupId; private Builder() { } private Builder(ReplicationJob model) { this.businessStatus = model.businessStatus; this.containerNamespace = model.containerNamespace; this.containerRepository = model.containerRepository; this.containerTag = model.containerTag; this.creationTime = model.creationTime; this.dataDisks = model.dataDisks; this.description = model.description; this.disks = model.disks; this.endTime = model.endTime; this.errorCode = model.errorCode; this.frequency = model.frequency; this.imageId = model.imageId; this.imageName = model.imageName; this.instanceId = model.instanceId; this.instanceRamRole = model.instanceRamRole; this.instanceType = model.instanceType; this.jobId = model.jobId; this.jobType = model.jobType; this.launchTemplateId = model.launchTemplateId; this.launchTemplateVersion = model.launchTemplateVersion; this.licenseType = model.licenseType; this.maxNumberOfImageToKeep = model.maxNumberOfImageToKeep; this.name = model.name; this.netMode = model.netMode; this.progress = model.progress; this.regionId = model.regionId; this.replicationJobRuns = model.replicationJobRuns; this.replicationParameters = model.replicationParameters; this.resourceGroupId = model.resourceGroupId; this.runOnce = model.runOnce; this.scheduledStartTime = model.scheduledStartTime; this.sourceId = model.sourceId; this.startTime = model.startTime; this.status = model.status; this.statusInfo = model.statusInfo; this.systemDiskParts = model.systemDiskParts; this.systemDiskSize = model.systemDiskSize; this.tags = model.tags; this.targetType = model.targetType; this.transitionInstanceId = model.transitionInstanceId; this.vSwitchId = model.vSwitchId; this.validTime = model.validTime; this.vpcId = model.vpcId; this.workgroupId = model.workgroupId; } /** * <p>The business status of the migration job. Valid values:</p> * <ul> * <li>Preparing: The migration is being prepared.</li> * <li>Syncing: Data is being synchronized.</li> * <li>Processing: The migration is in progress.</li> * <li>Cleaning: Intermediate resources are being released.</li> * </ul> * * <strong>example:</strong> * <p>Preparing</p> */ public Builder businessStatus(String businessStatus) { this.businessStatus = businessStatus; return this; } /** * <p>The namespace of the destination Docker container image.</p> * * <strong>example:</strong> * <p>testNamespace</p> */ public Builder containerNamespace(String containerNamespace) { this.containerNamespace = containerNamespace; return this; } /** * <p>The repository that stores the destination Docker container image.</p> * * <strong>example:</strong> * <p>testRepository</p> */ public Builder containerRepository(String containerRepository) { this.containerRepository = containerRepository; return this; } /** * <p>The tag of the destination Docker container image.</p> * * <strong>example:</strong> * <p>CentOS:v1</p> */ public Builder containerTag(String containerTag) { this.containerTag = containerTag; return this; } /** * <p>The time when the migration job was created.</p> * * <strong>example:</strong> * <p>2014-07-24T13:00:52Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The data disks on the destination ECS instance.</p> */ public Builder dataDisks(DataDisks dataDisks) { this.dataDisks = dataDisks; return this; } /** * <p>The description of the migration job.</p> * * <strong>example:</strong> * <p>This is my migration task.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The information about the disk.</p> */ public Builder disks(Disks disks) { this.disks = disks; return this; } /** * <p>The time when the migration job was complete. The time follows the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p> * <blockquote> * <p> The time displayed in the SMC console is in the format of UTC+8.</p> * </blockquote> * * <strong>example:</strong> * <p>2019-06-04T16:00:52Z</p> */ public Builder endTime(String endTime) { this.endTime = endTime; return this; } /** * <p>The error code returned if an error occurred in the migration job.</p> * * <strong>example:</strong> * <p>InternalError</p> */ public Builder errorCode(String errorCode) { this.errorCode = errorCode; return this; } /** * <p>The interval at which the incremental migration job runs. Unit: hour. Valid values: 1 to 168.</p> * * <strong>example:</strong> * <p>15</p> */ public Builder frequency(Integer frequency) { this.frequency = frequency; return this; } /** * <p>The ID of the destination image.</p> * * <strong>example:</strong> * <p>m-o6w3gy99qf89rkga****</p> */ public Builder imageId(String imageId) { this.imageId = imageId; return this; } /** * <p>The name of the destination image.</p> * * <strong>example:</strong> * <p>testAliCloudImageName</p> */ public Builder imageName(String imageName) { this.imageName = imageName; return this; } /** * <p>The ID of the destination ECS instance.</p> * * <strong>example:</strong> * <p>i-bp1ff25rzvnul6kr****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The name of the Resource Access Management (RAM) role that is assigned to the instance.</p> * * <strong>example:</strong> * <p>SMCAdmin</p> */ public Builder instanceRamRole(String instanceRamRole) { this.instanceRamRole = instanceRamRole; return this; } /** * <p>The instance type of the intermediate instance.</p> * * <strong>example:</strong> * <p>ecs.sn1ne.large</p> */ public Builder instanceType(String instanceType) { this.instanceType = instanceType; return this; } /** * <p>The ID of the migration job.</p> * * <strong>example:</strong> * <p>j-bp19vlwm0tyigbmj****</p> */ public Builder jobId(String jobId) { this.jobId = jobId; return this; } /** * <p>The type of the migration job. Valid values:</p> * <ul> * <li>0: server migration.</li> * <li>1: operating system migration.</li> * <li>2: cross-zone migration.</li> * <li>3: agentless migration for a VMware VM.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder jobType(Integer jobType) { this.jobType = jobType; return this; } /** * <p>The ID of the launch template.</p> * * <strong>example:</strong> * <p>lt-launchtemplateid</p> */ public Builder launchTemplateId(String launchTemplateId) { this.launchTemplateId = launchTemplateId; return this; } /** * <p>The versions of the launch template.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder launchTemplateVersion(String launchTemplateVersion) { this.launchTemplateVersion = launchTemplateVersion; return this; } /** * <p>The type of license for the migration job. Valid values:</p> * <ul> * <li>An empty value indicates no license.</li> * <li>A value of BYOL indicates Bring Your Own License (BYOL).</li> * </ul> * * <strong>example:</strong> * <p>BYOL</p> */ public Builder licenseType(String licenseType) { this.licenseType = licenseType; return this; } /** * <p>The maximum number of images retained for the incremental migration job. Valid values: 1 to 10.</p> * * <strong>example:</strong> * <p>8</p> */ public Builder maxNumberOfImageToKeep(Integer maxNumberOfImageToKeep) { this.maxNumberOfImageToKeep = maxNumberOfImageToKeep; return this; } /** * <p>The name of the migration job.</p> * * <strong>example:</strong> * <p>testMigrationTaskName</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The type of network used for the migration.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder netMode(Integer netMode) { this.netMode = netMode; return this; } /** * <p>The progress of the migration job.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder progress(Float progress) { this.progress = progress; return this; } /** * <p>The ID of the Alibaba Cloud region to which the source server is migrated.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The execution records of the migration job.</p> */ public Builder replicationJobRuns(ReplicationJobRuns replicationJobRuns) { this.replicationJobRuns = replicationJobRuns; return this; } /** * <p>The string of key-value pairs configured for the replication driver.</p> * * <strong>example:</strong> * <p>BandWidthLimit:0</p> */ public Builder replicationParameters(String replicationParameters) { this.replicationParameters = replicationParameters; return this; } /** * <p>The ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-acfmw3ty5y7****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>Indicates whether incremental migration is disabled for the source server. Valid values:</p> * <ul> * <li>true: Incremental migration is disabled. A migration job runs only once after the job is created.</li> * <li>false: Incremental migration is enabled. For an incremental migration job, SMC synchronizes incremental data to Alibaba Cloud at the interval specified by the <code>Frequency</code> parameter.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder runOnce(Boolean runOnce) { this.runOnce = runOnce; return this; } /** * <p>The time when the migration job is scheduled to run. The time follows the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. The time must meet the following requirements:</p> * <ul> * <li>The value must be within 30 days after the current time.</li> * <li>If you do not specify this parameter, you must manually start the migration job after the migration job is created. You can call the <a href="https://help.aliyun.com/document_detail/121823.html">StartReplicationJob</a> operation to start the migration job.</li> * </ul> * * <strong>example:</strong> * <p>2019-06-04T13:35:00Z</p> */ public Builder scheduledStartTime(String scheduledStartTime) { this.scheduledStartTime = scheduledStartTime; return this; } /** * <p>The ID of the source server.</p> * * <strong>example:</strong> * <p>s-bp1e2fsl57knvuug****</p> */ public Builder sourceId(String sourceId) { this.sourceId = sourceId; return this; } /** * <p>The time when the migration job was started. The time follows the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p> * <blockquote> * <p> The time displayed in the SMC console is in the format of UTC+8.</p> * </blockquote> * * <strong>example:</strong> * <p>2019-06-04T14:40:52Z</p> */ public Builder startTime(String startTime) { this.startTime = startTime; return this; } /** * <p>The status of the migration job. Valid values:</p> * <ul> * <li>Ready: The migration job is not started.</li> * <li>Running: The migration job is running.</li> * <li>Stopped: The migration job is paused.</li> * <li>InError: An error occurs in the migration job.</li> * <li>Finished: The migration job is complete.</li> * <li>Waiting: The migration job is waiting to run.</li> * <li>Expired: The migration job has expired.</li> * <li>Deleting: The migration job is being deleted.</li> * </ul> * * <strong>example:</strong> * <p>Running</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The status information about the migration job.</p> * * <strong>example:</strong> * <p>statusinfo</p> */ public Builder statusInfo(String statusInfo) { this.statusInfo = statusInfo; return this; } /** * <p>The system disk partitions.</p> */ public Builder systemDiskParts(SystemDiskParts systemDiskParts) { this.systemDiskParts = systemDiskParts; return this; } /** * <p>The size of the system disk of the destination ECS instance.</p> * * <strong>example:</strong> * <p>40</p> */ public Builder systemDiskSize(Integer systemDiskSize) { this.systemDiskSize = systemDiskSize; return this; } /** * <p>The information about tags that are attached to the SMC resource.</p> */ public Builder tags(Tags tags) { this.tags = tags; return this; } /** * <p>The type of destination to which the source server is migrated. Valid values:</p> * <ul> * <li>Image: After the migration job is complete, SMC generates an ECS image for the source server.</li> * <li>ContainerImage: After the migration job is complete, SMC generates a Docker container image for the source server.</li> * <li>TargetInstance: After the migration job is complete, SMC migrates the source server to the destination instance. If you set this parameter to TargetInstance, you must set the InstanceId parameter.</li> * </ul> * * <strong>example:</strong> * <p>Image</p> */ public Builder targetType(String targetType) { this.targetType = targetType; return this; } /** * <p>The ID of the intermediate instance.</p> * * <strong>example:</strong> * <p>i-bp1ff25rzvnul6kr****</p> */ public Builder transitionInstanceId(String transitionInstanceId) { this.transitionInstanceId = transitionInstanceId; return this; } /** * <p>The ID of the vSwitch in the specified VPC.</p> * * <strong>example:</strong> * <p>vsw-bp1ddbrxdlrcbim46****</p> */ public Builder vSwitchId(String vSwitchId) { this.vSwitchId = vSwitchId; return this; } /** * <p>The time when the migration job expired. The time follows the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p> * <blockquote> * <p> The time displayed in the SMC console is in the format of UTC+8.</p> * </blockquote> * * <strong>example:</strong> * <p>2019-06-08T14:40:52Z</p> */ public Builder validTime(String validTime) { this.validTime = validTime; return this; } /** * <p>The ID of a virtual private cloud (VPC) for which you have configured an Express Connect circuit or a VPN gateway.</p> * * <strong>example:</strong> * <p>vpc-bp1vwnn14rqpyiczj****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } /** * WorkgroupId. */ public Builder workgroupId(String workgroupId) { this.workgroupId = workgroupId; return this; } public ReplicationJob build() { return new ReplicationJob(this); } } } /** * * {@link DescribeReplicationJobsResponseBody} extends {@link TeaModel} * * <p>DescribeReplicationJobsResponseBody</p> */ public static class ReplicationJobs extends TeaModel { @com.aliyun.core.annotation.NameInMap("ReplicationJob") private java.util.List<ReplicationJob> replicationJob; private ReplicationJobs(Builder builder) { this.replicationJob = builder.replicationJob; } public static Builder builder() { return new Builder(); } public static ReplicationJobs create() { return builder().build(); } /** * @return replicationJob */ public java.util.List<ReplicationJob> getReplicationJob() { return this.replicationJob; } public static final class Builder { private java.util.List<ReplicationJob> replicationJob; private Builder() { } private Builder(ReplicationJobs model) { this.replicationJob = model.replicationJob; } /** * ReplicationJob. */ public Builder replicationJob(java.util.List<ReplicationJob> replicationJob) { this.replicationJob = replicationJob; return this; } public ReplicationJobs build() { return new ReplicationJobs(this); } } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DescribeSourceServersRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DescribeSourceServersRequest} extends {@link RequestModel} * * <p>DescribeSourceServersRequest</p> */ public class DescribeSourceServersRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("JobId") private String jobId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @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") @com.aliyun.core.annotation.Validation(maximum = 50) private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RelatedJobType") private java.util.List<String> relatedJobType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceId") private java.util.List<String> sourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("State") private String state; @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("WorkgroupId") private String workgroupId; private DescribeSourceServersRequest(Builder builder) { super(builder); this.jobId = builder.jobId; this.name = builder.name; this.ownerId = builder.ownerId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.relatedJobType = builder.relatedJobType; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.sourceId = builder.sourceId; this.state = builder.state; this.tag = builder.tag; this.workgroupId = builder.workgroupId; } public static Builder builder() { return new Builder(); } public static DescribeSourceServersRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return jobId */ public String getJobId() { return this.jobId; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return relatedJobType */ public java.util.List<String> getRelatedJobType() { return this.relatedJobType; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return sourceId */ public java.util.List<String> getSourceId() { return this.sourceId; } /** * @return state */ public String getState() { return this.state; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } /** * @return workgroupId */ public String getWorkgroupId() { return this.workgroupId; } public static final class Builder extends Request.Builder<DescribeSourceServersRequest, Builder> { private String jobId; private String name; private Long ownerId; private Integer pageNumber; private Integer pageSize; private java.util.List<String> relatedJobType; private String resourceGroupId; private String resourceOwnerAccount; private java.util.List<String> sourceId; private String state; private java.util.List<Tag> tag; private String workgroupId; private Builder() { super(); } private Builder(DescribeSourceServersRequest request) { super(request); this.jobId = request.jobId; this.name = request.name; this.ownerId = request.ownerId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.relatedJobType = request.relatedJobType; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.sourceId = request.sourceId; this.state = request.state; this.tag = request.tag; this.workgroupId = request.workgroupId; } /** * <p>The ID of the migration job.</p> * * <strong>example:</strong> * <p>j-bp19vlwm0tyigbmj****</p> */ public Builder jobId(String jobId) { this.putQueryParameter("JobId", jobId); this.jobId = jobId; return this; } /** * <p>The name of the migration source. The name must be 2 to 128 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain digits, colons (:), underscores (_), and hyphens (-).</p> * <p>This parameter is empty by default.</p> * * <strong>example:</strong> * <p>testSourceServerName</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The page number. Minimum value: 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 per page. Valid values: 1 to 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 type of migration job that is associated with the migration source.</p> */ public Builder relatedJobType(java.util.List<String> relatedJobType) { this.putQueryParameter("RelatedJobType", relatedJobType); this.relatedJobType = relatedJobType; return this; } /** * <p>The resource group ID.</p> * * <strong>example:</strong> * <p>rg-acfmw3ty5y7****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The migration source ID. You can specify multiple IDs.</p> * * <strong>example:</strong> * <p>s-bp1e2fsl57knvuug****</p> */ public Builder sourceId(java.util.List<String> sourceId) { this.putQueryParameter("SourceId", sourceId); this.sourceId = sourceId; return this; } /** * <p>The state of the migration source. Valid values:</p> * <ul> * <li>Unavailable: The migration source is inactive, or an error occurs in the migration source.</li> * <li>Available: The migration source is active.</li> * <li>InUse: The migration source is being migrated.</li> * <li>Deleting: The migration source is being deleted from Server Migration Center (SMC).</li> * </ul> * * <strong>example:</strong> * <p>Available</p> */ public Builder state(String state) { this.putQueryParameter("State", state); this.state = state; return this; } /** * <p>The tag.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * <p>The workgroup ID.</p> * * <strong>example:</strong> * <p>w-bp1ja22kdqphehlj****</p> */ public Builder workgroupId(String workgroupId) { this.putQueryParameter("WorkgroupId", workgroupId); this.workgroupId = workgroupId; return this; } @Override public DescribeSourceServersRequest build() { return new DescribeSourceServersRequest(this); } } /** * * {@link DescribeSourceServersRequest} extends {@link TeaModel} * * <p>DescribeSourceServersRequest</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 that is attached to the SMC resource. Valid values of N: 1 to 20.</p> * <p>You cannot specify an empty string as a tag key. The tag key can be up to 64 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun.</p> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N that is attached to the SMC resource. Valid values of N: 1 to 20.</p> * <p>You can specify an empty string as a tag key. The tag value can be up to 64 characters in length and cannot contain http:// or https://.</p> * * <strong>example:</strong> * <p>TestValue</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DescribeSourceServersResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DescribeSourceServersResponse} extends {@link TeaModel} * * <p>DescribeSourceServersResponse</p> */ public class DescribeSourceServersResponse 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 DescribeSourceServersResponseBody body; private DescribeSourceServersResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSourceServersResponse 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 DescribeSourceServersResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSourceServersResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSourceServersResponseBody body); @Override DescribeSourceServersResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSourceServersResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSourceServersResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSourceServersResponse 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(DescribeSourceServersResponseBody body) { this.body = body; return this; } @Override public DescribeSourceServersResponse build() { return new DescribeSourceServersResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DescribeSourceServersResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public class DescribeSourceServersResponseBody 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("SourceServers") private SourceServers sourceServers; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeSourceServersResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.sourceServers = builder.sourceServers; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeSourceServersResponseBody 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 sourceServers */ public SourceServers getSourceServers() { return this.sourceServers; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private SourceServers sourceServers; private Integer totalCount; private Builder() { } private Builder(DescribeSourceServersResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.sourceServers = model.sourceServers; 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 returned on each 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>410E6073-66D0-45D3-AB3E-4DC3F5E4****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information about the migration source.</p> */ public Builder sourceServers(SourceServers sourceServers) { this.sourceServers = sourceServers; return this; } /** * <p>The total number of migration sources returned.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeSourceServersResponseBody build() { return new DescribeSourceServersResponseBody(this); } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class Part extends TeaModel { @com.aliyun.core.annotation.NameInMap("CanBlock") private Boolean canBlock; @com.aliyun.core.annotation.NameInMap("Device") private String device; @com.aliyun.core.annotation.NameInMap("Need") private Boolean need; @com.aliyun.core.annotation.NameInMap("Path") private String path; @com.aliyun.core.annotation.NameInMap("SizeBytes") private Long sizeBytes; private Part(Builder builder) { this.canBlock = builder.canBlock; this.device = builder.device; this.need = builder.need; this.path = builder.path; this.sizeBytes = builder.sizeBytes; } public static Builder builder() { return new Builder(); } public static Part create() { return builder().build(); } /** * @return canBlock */ public Boolean getCanBlock() { return this.canBlock; } /** * @return device */ public String getDevice() { return this.device; } /** * @return need */ public Boolean getNeed() { return this.need; } /** * @return path */ public String getPath() { return this.path; } /** * @return sizeBytes */ public Long getSizeBytes() { return this.sizeBytes; } public static final class Builder { private Boolean canBlock; private String device; private Boolean need; private String path; private Long sizeBytes; private Builder() { } private Builder(Part model) { this.canBlock = model.canBlock; this.device = model.device; this.need = model.need; this.path = model.path; this.sizeBytes = model.sizeBytes; } /** * <p>Indicates whether block replication is enabled for the data disk partition.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder canBlock(Boolean canBlock) { this.canBlock = canBlock; return this; } /** * <p>The device ID of the data disk partition.</p> * * <strong>example:</strong> * <p>1_0</p> */ public Builder device(String device) { this.device = device; return this; } /** * <p>Indicates whether the data disk partition must be selected.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder need(Boolean need) { this.need = need; return this; } /** * <p>The path of the data disk partition.</p> * * <strong>example:</strong> * <p>/home/data</p> */ public Builder path(String path) { this.path = path; return this; } /** * <p>The size of the data disk partition. Unit: bytes.</p> * * <strong>example:</strong> * <p>21474836480</p> */ public Builder sizeBytes(Long sizeBytes) { this.sizeBytes = sizeBytes; return this; } public Part build() { return new Part(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class Parts extends TeaModel { @com.aliyun.core.annotation.NameInMap("Part") private java.util.List<Part> part; private Parts(Builder builder) { this.part = builder.part; } public static Builder builder() { return new Builder(); } public static Parts create() { return builder().build(); } /** * @return part */ public java.util.List<Part> getPart() { return this.part; } public static final class Builder { private java.util.List<Part> part; private Builder() { } private Builder(Parts model) { this.part = model.part; } /** * Part. */ public Builder part(java.util.List<Part> part) { this.part = part; return this; } public Parts build() { return new Parts(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class DataDisk extends TeaModel { @com.aliyun.core.annotation.NameInMap("Index") private Integer index; @com.aliyun.core.annotation.NameInMap("Parts") private Parts parts; @com.aliyun.core.annotation.NameInMap("Path") private String path; @com.aliyun.core.annotation.NameInMap("Size") private Integer size; private DataDisk(Builder builder) { this.index = builder.index; this.parts = builder.parts; this.path = builder.path; this.size = builder.size; } public static Builder builder() { return new Builder(); } public static DataDisk create() { return builder().build(); } /** * @return index */ public Integer getIndex() { return this.index; } /** * @return parts */ public Parts getParts() { return this.parts; } /** * @return path */ public String getPath() { return this.path; } /** * @return size */ public Integer getSize() { return this.size; } public static final class Builder { private Integer index; private Parts parts; private String path; private Integer size; private Builder() { } private Builder(DataDisk model) { this.index = model.index; this.parts = model.parts; this.path = model.path; this.size = model.size; } /** * <p>The index number of the data disk.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder index(Integer index) { this.index = index; return this; } /** * <p>The information about the data disk partition.</p> */ public Builder parts(Parts parts) { this.parts = parts; return this; } /** * <p>The path of data disk N.</p> * * <strong>example:</strong> * <p>/home/data</p> */ public Builder path(String path) { this.path = path; return this; } /** * <p>The size of data disk N. Unit: GiB.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder size(Integer size) { this.size = size; return this; } public DataDisk build() { return new DataDisk(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class DataDisks extends TeaModel { @com.aliyun.core.annotation.NameInMap("DataDisk") private java.util.List<DataDisk> dataDisk; private DataDisks(Builder builder) { this.dataDisk = builder.dataDisk; } public static Builder builder() { return new Builder(); } public static DataDisks create() { return builder().build(); } /** * @return dataDisk */ public java.util.List<DataDisk> getDataDisk() { return this.dataDisk; } public static final class Builder { private java.util.List<DataDisk> dataDisk; private Builder() { } private Builder(DataDisks model) { this.dataDisk = model.dataDisk; } /** * DataDisk. */ public Builder dataDisk(java.util.List<DataDisk> dataDisk) { this.dataDisk = dataDisk; return this; } public DataDisks build() { return new DataDisks(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class PartsPart extends TeaModel { @com.aliyun.core.annotation.NameInMap("CanBlock") private Boolean canBlock; @com.aliyun.core.annotation.NameInMap("Path") private String path; @com.aliyun.core.annotation.NameInMap("SizeBytes") private Long sizeBytes; @com.aliyun.core.annotation.NameInMap("Type") private String type; private PartsPart(Builder builder) { this.canBlock = builder.canBlock; this.path = builder.path; this.sizeBytes = builder.sizeBytes; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static PartsPart create() { return builder().build(); } /** * @return canBlock */ public Boolean getCanBlock() { return this.canBlock; } /** * @return path */ public String getPath() { return this.path; } /** * @return sizeBytes */ public Long getSizeBytes() { return this.sizeBytes; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private Boolean canBlock; private String path; private Long sizeBytes; private String type; private Builder() { } private Builder(PartsPart model) { this.canBlock = model.canBlock; this.path = model.path; this.sizeBytes = model.sizeBytes; this.type = model.type; } /** * <p>Whether block replication is enabled for the data disk partition. Valid values:</p> * <ul> * <li>true: Block replication is enabled for the data disk partition.</li> * <li>false: Block replication is disabled for the data disk partition.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder canBlock(Boolean canBlock) { this.canBlock = canBlock; return this; } /** * <p>The path of the data disk partition.</p> * * <strong>example:</strong> * <p>/home/data</p> */ public Builder path(String path) { this.path = path; return this; } /** * <p>The size of the data disk partition. Unit: bytes.</p> * * <strong>example:</strong> * <p>21474836480</p> */ public Builder sizeBytes(Long sizeBytes) { this.sizeBytes = sizeBytes; return this; } /** * <p>The type of the data disk partition. Valid values:</p> * <ul> * <li>Normal: normal partition.</li> * <li>System: system partition.</li> * <li>Boot: boot partition.</li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder type(String type) { this.type = type; return this; } public PartsPart build() { return new PartsPart(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class DataParts extends TeaModel { @com.aliyun.core.annotation.NameInMap("Part") private java.util.List<PartsPart> part; private DataParts(Builder builder) { this.part = builder.part; } public static Builder builder() { return new Builder(); } public static DataParts create() { return builder().build(); } /** * @return part */ public java.util.List<PartsPart> getPart() { return this.part; } public static final class Builder { private java.util.List<PartsPart> part; private Builder() { } private Builder(DataParts model) { this.part = model.part; } /** * Part. */ public Builder part(java.util.List<PartsPart> part) { this.part = part; return this; } public DataParts build() { return new DataParts(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("Offset") private Long offset; @com.aliyun.core.annotation.NameInMap("Parts") private DataParts parts; @com.aliyun.core.annotation.NameInMap("Size") private Integer size; private Data(Builder builder) { this.offset = builder.offset; this.parts = builder.parts; this.size = builder.size; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return offset */ public Long getOffset() { return this.offset; } /** * @return parts */ public DataParts getParts() { return this.parts; } /** * @return size */ public Integer getSize() { return this.size; } public static final class Builder { private Long offset; private DataParts parts; private Integer size; private Builder() { } private Builder(Data model) { this.offset = model.offset; this.parts = model.parts; this.size = model.size; } /** * <p>The start offset of the first partition of the data disk. Unit: bytes.</p> * * <strong>example:</strong> * <p>1024</p> */ public Builder offset(Long offset) { this.offset = offset; return this; } /** * <p>The information about the data disk partition.</p> */ public Builder parts(DataParts parts) { this.parts = parts; return this; } /** * <p>The data disk size of the migration source. Unit: GiB.</p> * * <strong>example:</strong> * <p>80</p> */ public Builder size(Integer size) { this.size = size; return this; } public Data build() { return new Data(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class DisksData extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; private DisksData(Builder builder) { this.data = builder.data; } public static Builder builder() { return new Builder(); } public static DisksData create() { return builder().build(); } /** * @return data */ public java.util.List<Data> getData() { return this.data; } public static final class Builder { private java.util.List<Data> data; private Builder() { } private Builder(DisksData model) { this.data = model.data; } /** * Data. */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } public DisksData build() { return new DisksData(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class SystemPartsPart extends TeaModel { @com.aliyun.core.annotation.NameInMap("CanBlock") private Boolean canBlock; @com.aliyun.core.annotation.NameInMap("Path") private String path; @com.aliyun.core.annotation.NameInMap("SizeBytes") private Long sizeBytes; @com.aliyun.core.annotation.NameInMap("Type") private String type; private SystemPartsPart(Builder builder) { this.canBlock = builder.canBlock; this.path = builder.path; this.sizeBytes = builder.sizeBytes; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static SystemPartsPart create() { return builder().build(); } /** * @return canBlock */ public Boolean getCanBlock() { return this.canBlock; } /** * @return path */ public String getPath() { return this.path; } /** * @return sizeBytes */ public Long getSizeBytes() { return this.sizeBytes; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private Boolean canBlock; private String path; private Long sizeBytes; private String type; private Builder() { } private Builder(SystemPartsPart model) { this.canBlock = model.canBlock; this.path = model.path; this.sizeBytes = model.sizeBytes; this.type = model.type; } /** * <p>Indicates whether block replication is enabled for the system disk partition. Valid values:</p> * <ul> * <li>true: Block replication is enabled for the system disk partition.</li> * <li>false: Block replication is disabled for the system disk partition.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder canBlock(Boolean canBlock) { this.canBlock = canBlock; return this; } /** * <p>The path of the system disk partition.</p> * * <strong>example:</strong> * <p>/home/data</p> */ public Builder path(String path) { this.path = path; return this; } /** * <p>The size of the system disk partition. Unit: bytes.</p> * * <strong>example:</strong> * <p>21474836480</p> */ public Builder sizeBytes(Long sizeBytes) { this.sizeBytes = sizeBytes; return this; } /** * <p>The type of the system disk partition. Valid values:</p> * <ul> * <li>Normal: normal partition.</li> * <li>System: system partition.</li> * <li>Boot: boot partition.</li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder type(String type) { this.type = type; return this; } public SystemPartsPart build() { return new SystemPartsPart(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class SystemParts extends TeaModel { @com.aliyun.core.annotation.NameInMap("Part") private java.util.List<SystemPartsPart> part; private SystemParts(Builder builder) { this.part = builder.part; } public static Builder builder() { return new Builder(); } public static SystemParts create() { return builder().build(); } /** * @return part */ public java.util.List<SystemPartsPart> getPart() { return this.part; } public static final class Builder { private java.util.List<SystemPartsPart> part; private Builder() { } private Builder(SystemParts model) { this.part = model.part; } /** * Part. */ public Builder part(java.util.List<SystemPartsPart> part) { this.part = part; return this; } public SystemParts build() { return new SystemParts(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class System extends TeaModel { @com.aliyun.core.annotation.NameInMap("Offset") private Long offset; @com.aliyun.core.annotation.NameInMap("Parts") private SystemParts parts; @com.aliyun.core.annotation.NameInMap("Size") private Integer size; private System(Builder builder) { this.offset = builder.offset; this.parts = builder.parts; this.size = builder.size; } public static Builder builder() { return new Builder(); } public static System create() { return builder().build(); } /** * @return offset */ public Long getOffset() { return this.offset; } /** * @return parts */ public SystemParts getParts() { return this.parts; } /** * @return size */ public Integer getSize() { return this.size; } public static final class Builder { private Long offset; private SystemParts parts; private Integer size; private Builder() { } private Builder(System model) { this.offset = model.offset; this.parts = model.parts; this.size = model.size; } /** * <p>The start offset of the first partition of the system disk. Unit: bytes.</p> * * <strong>example:</strong> * <p>1024</p> */ public Builder offset(Long offset) { this.offset = offset; return this; } /** * <p>The information about the system disk partition.</p> */ public Builder parts(SystemParts parts) { this.parts = parts; return this; } /** * <p>The size of the source system disk. Unit: GiB. Valid values: 20 to 32768.</p> * <blockquote> * <p> The parameter value must be greater than the actual used space of the data disk on the source server. For example, if the size of the source disk is 500 GiB but the actual used space is 100 GiB, you must set this parameter to a value greater than 100 GiB.</p> * </blockquote> * * <strong>example:</strong> * <p>100</p> */ public Builder size(Integer size) { this.size = size; return this; } public System build() { return new System(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class Disks extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private DisksData data; @com.aliyun.core.annotation.NameInMap("System") private System system; private Disks(Builder builder) { this.data = builder.data; this.system = builder.system; } public static Builder builder() { return new Builder(); } public static Disks create() { return builder().build(); } /** * @return data */ public DisksData getData() { return this.data; } /** * @return system */ public System getSystem() { return this.system; } public static final class Builder { private DisksData data; private System system; private Builder() { } private Builder(Disks model) { this.data = model.data; this.system = model.system; } /** * <p>The list of data disk information.</p> */ public Builder data(DisksData data) { this.data = data; return this; } /** * <p>The information about the system disk.</p> */ public Builder system(System system) { this.system = system; return this; } public Disks build() { return new Disks(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class SystemDiskPart extends TeaModel { @com.aliyun.core.annotation.NameInMap("CanBlock") private Boolean canBlock; @com.aliyun.core.annotation.NameInMap("Device") private String device; @com.aliyun.core.annotation.NameInMap("Need") private Boolean need; @com.aliyun.core.annotation.NameInMap("Path") private String path; @com.aliyun.core.annotation.NameInMap("SizeBytes") private Long sizeBytes; private SystemDiskPart(Builder builder) { this.canBlock = builder.canBlock; this.device = builder.device; this.need = builder.need; this.path = builder.path; this.sizeBytes = builder.sizeBytes; } public static Builder builder() { return new Builder(); } public static SystemDiskPart create() { return builder().build(); } /** * @return canBlock */ public Boolean getCanBlock() { return this.canBlock; } /** * @return device */ public String getDevice() { return this.device; } /** * @return need */ public Boolean getNeed() { return this.need; } /** * @return path */ public String getPath() { return this.path; } /** * @return sizeBytes */ public Long getSizeBytes() { return this.sizeBytes; } public static final class Builder { private Boolean canBlock; private String device; private Boolean need; private String path; private Long sizeBytes; private Builder() { } private Builder(SystemDiskPart model) { this.canBlock = model.canBlock; this.device = model.device; this.need = model.need; this.path = model.path; this.sizeBytes = model.sizeBytes; } /** * <p>Indicates whether block replication is enabled for the system disk partition.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder canBlock(Boolean canBlock) { this.canBlock = canBlock; return this; } /** * <p>The device ID of the system disk partition.</p> * * <strong>example:</strong> * <p>0_0</p> */ public Builder device(String device) { this.device = device; return this; } /** * <p>Indicates whether the system disk partition must be selected.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder need(Boolean need) { this.need = need; return this; } /** * <p>The path of the system disk partition.</p> * * <strong>example:</strong> * <p>/boot</p> */ public Builder path(String path) { this.path = path; return this; } /** * <p>The size of the system disk partition. Unit: bytes.</p> * * <strong>example:</strong> * <p>254803968</p> */ public Builder sizeBytes(Long sizeBytes) { this.sizeBytes = sizeBytes; return this; } public SystemDiskPart build() { return new SystemDiskPart(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class SystemDiskParts extends TeaModel { @com.aliyun.core.annotation.NameInMap("SystemDiskPart") private java.util.List<SystemDiskPart> systemDiskPart; private SystemDiskParts(Builder builder) { this.systemDiskPart = builder.systemDiskPart; } public static Builder builder() { return new Builder(); } public static SystemDiskParts create() { return builder().build(); } /** * @return systemDiskPart */ public java.util.List<SystemDiskPart> getSystemDiskPart() { return this.systemDiskPart; } public static final class Builder { private java.util.List<SystemDiskPart> systemDiskPart; private Builder() { } private Builder(SystemDiskParts model) { this.systemDiskPart = model.systemDiskPart; } /** * SystemDiskPart. */ public Builder systemDiskPart(java.util.List<SystemDiskPart> systemDiskPart) { this.systemDiskPart = systemDiskPart; return this; } public SystemDiskParts build() { return new SystemDiskParts(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</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 that is attached to the SMC resource. Valid values of N: 1 to 20.</p> * <p>You cannot specify an empty string as a tag key. The tag key can be up to 64 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun.</p> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N that is attached to the SMC resource. Valid values of N: 1 to 20.</p> * <p>The tag key can be an empty string. The tag value can be up to 64 characters in length and cannot contain http:// or https://.</p> * * <strong>example:</strong> * <p>TestValue</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private Tags(Builder builder) { this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder { private java.util.List<Tag> tag; private Builder() { } private Builder(Tags model) { this.tag = model.tag; } /** * Tag. */ public Builder tag(java.util.List<Tag> tag) { this.tag = tag; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class SourceServer extends TeaModel { @com.aliyun.core.annotation.NameInMap("AgentVersion") private String agentVersion; @com.aliyun.core.annotation.NameInMap("Architecture") private String architecture; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("DataDisks") private DataDisks dataDisks; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Disks") private Disks disks; @com.aliyun.core.annotation.NameInMap("ErrorCode") private String errorCode; @com.aliyun.core.annotation.NameInMap("HeartbeatRate") private Integer heartbeatRate; @com.aliyun.core.annotation.NameInMap("JobId") private String jobId; @com.aliyun.core.annotation.NameInMap("KernelLevel") private Integer kernelLevel; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Platform") private String platform; @com.aliyun.core.annotation.NameInMap("ReplicationDriver") private String replicationDriver; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("SourceId") private String sourceId; @com.aliyun.core.annotation.NameInMap("State") private String state; @com.aliyun.core.annotation.NameInMap("StatusInfo") private String statusInfo; @com.aliyun.core.annotation.NameInMap("SystemDiskParts") private SystemDiskParts systemDiskParts; @com.aliyun.core.annotation.NameInMap("SystemDiskSize") private Integer systemDiskSize; @com.aliyun.core.annotation.NameInMap("SystemInfo") private String systemInfo; @com.aliyun.core.annotation.NameInMap("Tags") private Tags tags; @com.aliyun.core.annotation.NameInMap("WorkgroupId") private String workgroupId; private SourceServer(Builder builder) { this.agentVersion = builder.agentVersion; this.architecture = builder.architecture; this.creationTime = builder.creationTime; this.dataDisks = builder.dataDisks; this.description = builder.description; this.disks = builder.disks; this.errorCode = builder.errorCode; this.heartbeatRate = builder.heartbeatRate; this.jobId = builder.jobId; this.kernelLevel = builder.kernelLevel; this.name = builder.name; this.platform = builder.platform; this.replicationDriver = builder.replicationDriver; this.resourceGroupId = builder.resourceGroupId; this.sourceId = builder.sourceId; this.state = builder.state; this.statusInfo = builder.statusInfo; this.systemDiskParts = builder.systemDiskParts; this.systemDiskSize = builder.systemDiskSize; this.systemInfo = builder.systemInfo; this.tags = builder.tags; this.workgroupId = builder.workgroupId; } public static Builder builder() { return new Builder(); } public static SourceServer create() { return builder().build(); } /** * @return agentVersion */ public String getAgentVersion() { return this.agentVersion; } /** * @return architecture */ public String getArchitecture() { return this.architecture; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return dataDisks */ public DataDisks getDataDisks() { return this.dataDisks; } /** * @return description */ public String getDescription() { return this.description; } /** * @return disks */ public Disks getDisks() { return this.disks; } /** * @return errorCode */ public String getErrorCode() { return this.errorCode; } /** * @return heartbeatRate */ public Integer getHeartbeatRate() { return this.heartbeatRate; } /** * @return jobId */ public String getJobId() { return this.jobId; } /** * @return kernelLevel */ public Integer getKernelLevel() { return this.kernelLevel; } /** * @return name */ public String getName() { return this.name; } /** * @return platform */ public String getPlatform() { return this.platform; } /** * @return replicationDriver */ public String getReplicationDriver() { return this.replicationDriver; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return sourceId */ public String getSourceId() { return this.sourceId; } /** * @return state */ public String getState() { return this.state; } /** * @return statusInfo */ public String getStatusInfo() { return this.statusInfo; } /** * @return systemDiskParts */ public SystemDiskParts getSystemDiskParts() { return this.systemDiskParts; } /** * @return systemDiskSize */ public Integer getSystemDiskSize() { return this.systemDiskSize; } /** * @return systemInfo */ public String getSystemInfo() { return this.systemInfo; } /** * @return tags */ public Tags getTags() { return this.tags; } /** * @return workgroupId */ public String getWorkgroupId() { return this.workgroupId; } public static final class Builder { private String agentVersion; private String architecture; private String creationTime; private DataDisks dataDisks; private String description; private Disks disks; private String errorCode; private Integer heartbeatRate; private String jobId; private Integer kernelLevel; private String name; private String platform; private String replicationDriver; private String resourceGroupId; private String sourceId; private String state; private String statusInfo; private SystemDiskParts systemDiskParts; private Integer systemDiskSize; private String systemInfo; private Tags tags; private String workgroupId; private Builder() { } private Builder(SourceServer model) { this.agentVersion = model.agentVersion; this.architecture = model.architecture; this.creationTime = model.creationTime; this.dataDisks = model.dataDisks; this.description = model.description; this.disks = model.disks; this.errorCode = model.errorCode; this.heartbeatRate = model.heartbeatRate; this.jobId = model.jobId; this.kernelLevel = model.kernelLevel; this.name = model.name; this.platform = model.platform; this.replicationDriver = model.replicationDriver; this.resourceGroupId = model.resourceGroupId; this.sourceId = model.sourceId; this.state = model.state; this.statusInfo = model.statusInfo; this.systemDiskParts = model.systemDiskParts; this.systemDiskSize = model.systemDiskSize; this.systemInfo = model.systemInfo; this.tags = model.tags; this.workgroupId = model.workgroupId; } /** * <p>The version number of the SMC client.</p> * * <strong>example:</strong> * <p>1.5.2.3</p> */ public Builder agentVersion(String agentVersion) { this.agentVersion = agentVersion; return this; } /** * <p>The system architecture of the migration source.</p> * * <strong>example:</strong> * <p>x86_64</p> */ public Builder architecture(String architecture) { this.architecture = architecture; return this; } /** * <p>The time when the migration source was created.</p> * * <strong>example:</strong> * <p>2019-06-27T02:58:09Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The data disks on the migration source.</p> */ public Builder dataDisks(DataDisks dataDisks) { this.dataDisks = dataDisks; return this; } /** * <p>The description of the migration source.</p> * * <strong>example:</strong> * <p>Server Source Imported By GotoAliyun.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The information about the disk.</p> */ public Builder disks(Disks disks) { this.disks = disks; return this; } /** * <p>The error code of the migration source.</p> * * <strong>example:</strong> * <p>SourceServer.Offline</p> */ public Builder errorCode(String errorCode) { this.errorCode = errorCode; return this; } /** * <p>The interval at which heartbeats are sent from the SMC client. Unit: seconds.</p> * * <strong>example:</strong> * <p>30</p> */ public Builder heartbeatRate(Integer heartbeatRate) { this.heartbeatRate = heartbeatRate; return this; } /** * <p>The ID of the last migration job.</p> * * <strong>example:</strong> * <p>j-bp19vlwm0tyigbmj****</p> */ public Builder jobId(String jobId) { this.jobId = jobId; return this; } /** * <p>The kernel level of the migration source.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder kernelLevel(Integer kernelLevel) { this.kernelLevel = kernelLevel; return this; } /** * <p>The name of the migration source.</p> * * <strong>example:</strong> * <p>SourceServerName</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The operating system of the migration source.</p> * * <strong>example:</strong> * <p>OpenSUSE</p> */ public Builder platform(String platform) { this.platform = platform; return this; } /** * <p>The replication driver used for migration. Default value: SMT.</p> * * <strong>example:</strong> * <p>SMT</p> */ public Builder replicationDriver(String replicationDriver) { this.replicationDriver = replicationDriver; return this; } /** * <p>The resource group ID.</p> * * <strong>example:</strong> * <p>rg-acfmw3ty5y7****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The ID of the migration source.</p> * * <strong>example:</strong> * <p>s-bp1e2fsl57knvuug****</p> */ public Builder sourceId(String sourceId) { this.sourceId = sourceId; return this; } /** * <p>The state of the migration source.</p> * * <strong>example:</strong> * <p>InUse</p> */ public Builder state(String state) { this.state = state; return this; } /** * <p>The status information of the migration source. This parameter is returned if the migration source is in the Unavailable state. The value of this parameter consists of key-value pairs in the JSON format. Sample keys:</p> * <pre><code>error_code: The error code. * error_msg: the error message. * </code></pre> * * <strong>example:</strong> * <p>{&quot;error_code&quot;: &quot;S1&quot;, &quot;error_msg&quot;: &quot;Rsync not found. Please install rsync.&quot;}</p> */ public Builder statusInfo(String statusInfo) { this.statusInfo = statusInfo; return this; } /** * <p>The information about the system disk partition.</p> */ public Builder systemDiskParts(SystemDiskParts systemDiskParts) { this.systemDiskParts = systemDiskParts; return this; } /** * <p>The system disk size of the migration source. Unit: GiB</p> * * <strong>example:</strong> * <p>40</p> */ public Builder systemDiskSize(Integer systemDiskSize) { this.systemDiskSize = systemDiskSize; return this; } /** * <p>The system information of the migration source. The parameter must be specified as key-value pairs in the JSON format. The key-value pairs are extensible and have fixed keys. Maximum value: 1 KB. Example:</p> * <pre><code>agent_mode: the running mode. * agent_type: the type of the run. * client_type: the type of the client. * hostname : the hostname. * ipv4:IPv4 address * ipv6: IPv6 address * cores: the number of CPU cores. * cpu_usage: the CPU utilization. * memory: the memory size. * memory_usage: the memory usage. * </code></pre> * * <strong>example:</strong> * <p>{&quot;agent_mode&quot;:&quot;daemon&quot;,&quot;agent_type&quot;:&quot;aliyun&quot;,&quot;client_type&quot;:&quot;&quot;,&quot;cores&quot;:&quot;2&quot;,&quot;cpu_usage&quot;:&quot;0.00&quot;,&quot;hostname&quot;:&quot;ixxxxxxxxxx&quot;,&quot;ipv4&quot;:&quot;10.0.0.1&quot;,&quot;memory&quot;:&quot;8.00&quot;,&quot;memory_usage&quot;:&quot;3.61&quot;}</p> */ public Builder systemInfo(String systemInfo) { this.systemInfo = systemInfo; return this; } /** * <p>The tag details.</p> */ public Builder tags(Tags tags) { this.tags = tags; return this; } /** * <p>The workgroup ID.</p> * * <strong>example:</strong> * <p>w-bp1ja22kdqphehlj****</p> */ public Builder workgroupId(String workgroupId) { this.workgroupId = workgroupId; return this; } public SourceServer build() { return new SourceServer(this); } } } /** * * {@link DescribeSourceServersResponseBody} extends {@link TeaModel} * * <p>DescribeSourceServersResponseBody</p> */ public static class SourceServers extends TeaModel { @com.aliyun.core.annotation.NameInMap("SourceServer") private java.util.List<SourceServer> sourceServer; private SourceServers(Builder builder) { this.sourceServer = builder.sourceServer; } public static Builder builder() { return new Builder(); } public static SourceServers create() { return builder().build(); } /** * @return sourceServer */ public java.util.List<SourceServer> getSourceServer() { return this.sourceServer; } public static final class Builder { private java.util.List<SourceServer> sourceServer; private Builder() { } private Builder(SourceServers model) { this.sourceServer = model.sourceServer; } /** * SourceServer. */ public Builder sourceServer(java.util.List<SourceServer> sourceServer) { this.sourceServer = sourceServer; return this; } public SourceServers build() { return new SourceServers(this); } } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DescribeWorkgroupsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DescribeWorkgroupsRequest} extends {@link RequestModel} * * <p>DescribeWorkgroupsRequest</p> */ public class DescribeWorkgroupsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @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") @com.aliyun.core.annotation.Validation(maximum = 50) private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private String status; @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("WorkgroupId") private java.util.List<String> workgroupId; private DescribeWorkgroupsRequest(Builder builder) { super(builder); this.name = builder.name; this.ownerId = builder.ownerId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.status = builder.status; this.tag = builder.tag; this.workgroupId = builder.workgroupId; } public static Builder builder() { return new Builder(); } public static DescribeWorkgroupsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return name */ public String getName() { return this.name; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } /** * @return workgroupId */ public java.util.List<String> getWorkgroupId() { return this.workgroupId; } public static final class Builder extends Request.Builder<DescribeWorkgroupsRequest, Builder> { private String name; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String resourceOwnerAccount; private String status; private java.util.List<Tag> tag; private java.util.List<String> workgroupId; private Builder() { super(); } private Builder(DescribeWorkgroupsRequest request) { super(request); this.name = request.name; this.ownerId = request.ownerId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.resourceOwnerAccount = request.resourceOwnerAccount; this.status = request.status; this.tag = request.tag; this.workgroupId = request.workgroupId; } /** * <p>The name of the workgroup.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The page number. Minimum value: 1. Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Valid values: 1 to 50. Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The state of the workgroup. Valid values:</p> * <ul> * <li>NotStarted</li> * <li>InProgress</li> * <li>Cutover</li> * <li>Completed</li> * </ul> * * <strong>example:</strong> * <p>InProgress</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } /** * <p>The tags of the reserved instance. You can specify up to 20 tags. If you specify multiple tags, the tag keys cannot be duplicated.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * <p>The workgroup IDs. You can specify up to 50 workgroup IDs.</p> */ public Builder workgroupId(java.util.List<String> workgroupId) { this.putQueryParameter("WorkgroupId", workgroupId); this.workgroupId = workgroupId; return this; } @Override public DescribeWorkgroupsRequest build() { return new DescribeWorkgroupsRequest(this); } } /** * * {@link DescribeWorkgroupsRequest} extends {@link TeaModel} * * <p>DescribeWorkgroupsRequest</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 workgroup. You cannot specify an empty string as a tag key. The tag key can be up to 128 characters in length and cannot start with <code>aliyun</code> or <code>acs:</code>. It cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the workgroup. The tag value can be up to 128 characters in length, cannot be an empty string, and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>TestValue</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DescribeWorkgroupsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DescribeWorkgroupsResponse} extends {@link TeaModel} * * <p>DescribeWorkgroupsResponse</p> */ public class DescribeWorkgroupsResponse 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 DescribeWorkgroupsResponseBody body; private DescribeWorkgroupsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeWorkgroupsResponse 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 DescribeWorkgroupsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeWorkgroupsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeWorkgroupsResponseBody body); @Override DescribeWorkgroupsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeWorkgroupsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeWorkgroupsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeWorkgroupsResponse 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(DescribeWorkgroupsResponseBody body) { this.body = body; return this; } @Override public DescribeWorkgroupsResponse build() { return new DescribeWorkgroupsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DescribeWorkgroupsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DescribeWorkgroupsResponseBody} extends {@link TeaModel} * * <p>DescribeWorkgroupsResponseBody</p> */ public class DescribeWorkgroupsResponseBody 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("TotalCount") private Integer totalCount; @com.aliyun.core.annotation.NameInMap("Workgroups") private Workgroups workgroups; private DescribeWorkgroupsResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.workgroups = builder.workgroups; } public static Builder builder() { return new Builder(); } public static DescribeWorkgroupsResponseBody 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 totalCount */ public Integer getTotalCount() { return this.totalCount; } /** * @return workgroups */ public Workgroups getWorkgroups() { return this.workgroups; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private Workgroups workgroups; private Builder() { } private Builder(DescribeWorkgroupsResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; this.workgroups = model.workgroups; } /** * <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. Valid values: 1 to 50. 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>2D69A58F-345C-4FDE-88E4-BF518948****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of workgroups.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } /** * <p>The details of the workgroup.</p> */ public Builder workgroups(Workgroups workgroups) { this.workgroups = workgroups; return this; } public DescribeWorkgroupsResponseBody build() { return new DescribeWorkgroupsResponseBody(this); } } /** * * {@link DescribeWorkgroupsResponseBody} extends {@link TeaModel} * * <p>DescribeWorkgroupsResponseBody</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 workgroup.</p> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the workgroup.</p> * * <strong>example:</strong> * <p>TestValue</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } /** * * {@link DescribeWorkgroupsResponseBody} extends {@link TeaModel} * * <p>DescribeWorkgroupsResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private Tags(Builder builder) { this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder { private java.util.List<Tag> tag; private Builder() { } private Builder(Tags model) { this.tag = model.tag; } /** * Tag. */ public Builder tag(java.util.List<Tag> tag) { this.tag = tag; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link DescribeWorkgroupsResponseBody} extends {@link TeaModel} * * <p>DescribeWorkgroupsResponseBody</p> */ public static class SourceIds extends TeaModel { @com.aliyun.core.annotation.NameInMap("SourceId") private java.util.List<String> sourceId; private SourceIds(Builder builder) { this.sourceId = builder.sourceId; } public static Builder builder() { return new Builder(); } public static SourceIds create() { return builder().build(); } /** * @return sourceId */ public java.util.List<String> getSourceId() { return this.sourceId; } public static final class Builder { private java.util.List<String> sourceId; private Builder() { } private Builder(SourceIds model) { this.sourceId = model.sourceId; } /** * SourceId. */ public Builder sourceId(java.util.List<String> sourceId) { this.sourceId = sourceId; return this; } public SourceIds build() { return new SourceIds(this); } } } /** * * {@link DescribeWorkgroupsResponseBody} extends {@link TeaModel} * * <p>DescribeWorkgroupsResponseBody</p> */ public static class Warning extends TeaModel { @com.aliyun.core.annotation.NameInMap("SourceIds") private SourceIds sourceIds; @com.aliyun.core.annotation.NameInMap("WarningType") private String warningType; private Warning(Builder builder) { this.sourceIds = builder.sourceIds; this.warningType = builder.warningType; } public static Builder builder() { return new Builder(); } public static Warning create() { return builder().build(); } /** * @return sourceIds */ public SourceIds getSourceIds() { return this.sourceIds; } /** * @return warningType */ public String getWarningType() { return this.warningType; } public static final class Builder { private SourceIds sourceIds; private String warningType; private Builder() { } private Builder(Warning model) { this.sourceIds = model.sourceIds; this.warningType = model.warningType; } /** * <p>The migration sources for which alerts are generated.</p> */ public Builder sourceIds(SourceIds sourceIds) { this.sourceIds = sourceIds; return this; } /** * <p>The type of the alert. Valid values:</p> * <ul> * <li>InError: A migration job failed.</li> * <li>UnRelated: No migration job is created for a migration source.</li> * <li>NotPassed: A migration job failed to pass the migration test.</li> * </ul> * * <strong>example:</strong> * <p>InError</p> */ public Builder warningType(String warningType) { this.warningType = warningType; return this; } public Warning build() { return new Warning(this); } } } /** * * {@link DescribeWorkgroupsResponseBody} extends {@link TeaModel} * * <p>DescribeWorkgroupsResponseBody</p> */ public static class Warnings extends TeaModel { @com.aliyun.core.annotation.NameInMap("Warning") private java.util.List<Warning> warning; private Warnings(Builder builder) { this.warning = builder.warning; } public static Builder builder() { return new Builder(); } public static Warnings create() { return builder().build(); } /** * @return warning */ public java.util.List<Warning> getWarning() { return this.warning; } public static final class Builder { private java.util.List<Warning> warning; private Builder() { } private Builder(Warnings model) { this.warning = model.warning; } /** * Warning. */ public Builder warning(java.util.List<Warning> warning) { this.warning = warning; return this; } public Warnings build() { return new Warnings(this); } } } /** * * {@link DescribeWorkgroupsResponseBody} extends {@link TeaModel} * * <p>DescribeWorkgroupsResponseBody</p> */ public static class Workgroup extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tags") private Tags tags; @com.aliyun.core.annotation.NameInMap("Warnings") private Warnings warnings; @com.aliyun.core.annotation.NameInMap("WorkgroupId") private String workgroupId; private Workgroup(Builder builder) { this.description = builder.description; this.name = builder.name; this.status = builder.status; this.tags = builder.tags; this.warnings = builder.warnings; this.workgroupId = builder.workgroupId; } public static Builder builder() { return new Builder(); } public static Workgroup create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return name */ public String getName() { return this.name; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public Tags getTags() { return this.tags; } /** * @return warnings */ public Warnings getWarnings() { return this.warnings; } /** * @return workgroupId */ public String getWorkgroupId() { return this.workgroupId; } public static final class Builder { private String description; private String name; private String status; private Tags tags; private Warnings warnings; private String workgroupId; private Builder() { } private Builder(Workgroup model) { this.description = model.description; this.name = model.name; this.status = model.status; this.tags = model.tags; this.warnings = model.warnings; this.workgroupId = model.workgroupId; } /** * <p>The description of the workgroup.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The name of the workgroup.</p> * * <strong>example:</strong> * <p>testWorkgroupName</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The state of the workgroup. Valid values:</p> * <ul> * <li>NotStarted</li> * <li>InProgress</li> * <li>Cutover</li> * <li>Completed</li> * </ul> * * <strong>example:</strong> * <p>InProgress</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tag information of the workgroup.</p> */ public Builder tags(Tags tags) { this.tags = tags; return this; } /** * <p>The alert information of the workgroup, which can contain multiple types of alerts.</p> */ public Builder warnings(Warnings warnings) { this.warnings = warnings; return this; } /** * <p>The ID of the workgroup.</p> * * <strong>example:</strong> * <p>w-***</p> */ public Builder workgroupId(String workgroupId) { this.workgroupId = workgroupId; return this; } public Workgroup build() { return new Workgroup(this); } } } /** * * {@link DescribeWorkgroupsResponseBody} extends {@link TeaModel} * * <p>DescribeWorkgroupsResponseBody</p> */ public static class Workgroups extends TeaModel { @com.aliyun.core.annotation.NameInMap("Workgroup") private java.util.List<Workgroup> workgroup; private Workgroups(Builder builder) { this.workgroup = builder.workgroup; } public static Builder builder() { return new Builder(); } public static Workgroups create() { return builder().build(); } /** * @return workgroup */ public java.util.List<Workgroup> getWorkgroup() { return this.workgroup; } public static final class Builder { private java.util.List<Workgroup> workgroup; private Builder() { } private Builder(Workgroups model) { this.workgroup = model.workgroup; } /** * Workgroup. */ public Builder workgroup(java.util.List<Workgroup> workgroup) { this.workgroup = workgroup; return this; } public Workgroups build() { return new Workgroups(this); } } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DisableAccessTokenRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DisableAccessTokenRequest} extends {@link RequestModel} * * <p>DisableAccessTokenRequest</p> */ public class DisableAccessTokenRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccessTokenId") @com.aliyun.core.annotation.Validation(required = true) private String accessTokenId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; private DisableAccessTokenRequest(Builder builder) { super(builder); this.accessTokenId = builder.accessTokenId; this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; } public static Builder builder() { return new Builder(); } public static DisableAccessTokenRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return accessTokenId */ public String getAccessTokenId() { return this.accessTokenId; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } public static final class Builder extends Request.Builder<DisableAccessTokenRequest, Builder> { private String accessTokenId; private Long ownerId; private String resourceOwnerAccount; private Builder() { super(); } private Builder(DisableAccessTokenRequest request) { super(request); this.accessTokenId = request.accessTokenId; this.ownerId = request.ownerId; this.resourceOwnerAccount = request.resourceOwnerAccount; } /** * <p>The ID of the activation code.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>at-bp12g5gwup0yzmce****</p> */ public Builder accessTokenId(String accessTokenId) { this.putQueryParameter("AccessTokenId", accessTokenId); this.accessTokenId = accessTokenId; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } @Override public DisableAccessTokenRequest build() { return new DisableAccessTokenRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DisableAccessTokenResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DisableAccessTokenResponse} extends {@link TeaModel} * * <p>DisableAccessTokenResponse</p> */ public class DisableAccessTokenResponse 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 DisableAccessTokenResponseBody body; private DisableAccessTokenResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DisableAccessTokenResponse 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 DisableAccessTokenResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DisableAccessTokenResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DisableAccessTokenResponseBody body); @Override DisableAccessTokenResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DisableAccessTokenResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DisableAccessTokenResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DisableAccessTokenResponse 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(DisableAccessTokenResponseBody body) { this.body = body; return this; } @Override public DisableAccessTokenResponse build() { return new DisableAccessTokenResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DisableAccessTokenResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DisableAccessTokenResponseBody} extends {@link TeaModel} * * <p>DisableAccessTokenResponseBody</p> */ public class DisableAccessTokenResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DisableAccessTokenResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DisableAccessTokenResponseBody 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(DisableAccessTokenResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>686BB8A6-BBA5-47E5-8A75-D2ADE433****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DisableAccessTokenResponseBody build() { return new DisableAccessTokenResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DisassociateSourceServersRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DisassociateSourceServersRequest} extends {@link RequestModel} * * <p>DisassociateSourceServersRequest</p> */ public class DisassociateSourceServersRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceId") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> sourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("WorkgroupId") @com.aliyun.core.annotation.Validation(required = true) private String workgroupId; private DisassociateSourceServersRequest(Builder builder) { super(builder); this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.sourceId = builder.sourceId; this.workgroupId = builder.workgroupId; } public static Builder builder() { return new Builder(); } public static DisassociateSourceServersRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return sourceId */ public java.util.List<String> getSourceId() { return this.sourceId; } /** * @return workgroupId */ public String getWorkgroupId() { return this.workgroupId; } public static final class Builder extends Request.Builder<DisassociateSourceServersRequest, Builder> { private Long ownerId; private String resourceOwnerAccount; private java.util.List<String> sourceId; private String workgroupId; private Builder() { super(); } private Builder(DisassociateSourceServersRequest request) { super(request); this.ownerId = request.ownerId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.sourceId = request.sourceId; this.workgroupId = request.workgroupId; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The IDs of migration sources that you want to disassociate from the workgroup. You can specify up to 50 migration sources.</p> * <p>This parameter is required.</p> */ public Builder sourceId(java.util.List<String> sourceId) { this.putQueryParameter("SourceId", sourceId); this.sourceId = sourceId; return this; } /** * <p>The ID of the workgroup.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>w-***</p> */ public Builder workgroupId(String workgroupId) { this.putQueryParameter("WorkgroupId", workgroupId); this.workgroupId = workgroupId; return this; } @Override public DisassociateSourceServersRequest build() { return new DisassociateSourceServersRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DisassociateSourceServersResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DisassociateSourceServersResponse} extends {@link TeaModel} * * <p>DisassociateSourceServersResponse</p> */ public class DisassociateSourceServersResponse 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 DisassociateSourceServersResponseBody body; private DisassociateSourceServersResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DisassociateSourceServersResponse 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 DisassociateSourceServersResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DisassociateSourceServersResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DisassociateSourceServersResponseBody body); @Override DisassociateSourceServersResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DisassociateSourceServersResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DisassociateSourceServersResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DisassociateSourceServersResponse 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(DisassociateSourceServersResponseBody body) { this.body = body; return this; } @Override public DisassociateSourceServersResponse build() { return new DisassociateSourceServersResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/DisassociateSourceServersResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 DisassociateSourceServersResponseBody} extends {@link TeaModel} * * <p>DisassociateSourceServersResponseBody</p> */ public class DisassociateSourceServersResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DisassociateSourceServersResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DisassociateSourceServersResponseBody 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(DisassociateSourceServersResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>3E8B9ABB-289A-44E6-942D-8AA9E493****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DisassociateSourceServersResponseBody build() { return new DisassociateSourceServersResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ListAccessTokensRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 ListAccessTokensRequest} extends {@link RequestModel} * * <p>ListAccessTokensRequest</p> */ public class ListAccessTokensRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccessTokenId") private java.util.List<String> accessTokenId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private String status; private ListAccessTokensRequest(Builder builder) { super(builder); this.accessTokenId = builder.accessTokenId; this.name = builder.name; this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static ListAccessTokensRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return accessTokenId */ public java.util.List<String> getAccessTokenId() { return this.accessTokenId; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder extends Request.Builder<ListAccessTokensRequest, Builder> { private java.util.List<String> accessTokenId; private String name; private Long ownerId; private String resourceOwnerAccount; private String status; private Builder() { super(); } private Builder(ListAccessTokensRequest request) { super(request); this.accessTokenId = request.accessTokenId; this.name = request.name; this.ownerId = request.ownerId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.status = request.status; } /** * <p>The information about activation codes.</p> */ public Builder accessTokenId(java.util.List<String> accessTokenId) { this.putQueryParameter("AccessTokenId", accessTokenId); this.accessTokenId = accessTokenId; return this; } /** * <p>The name of the activation code.</p> * * <strong>example:</strong> * <p>test_name</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The status of the activation code. Valid values:</p> * <ul> * <li>activated</li> * <li>unactivated</li> * <li>expired</li> * </ul> * * <strong>example:</strong> * <p>activated</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } @Override public ListAccessTokensRequest build() { return new ListAccessTokensRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ListAccessTokensResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 ListAccessTokensResponse} extends {@link TeaModel} * * <p>ListAccessTokensResponse</p> */ public class ListAccessTokensResponse 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 ListAccessTokensResponseBody body; private ListAccessTokensResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListAccessTokensResponse 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 ListAccessTokensResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListAccessTokensResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListAccessTokensResponseBody body); @Override ListAccessTokensResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListAccessTokensResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListAccessTokensResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListAccessTokensResponse 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(ListAccessTokensResponseBody body) { this.body = body; return this; } @Override public ListAccessTokensResponse build() { return new ListAccessTokensResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ListAccessTokensResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 ListAccessTokensResponseBody} extends {@link TeaModel} * * <p>ListAccessTokensResponseBody</p> */ public class ListAccessTokensResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccessTokens") private AccessTokens accessTokens; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private ListAccessTokensResponseBody(Builder builder) { this.accessTokens = builder.accessTokens; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListAccessTokensResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return accessTokens */ public AccessTokens getAccessTokens() { return this.accessTokens; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private AccessTokens accessTokens; private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private Builder() { } private Builder(ListAccessTokensResponseBody model) { this.accessTokens = model.accessTokens; this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The activation codes returned.</p> */ public Builder accessTokens(AccessTokens accessTokens) { this.accessTokens = accessTokens; return this; } /** * <p>The number of entries per page. Valid values:</p> * <ul> * <li>10</li> * <li>20</li> * <li>50</li> * </ul> * <p>Default value: 20.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The page number.</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>E2DA3097-79B9-53AE-B0DF-281DC54F****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of migration sources returned.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public ListAccessTokensResponseBody build() { return new ListAccessTokensResponseBody(this); } } /** * * {@link ListAccessTokensResponseBody} extends {@link TeaModel} * * <p>ListAccessTokensResponseBody</p> */ public static class AccessToken extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccessTokenId") private String accessTokenId; @com.aliyun.core.annotation.NameInMap("Count") private String count; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("RegisteredCount") private String registeredCount; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("TimeToLiveInDays") private String timeToLiveInDays; private AccessToken(Builder builder) { this.accessTokenId = builder.accessTokenId; this.count = builder.count; this.creationTime = builder.creationTime; this.description = builder.description; this.name = builder.name; this.registeredCount = builder.registeredCount; this.status = builder.status; this.timeToLiveInDays = builder.timeToLiveInDays; } public static Builder builder() { return new Builder(); } public static AccessToken create() { return builder().build(); } /** * @return accessTokenId */ public String getAccessTokenId() { return this.accessTokenId; } /** * @return count */ public String getCount() { return this.count; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return name */ public String getName() { return this.name; } /** * @return registeredCount */ public String getRegisteredCount() { return this.registeredCount; } /** * @return status */ public String getStatus() { return this.status; } /** * @return timeToLiveInDays */ public String getTimeToLiveInDays() { return this.timeToLiveInDays; } public static final class Builder { private String accessTokenId; private String count; private String creationTime; private String description; private String name; private String registeredCount; private String status; private String timeToLiveInDays; private Builder() { } private Builder(AccessToken model) { this.accessTokenId = model.accessTokenId; this.count = model.count; this.creationTime = model.creationTime; this.description = model.description; this.name = model.name; this.registeredCount = model.registeredCount; this.status = model.status; this.timeToLiveInDays = model.timeToLiveInDays; } /** * <p>The ID of the activation code.</p> * * <strong>example:</strong> * <p>at-bp1akz2zp67r0k6r****</p> */ public Builder accessTokenId(String accessTokenId) { this.accessTokenId = accessTokenId; return this; } /** * <p>The maximum number of times that the activation code can be used. Valid values: 1 to 1000.</p> * <p>Default value: 100.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder count(String count) { this.count = count; return this; } /** * <p>The time when the activation code was created. The time follows the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2022-09-09T02:35:44Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The description of the activation code.</p> * * <strong>example:</strong> * <p>This is an activation code</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The name of the activation code.</p> * * <strong>example:</strong> * <p>test_name</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The number of migration sources whose information has been imported to Server Migration Center (SMC) by using the activation code.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder registeredCount(String registeredCount) { this.registeredCount = registeredCount; return this; } /** * <p>The status of the activation code. Valid values:</p> * <ul> * <li>activated</li> * <li>unactivated</li> * <li>expired</li> * </ul> * * <strong>example:</strong> * <p>activated</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The validity period of the activation code. Unit: day. Valid values: 1 to 90. Default value: 30.</p> * * <strong>example:</strong> * <p>30</p> */ public Builder timeToLiveInDays(String timeToLiveInDays) { this.timeToLiveInDays = timeToLiveInDays; return this; } public AccessToken build() { return new AccessToken(this); } } } /** * * {@link ListAccessTokensResponseBody} extends {@link TeaModel} * * <p>ListAccessTokensResponseBody</p> */ public static class AccessTokens extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccessToken") private java.util.List<AccessToken> accessToken; private AccessTokens(Builder builder) { this.accessToken = builder.accessToken; } public static Builder builder() { return new Builder(); } public static AccessTokens create() { return builder().build(); } /** * @return accessToken */ public java.util.List<AccessToken> getAccessToken() { return this.accessToken; } public static final class Builder { private java.util.List<AccessToken> accessToken; private Builder() { } private Builder(AccessTokens model) { this.accessToken = model.accessToken; } /** * AccessToken. */ public Builder accessToken(java.util.List<AccessToken> accessToken) { this.accessToken = accessToken; return this; } public AccessTokens build() { return new AccessTokens(this); } } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ListTagResourcesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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("OwnerId") private Long ownerId; @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("ResourceOwnerAccount") private String resourceOwnerAccount; @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.ownerId = builder.ownerId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; 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 ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceId */ public java.util.List<String> getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @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 Long ownerId; private java.util.List<String> resourceId; private String resourceOwnerAccount; private String resourceType; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(ListTagResourcesRequest request) { super(request); this.nextToken = request.nextToken; this.ownerId = request.ownerId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; 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>caeba0bbb2be03f84eb48b699f0a4883</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The IDs of SMC resources. SMC resources include migration sources and migration jobs. You can specify a maximum of 50 SMC resource IDs.</p> * * <strong>example:</strong> * <p>s-bp1e2fsl57knvuug****</p> */ public Builder resourceId(java.util.List<String> resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The type of the SMC resource. Valid values:</p> * <ul> * <li>sourceserver: migration source.</li> * <li>replicationjob: migration job.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>sourceserver</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The tags that are attached to SMC resources.</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 key of tag N. The tag key must be 1 to 64 characters in length. Valid values of N: 1 to 20.</p> * <p>Tag.N is used for exact match of SMC resources to which the tag is attached. Tag N consists of a key-value pair.</p> * <ul> * <li>Tag keys and values are case-sensitive.</li> * <li>If you set only the Tag.N.Key parameter, all resources to which the specified tags are attached are returned.</li> * <li>If you set only the Tag.N.Value parameter, the error message InvalidParameter.TagValue is returned.</li> * <li>If you specify multiple tag key-value pairs at a time, only SMC resources that match all tag key-value pairs are returned.</li> * </ul> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N. The value must be 1 to 64 characters in length. Valid values of N: 1 to 20.</p> * * <strong>example:</strong> * <p>TestValue</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ListTagResourcesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ListTagResourcesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 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 TagResources getTagResources() { return this.tagResources; } public static final class Builder { private String nextToken; private String requestId; private TagResources tagResources; private Builder() { } private Builder(ListTagResourcesResponseBody model) { this.nextToken = model.nextToken; this.requestId = model.requestId; this.tagResources = model.tagResources; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results.</p> * <p>If NextToken is empty, no next page exists.</p> * * <strong>example:</strong> * <p>caeba0bbb2be03f84eb48b699f0a4883</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>17743161-66F3-4E7F-B8AE-845FB28B928F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information about SMC resources and tags, such as the IDs, types, and tag key-value pairs of the resources.</p> */ public Builder tagResources(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 TagResource 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 TagResource(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 TagResource 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(TagResource model) { this.resourceId = model.resourceId; this.resourceType = model.resourceType; this.tagKey = model.tagKey; this.tagValue = model.tagValue; } /** * <p>The resource ID.</p> * * <strong>example:</strong> * <p>s-bp1e2fsl57knvuug****</p> */ public Builder resourceId(String resourceId) { this.resourceId = resourceId; return this; } /** * <p>The type of the resource.</p> * * <strong>example:</strong> * <p>ALIYUN::SMC::SOURCESERVER</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The key of the tag that is attached to the resource.</p> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder tagKey(String tagKey) { this.tagKey = tagKey; return this; } /** * <p>The value of the tag that is attached to the resource.</p> * * <strong>example:</strong> * <p>TestValue</p> */ public Builder tagValue(String tagValue) { this.tagValue = tagValue; return this; } public TagResource build() { return new TagResource(this); } } } /** * * {@link ListTagResourcesResponseBody} extends {@link TeaModel} * * <p>ListTagResourcesResponseBody</p> */ public static class TagResources extends TeaModel { @com.aliyun.core.annotation.NameInMap("TagResource") private java.util.List<TagResource> tagResource; private TagResources(Builder builder) { this.tagResource = builder.tagResource; } public static Builder builder() { return new Builder(); } public static TagResources create() { return builder().build(); } /** * @return tagResource */ public java.util.List<TagResource> getTagResource() { return this.tagResource; } public static final class Builder { private java.util.List<TagResource> tagResource; private Builder() { } private Builder(TagResources model) { this.tagResource = model.tagResource; } /** * TagResource. */ public Builder tagResource(java.util.List<TagResource> tagResource) { this.tagResource = tagResource; return this; } public TagResources build() { return new TagResources(this); } } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ModifyReplicationJobAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 ModifyReplicationJobAttributeRequest} extends {@link RequestModel} * * <p>ModifyReplicationJobAttributeRequest</p> */ public class ModifyReplicationJobAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ContainerNamespace") private String containerNamespace; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ContainerRepository") private String containerRepository; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ContainerTag") private String containerTag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DataDisk") private java.util.List<DataDisk> dataDisk; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Frequency") private Integer frequency; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageName") private String imageName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceRamRole") private String instanceRamRole; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceType") private String instanceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("JobId") @com.aliyun.core.annotation.Validation(required = true) private String jobId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LaunchTemplateId") private String launchTemplateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LaunchTemplateVersion") private String launchTemplateVersion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxNumberOfImageToKeep") private Integer maxNumberOfImageToKeep; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NetMode") private Integer netMode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ReplicationParameters") private String replicationParameters; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScheduledStartTime") private String scheduledStartTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SystemDiskPart") private java.util.List<SystemDiskPart> systemDiskPart; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SystemDiskSize") private Integer systemDiskSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TargetType") private String targetType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ValidTime") private String validTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; private ModifyReplicationJobAttributeRequest(Builder builder) { super(builder); this.containerNamespace = builder.containerNamespace; this.containerRepository = builder.containerRepository; this.containerTag = builder.containerTag; this.dataDisk = builder.dataDisk; this.description = builder.description; this.frequency = builder.frequency; this.imageName = builder.imageName; this.instanceId = builder.instanceId; this.instanceRamRole = builder.instanceRamRole; this.instanceType = builder.instanceType; this.jobId = builder.jobId; this.launchTemplateId = builder.launchTemplateId; this.launchTemplateVersion = builder.launchTemplateVersion; this.maxNumberOfImageToKeep = builder.maxNumberOfImageToKeep; this.name = builder.name; this.netMode = builder.netMode; this.ownerId = builder.ownerId; this.replicationParameters = builder.replicationParameters; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.scheduledStartTime = builder.scheduledStartTime; this.systemDiskPart = builder.systemDiskPart; this.systemDiskSize = builder.systemDiskSize; this.targetType = builder.targetType; this.vSwitchId = builder.vSwitchId; this.validTime = builder.validTime; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static ModifyReplicationJobAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return containerNamespace */ public String getContainerNamespace() { return this.containerNamespace; } /** * @return containerRepository */ public String getContainerRepository() { return this.containerRepository; } /** * @return containerTag */ public String getContainerTag() { return this.containerTag; } /** * @return dataDisk */ public java.util.List<DataDisk> getDataDisk() { return this.dataDisk; } /** * @return description */ public String getDescription() { return this.description; } /** * @return frequency */ public Integer getFrequency() { return this.frequency; } /** * @return imageName */ public String getImageName() { return this.imageName; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceRamRole */ public String getInstanceRamRole() { return this.instanceRamRole; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } /** * @return jobId */ public String getJobId() { return this.jobId; } /** * @return launchTemplateId */ public String getLaunchTemplateId() { return this.launchTemplateId; } /** * @return launchTemplateVersion */ public String getLaunchTemplateVersion() { return this.launchTemplateVersion; } /** * @return maxNumberOfImageToKeep */ public Integer getMaxNumberOfImageToKeep() { return this.maxNumberOfImageToKeep; } /** * @return name */ public String getName() { return this.name; } /** * @return netMode */ public Integer getNetMode() { return this.netMode; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return replicationParameters */ public String getReplicationParameters() { return this.replicationParameters; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return scheduledStartTime */ public String getScheduledStartTime() { return this.scheduledStartTime; } /** * @return systemDiskPart */ public java.util.List<SystemDiskPart> getSystemDiskPart() { return this.systemDiskPart; } /** * @return systemDiskSize */ public Integer getSystemDiskSize() { return this.systemDiskSize; } /** * @return targetType */ public String getTargetType() { return this.targetType; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } /** * @return validTime */ public String getValidTime() { return this.validTime; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder extends Request.Builder<ModifyReplicationJobAttributeRequest, Builder> { private String containerNamespace; private String containerRepository; private String containerTag; private java.util.List<DataDisk> dataDisk; private String description; private Integer frequency; private String imageName; private String instanceId; private String instanceRamRole; private String instanceType; private String jobId; private String launchTemplateId; private String launchTemplateVersion; private Integer maxNumberOfImageToKeep; private String name; private Integer netMode; private Long ownerId; private String replicationParameters; private String resourceOwnerAccount; private String scheduledStartTime; private java.util.List<SystemDiskPart> systemDiskPart; private Integer systemDiskSize; private String targetType; private String vSwitchId; private String validTime; private String vpcId; private Builder() { super(); } private Builder(ModifyReplicationJobAttributeRequest request) { super(request); this.containerNamespace = request.containerNamespace; this.containerRepository = request.containerRepository; this.containerTag = request.containerTag; this.dataDisk = request.dataDisk; this.description = request.description; this.frequency = request.frequency; this.imageName = request.imageName; this.instanceId = request.instanceId; this.instanceRamRole = request.instanceRamRole; this.instanceType = request.instanceType; this.jobId = request.jobId; this.launchTemplateId = request.launchTemplateId; this.launchTemplateVersion = request.launchTemplateVersion; this.maxNumberOfImageToKeep = request.maxNumberOfImageToKeep; this.name = request.name; this.netMode = request.netMode; this.ownerId = request.ownerId; this.replicationParameters = request.replicationParameters; this.resourceOwnerAccount = request.resourceOwnerAccount; this.scheduledStartTime = request.scheduledStartTime; this.systemDiskPart = request.systemDiskPart; this.systemDiskSize = request.systemDiskSize; this.targetType = request.targetType; this.vSwitchId = request.vSwitchId; this.validTime = request.validTime; this.vpcId = request.vpcId; } /** * <p>The namespace of the destination Docker container image. For more information about Docker container images, see <a href="https://help.aliyun.com/document_detail/60744.html">Terms</a>.</p> * * <strong>example:</strong> * <p>testNamespace</p> */ public Builder containerNamespace(String containerNamespace) { this.putQueryParameter("ContainerNamespace", containerNamespace); this.containerNamespace = containerNamespace; return this; } /** * <p>The repository that stores the destination Docker container image. For more information about Docker container images, see <a href="https://help.aliyun.com/document_detail/60744.html">Terms</a>.</p> * * <strong>example:</strong> * <p>testRepository</p> */ public Builder containerRepository(String containerRepository) { this.putQueryParameter("ContainerRepository", containerRepository); this.containerRepository = containerRepository; return this; } /** * <p>The tag of the destination Docker container image. For more information about Docker container images, see <a href="https://help.aliyun.com/document_detail/60744.html">Terms</a>.</p> * * <strong>example:</strong> * <p>CentOS:v1</p> */ public Builder containerTag(String containerTag) { this.putQueryParameter("ContainerTag", containerTag); this.containerTag = containerTag; return this; } /** * <p>The information about the data disk.</p> */ public Builder dataDisk(java.util.List<DataDisk> dataDisk) { this.putQueryParameter("DataDisk", dataDisk); this.dataDisk = dataDisk; return this; } /** * <p>The description of the migration job.</p> * <p>The description must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>This_is_my_migration_task</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The interval at which an incremental migration job runs. Unit: hour. Valid values: 1 to 168.</p> * <p>This parameter is required if you set the <code>RunOnce</code> parameter to false.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder frequency(Integer frequency) { this.putQueryParameter("Frequency", frequency); this.frequency = frequency; return this; } /** * <p>The name of the destination image. The name must meet the following requirements:</p> * <ul> * <li>The name must be unique within an Alibaba Cloud region.</li> * <li>The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with <code>http://</code> or <code>https://</code>.</li> * </ul> * <blockquote> * <p> If an image whose name is the same as that of the destination image already exists in the current region when the migration job is in progress, the system adds the migration job ID to the end of the image name by default. Example: ImageName-JobId.</p> * </blockquote> * * <strong>example:</strong> * <p>testAliCloudImageName</p> */ public Builder imageName(String imageName) { this.putQueryParameter("ImageName", imageName); this.imageName = imageName; return this; } /** * <p>The destination instance ID.</p> * * <strong>example:</strong> * <p>i-bp1f1dvfto1sigz5****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The name of the Resource Access Management (RAM) role that is attached to the intermediate instance.</p> * * <strong>example:</strong> * <p>SMCAdmin</p> */ public Builder instanceRamRole(String instanceRamRole) { this.putQueryParameter("InstanceRamRole", instanceRamRole); this.instanceRamRole = instanceRamRole; return this; } /** * <p>The type of the intermediate instance.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/25620.html">DescribeInstanceTypes</a> operation to query the ECS instance types.</p> * <ul> * <li>If you specify this parameter, SMC creates an intermediate instance of the specified instance type. If the specified instance type is unavailable, you cannot create the migration job.</li> * <li>If you do not specify this parameter, SMC selects an available instance type in a specific order to create an intermediate instance. For more information,</li> * </ul> * <p>see the &quot;How does SMC create an intermediate instance?&quot; section of the &quot;FAQ&quot; topic.</p> * * <strong>example:</strong> * <p>ecs.c5.large</p> */ public Builder instanceType(String instanceType) { this.putQueryParameter("InstanceType", instanceType); this.instanceType = instanceType; return this; } /** * <p>The migration job ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>j-bp19vlwm0tyigbmj****</p> */ public Builder jobId(String jobId) { this.putQueryParameter("JobId", jobId); this.jobId = jobId; return this; } /** * <p>The launch template ID.</p> * * <strong>example:</strong> * <p>lt-bp16jovvln1cgaaq****</p> */ public Builder launchTemplateId(String launchTemplateId) { this.putQueryParameter("LaunchTemplateId", launchTemplateId); this.launchTemplateId = launchTemplateId; return this; } /** * <p>The version number of the launch template.</p> * * <strong>example:</strong> * <p>Latest</p> */ public Builder launchTemplateVersion(String launchTemplateVersion) { this.putQueryParameter("LaunchTemplateVersion", launchTemplateVersion); this.launchTemplateVersion = launchTemplateVersion; return this; } /** * <p>The maximum number of images that are retained for an incremental migration job. Valid values: 1 to 10.</p> * <p>This parameter is required if you set the <code>RunOnce</code> parameter to false.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder maxNumberOfImageToKeep(Integer maxNumberOfImageToKeep) { this.putQueryParameter("MaxNumberOfImageToKeep", maxNumberOfImageToKeep); this.maxNumberOfImageToKeep = maxNumberOfImageToKeep; return this; } /** * <p>The name of the migration job. The name must meet the following requirements:</p> * <ul> * <li>The name must be unique.</li> * <li>The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with <code>http://</code> or <code>https://</code>.</li> * </ul> * * <strong>example:</strong> * <p>testMigrationTaskName</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * <p>The network mode for data transmission. Valid values:</p> * <ul> * <li>0: Data is transmitted over the Internet. Make sure that the source server can access the Internet.</li> * <li>2: Data is transmitted over a virtual private cloud (VPC). If you set this parameter to 2, you must specify the VSwitchId parameter. You can leave the VpcId parameter empty, the VPC ID can be queried by calling an operation.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder netMode(Integer netMode) { this.putQueryParameter("NetMode", netMode); this.netMode = netMode; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The parameters of the replication driver. The parameters are fixed key-value pairs of the JSON format. The value can be up to 2,048 characters in length.</p> * <p>A replication driver is a tool that is used to replicate the data of a source server to an intermediate instance. The parameters vary based on the replication driver type. If you use a Server Migration Tool (SMT) driver, you can set the following parameters:</p> * <ul> * <li>bandwidth_limit: the maximum bandwidth for data transmission.</li> * <li>compress_level: the compression ratio of data to be transmitted.</li> * <li>checksum: specifies whether to enable checksum verification</li> * </ul> * <p>For more information about the replication driver, see the response parameter <code>SourceServers.ReplicationDriver</code> of the <a href="https://help.aliyun.com/document_detail/2402126.html">DescribeSourceServers</a> operation.</p> * * <strong>example:</strong> * <p>{&quot;bandwidth_limit&quot;:0,&quot;compress_level&quot;:1,&quot;checksum&quot;:true}</p> */ public Builder replicationParameters(String replicationParameters) { this.putQueryParameter("ReplicationParameters", replicationParameters); this.replicationParameters = replicationParameters; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The time when the migration job is executed. SMC starts the migration job at the specified time.</p> * <p>Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC. For example, 2018-01-01T12:00:00Z indicates 20:00:00 on January 1, 2018 (UTC+8).</p> * <blockquote> * <p> If ScheduledStartTime is left empty, SMC does not automatically start the migration job. In this case, you must call the <a href="https://help.aliyun.com/document_detail/121823.html">StartReplicationJob</a> operation to start the migration job.</p> * </blockquote> * * <strong>example:</strong> * <p>2019-06-04T13:35:00Z</p> */ public Builder scheduledStartTime(String scheduledStartTime) { this.putQueryParameter("ScheduledStartTime", scheduledStartTime); this.scheduledStartTime = scheduledStartTime; return this; } /** * <p>The partition information of the system disk.</p> */ public Builder systemDiskPart(java.util.List<SystemDiskPart> systemDiskPart) { this.putQueryParameter("SystemDiskPart", systemDiskPart); this.systemDiskPart = systemDiskPart; return this; } /** * <p>The system disk size of the destination ECS instance. Unit: GiB. Valid values: 20 to 500.</p> * <blockquote> * <p> The size of a destination data disk must be greater than the size of data in the source data disk. For example, if the source data disk has 500 GiB of storage space and 100 GiB of data, you must set this parameter to a value greater than 100.</p> * </blockquote> * * <strong>example:</strong> * <p>50</p> */ public Builder systemDiskSize(Integer systemDiskSize) { this.putQueryParameter("SystemDiskSize", systemDiskSize); this.systemDiskSize = systemDiskSize; return this; } /** * <p>The type of destination to which the source server is migrated. You can modify the value only before the migration job starts. Valid values:</p> * <ul> * <li>Image: After the migration job is complete, Server Migration Center (SMC) generates a destination Elastic Compute Service (ECS) image for the source server. You can use the image to create an ECS instance.</li> * <li>ContainerImage: After the migration job is complete, SMC generates a container image for the source server. You can use the container image in Container Registry.</li> * <li>TargetInstance: After the migration job is complete, SMC migrates the source server to the destination instance. If you set this parameter to TargetInstance, you must set the <code>InstanceId</code> parameter.</li> * </ul> * <blockquote> * </blockquote> * <ul> * <li><p>The value of this parameter is not case-sensitive.</p> * </li> * <li><p>SMC does not allow you to migrate Windows servers or servers that run operating systems on the ARM architecture to Container Registry.</p> * </li> * </ul> * * <strong>example:</strong> * <p>Image</p> */ public Builder targetType(String targetType) { this.putQueryParameter("TargetType", targetType); this.targetType = targetType; return this; } /** * <p>The ID of the vSwitch in the VPC.</p> * * <strong>example:</strong> * <p>vsw-bp1ddbrxdlrcbim46****</p> */ public Builder vSwitchId(String vSwitchId) { this.putQueryParameter("VSwitchId", vSwitchId); this.vSwitchId = vSwitchId; return this; } /** * <p>The time when the migration job expires. You can schedule the migration job to expire 7 to 90 days after the job is created.</p> * <ul> * <li>This parameter can be modified only if the migration job is in the Ready, Running, Stopped, InError, or Waiting state.</li> * <li>Specify the time in the ISO 8601 standard in the <code>YYYY-MM-DDThh:mm:ssZ</code> format. The time must be in UTC. For example, 2018-01-01T12:00:00Z indicates 20:00:00 on January 1, 2018 (UTC+8).</li> * <li>If you do not specify this parameter, the migration job does not expire.</li> * <li>After a migration job expires, the job state changes to Expired. SMC retains the migration job for seven days after the job expires. After the job is retained for seven days, SMC deletes the migration job.</li> * </ul> * <p>By default, a migration job is valid for 30 days after it is created.</p> * * <strong>example:</strong> * <p>2019-06-04T13:35:00Z</p> */ public Builder validTime(String validTime) { this.putQueryParameter("ValidTime", validTime); this.validTime = validTime; return this; } /** * <p>The ID of the VPC for which an Express Connect circuit or VPN gateway is configured.</p> * * <strong>example:</strong> * <p>vpc-bp1vwnn14rqpyiczj****</p> */ public Builder vpcId(String vpcId) { this.putQueryParameter("VpcId", vpcId); this.vpcId = vpcId; return this; } @Override public ModifyReplicationJobAttributeRequest build() { return new ModifyReplicationJobAttributeRequest(this); } } /** * * {@link ModifyReplicationJobAttributeRequest} extends {@link TeaModel} * * <p>ModifyReplicationJobAttributeRequest</p> */ public static class Part extends TeaModel { @com.aliyun.core.annotation.NameInMap("Block") private Boolean block; @com.aliyun.core.annotation.NameInMap("Device") private String device; @com.aliyun.core.annotation.NameInMap("SizeBytes") private Long sizeBytes; private Part(Builder builder) { this.block = builder.block; this.device = builder.device; this.sizeBytes = builder.sizeBytes; } public static Builder builder() { return new Builder(); } public static Part create() { return builder().build(); } /** * @return block */ public Boolean getBlock() { return this.block; } /** * @return device */ public String getDevice() { return this.device; } /** * @return sizeBytes */ public Long getSizeBytes() { return this.sizeBytes; } public static final class Builder { private Boolean block; private String device; private Long sizeBytes; private Builder() { } private Builder(Part model) { this.block = model.block; this.device = model.device; this.sizeBytes = model.sizeBytes; } /** * <p>Specifies whether to enable block replication for partition N in the destination data disk. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder block(Boolean block) { this.block = block; return this; } /** * <p>The ID of partition N in the destination data disk.</p> * <blockquote> * <p> The partitions in the destination data disk are arranged in the same sequential order as those in the source data disk.</p> * </blockquote> * * <strong>example:</strong> * <p>0_1</p> */ public Builder device(String device) { this.device = device; return this; } /** * <p>The size of partition N in the destination data disk. Unit: bytes. The default value is equal to the corresponding size of the partition in the source data disk.</p> * <blockquote> * <p> The total size of all partitions in the destination data disk cannot exceed the size of the destination data disk.</p> * </blockquote> * * <strong>example:</strong> * <p>254803968</p> */ public Builder sizeBytes(Long sizeBytes) { this.sizeBytes = sizeBytes; return this; } public Part build() { return new Part(this); } } } /** * * {@link ModifyReplicationJobAttributeRequest} extends {@link TeaModel} * * <p>ModifyReplicationJobAttributeRequest</p> */ public static class DataDisk extends TeaModel { @com.aliyun.core.annotation.NameInMap("Index") private Integer index; @com.aliyun.core.annotation.NameInMap("Part") private java.util.List<Part> part; @com.aliyun.core.annotation.NameInMap("Size") private Integer size; private DataDisk(Builder builder) { this.index = builder.index; this.part = builder.part; this.size = builder.size; } public static Builder builder() { return new Builder(); } public static DataDisk create() { return builder().build(); } /** * @return index */ public Integer getIndex() { return this.index; } /** * @return part */ public java.util.List<Part> getPart() { return this.part; } /** * @return size */ public Integer getSize() { return this.size; } public static final class Builder { private Integer index; private java.util.List<Part> part; private Integer size; private Builder() { } private Builder(DataDisk model) { this.index = model.index; this.part = model.part; this.size = model.size; } /** * <p>The index of data disk N on the destination ECS instance. Valid values of N: 1 to 16.</p> * <p>Data disks on a destination ECS instance are arranged in a sequential order that starts from 1.</p> * <blockquote> * <p> You can create a destination data disk only for a source server that has data disks.</p> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder index(Integer index) { this.index = index; return this; } /** * <p>The information about partitions.</p> */ public Builder part(java.util.List<Part> part) { this.part = part; return this; } /** * <p>The size of the data disk on the destination ECS instance. Unit: GiB. Valid values: 20 to 32768.</p> * <blockquote> * <p> The size of a destination data disk must be greater than the size of data in the source data disk. For example, if the source data disk has 500 GiB of storage space and 100 GiB of data, you must set this parameter to a value greater than 100.</p> * </blockquote> * * <strong>example:</strong> * <p>100</p> */ public Builder size(Integer size) { this.size = size; return this; } public DataDisk build() { return new DataDisk(this); } } } /** * * {@link ModifyReplicationJobAttributeRequest} extends {@link TeaModel} * * <p>ModifyReplicationJobAttributeRequest</p> */ public static class SystemDiskPart extends TeaModel { @com.aliyun.core.annotation.NameInMap("Block") private Boolean block; @com.aliyun.core.annotation.NameInMap("Device") private String device; @com.aliyun.core.annotation.NameInMap("SizeBytes") private Long sizeBytes; private SystemDiskPart(Builder builder) { this.block = builder.block; this.device = builder.device; this.sizeBytes = builder.sizeBytes; } public static Builder builder() { return new Builder(); } public static SystemDiskPart create() { return builder().build(); } /** * @return block */ public Boolean getBlock() { return this.block; } /** * @return device */ public String getDevice() { return this.device; } /** * @return sizeBytes */ public Long getSizeBytes() { return this.sizeBytes; } public static final class Builder { private Boolean block; private String device; private Long sizeBytes; private Builder() { } private Builder(SystemDiskPart model) { this.block = model.block; this.device = model.device; this.sizeBytes = model.sizeBytes; } /** * <p>Specifies whether to enable block replication for partition N in the destination system disk. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder block(Boolean block) { this.block = block; return this; } /** * <p>The ID of partition N in the destination system disk.</p> * <blockquote> * <p> The partitions in the destination system disk are arranged in the same sequential order as those in the source system disk.</p> * </blockquote> * * <strong>example:</strong> * <p>0_1</p> */ public Builder device(String device) { this.device = device; return this; } /** * <p>The size of partition N in the destination system disk. Unit: bytes. The default value is equal to the partition size of the source system disk.</p> * <blockquote> * <p> The total size of all partitions in the destination system disk cannot exceed the size of the destination system disk.</p> * </blockquote> * * <strong>example:</strong> * <p>254803968</p> */ public Builder sizeBytes(Long sizeBytes) { this.sizeBytes = sizeBytes; return this; } public SystemDiskPart build() { return new SystemDiskPart(this); } } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ModifyReplicationJobAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 ModifyReplicationJobAttributeResponse} extends {@link TeaModel} * * <p>ModifyReplicationJobAttributeResponse</p> */ public class ModifyReplicationJobAttributeResponse 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 ModifyReplicationJobAttributeResponseBody body; private ModifyReplicationJobAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyReplicationJobAttributeResponse 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 ModifyReplicationJobAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyReplicationJobAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyReplicationJobAttributeResponseBody body); @Override ModifyReplicationJobAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyReplicationJobAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyReplicationJobAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyReplicationJobAttributeResponse 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(ModifyReplicationJobAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyReplicationJobAttributeResponse build() { return new ModifyReplicationJobAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ModifyReplicationJobAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 ModifyReplicationJobAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyReplicationJobAttributeResponseBody</p> */ public class ModifyReplicationJobAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyReplicationJobAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyReplicationJobAttributeResponseBody 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(ModifyReplicationJobAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>1C488B66-B819-4D14-8711-C4EAAA13AC01</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyReplicationJobAttributeResponseBody build() { return new ModifyReplicationJobAttributeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ModifySourceServerAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 ModifySourceServerAttributeRequest} extends {@link RequestModel} * * <p>ModifySourceServerAttributeRequest</p> */ public class ModifySourceServerAttributeRequest 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("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceId") @com.aliyun.core.annotation.Validation(required = true) private String sourceId; private ModifySourceServerAttributeRequest(Builder builder) { super(builder); this.description = builder.description; this.name = builder.name; this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.sourceId = builder.sourceId; } public static Builder builder() { return new Builder(); } public static ModifySourceServerAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return sourceId */ public String getSourceId() { return this.sourceId; } public static final class Builder extends Request.Builder<ModifySourceServerAttributeRequest, Builder> { private String description; private String name; private Long ownerId; private String resourceOwnerAccount; private String sourceId; private Builder() { super(); } private Builder(ModifySourceServerAttributeRequest request) { super(request); this.description = request.description; this.name = request.name; this.ownerId = request.ownerId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.sourceId = request.sourceId; } /** * <p>The description of the migration source. The description can be up to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>This is a source server.</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The name of the migration source. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with <code>http://</code> or <code>https://</code>. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).</p> * * <strong>example:</strong> * <p>testSourceServerName</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The migration source ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>s-bp17m1vi6x20c6g6****</p> */ public Builder sourceId(String sourceId) { this.putQueryParameter("SourceId", sourceId); this.sourceId = sourceId; return this; } @Override public ModifySourceServerAttributeRequest build() { return new ModifySourceServerAttributeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ModifySourceServerAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 ModifySourceServerAttributeResponse} extends {@link TeaModel} * * <p>ModifySourceServerAttributeResponse</p> */ public class ModifySourceServerAttributeResponse 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 ModifySourceServerAttributeResponseBody body; private ModifySourceServerAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifySourceServerAttributeResponse 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 ModifySourceServerAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifySourceServerAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifySourceServerAttributeResponseBody body); @Override ModifySourceServerAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifySourceServerAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifySourceServerAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifySourceServerAttributeResponse 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(ModifySourceServerAttributeResponseBody body) { this.body = body; return this; } @Override public ModifySourceServerAttributeResponse build() { return new ModifySourceServerAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ModifySourceServerAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 ModifySourceServerAttributeResponseBody} extends {@link TeaModel} * * <p>ModifySourceServerAttributeResponseBody</p> */ public class ModifySourceServerAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifySourceServerAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifySourceServerAttributeResponseBody 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(ModifySourceServerAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifySourceServerAttributeResponseBody build() { return new ModifySourceServerAttributeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ModifyWorkgroupAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 ModifyWorkgroupAttributeRequest} extends {@link RequestModel} * * <p>ModifyWorkgroupAttributeRequest</p> */ public class ModifyWorkgroupAttributeRequest 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("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("WorkgroupId") @com.aliyun.core.annotation.Validation(required = true) private String workgroupId; private ModifyWorkgroupAttributeRequest(Builder builder) { super(builder); this.description = builder.description; this.name = builder.name; this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.workgroupId = builder.workgroupId; } public static Builder builder() { return new Builder(); } public static ModifyWorkgroupAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return workgroupId */ public String getWorkgroupId() { return this.workgroupId; } public static final class Builder extends Request.Builder<ModifyWorkgroupAttributeRequest, Builder> { private String description; private String name; private Long ownerId; private String resourceOwnerAccount; private String workgroupId; private Builder() { super(); } private Builder(ModifyWorkgroupAttributeRequest request) { super(request); this.description = request.description; this.name = request.name; this.ownerId = request.ownerId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.workgroupId = request.workgroupId; } /** * <p>The new description of the workgroup. The description must be 2 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The name of the workgroup. The name must meet the following requirements:</p> * <ul> * <li>The name must be unique.</li> * <li>The name must be 2 to 64 characters in length. It must start with a letter and cannot start with <code>http://</code> or <code>https://</code>. It can contain digits, colons (:), periods (.), underscores (_), and hyphens (-).</li> * </ul> * * <strong>example:</strong> * <p>testMigrationTaskName</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The ID of the workgroup.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>w-***</p> */ public Builder workgroupId(String workgroupId) { this.putQueryParameter("WorkgroupId", workgroupId); this.workgroupId = workgroupId; return this; } @Override public ModifyWorkgroupAttributeRequest build() { return new ModifyWorkgroupAttributeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ModifyWorkgroupAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 ModifyWorkgroupAttributeResponse} extends {@link TeaModel} * * <p>ModifyWorkgroupAttributeResponse</p> */ public class ModifyWorkgroupAttributeResponse 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 ModifyWorkgroupAttributeResponseBody body; private ModifyWorkgroupAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyWorkgroupAttributeResponse 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 ModifyWorkgroupAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyWorkgroupAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyWorkgroupAttributeResponseBody body); @Override ModifyWorkgroupAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyWorkgroupAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyWorkgroupAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyWorkgroupAttributeResponse 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(ModifyWorkgroupAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyWorkgroupAttributeResponse build() { return new ModifyWorkgroupAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/ModifyWorkgroupAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 ModifyWorkgroupAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyWorkgroupAttributeResponseBody</p> */ public class ModifyWorkgroupAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyWorkgroupAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyWorkgroupAttributeResponseBody 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(ModifyWorkgroupAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>3E8B9ABB-289A-44E6-942D-8AA9E493****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyWorkgroupAttributeResponseBody build() { return new ModifyWorkgroupAttributeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/StartReplicationJobRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 StartReplicationJobRequest} extends {@link RequestModel} * * <p>StartReplicationJobRequest</p> */ public class StartReplicationJobRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("JobId") @com.aliyun.core.annotation.Validation(required = true) private String jobId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; private StartReplicationJobRequest(Builder builder) { super(builder); this.jobId = builder.jobId; this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; } public static Builder builder() { return new Builder(); } public static StartReplicationJobRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return jobId */ public String getJobId() { return this.jobId; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } public static final class Builder extends Request.Builder<StartReplicationJobRequest, Builder> { private String jobId; private Long ownerId; private String resourceOwnerAccount; private Builder() { super(); } private Builder(StartReplicationJobRequest request) { super(request); this.jobId = request.jobId; this.ownerId = request.ownerId; this.resourceOwnerAccount = request.resourceOwnerAccount; } /** * <p>The migration job ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>j-bw526m1vi6x21q****</p> */ public Builder jobId(String jobId) { this.putQueryParameter("JobId", jobId); this.jobId = jobId; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } @Override public StartReplicationJobRequest build() { return new StartReplicationJobRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/StartReplicationJobResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 StartReplicationJobResponse} extends {@link TeaModel} * * <p>StartReplicationJobResponse</p> */ public class StartReplicationJobResponse 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 StartReplicationJobResponseBody body; private StartReplicationJobResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static StartReplicationJobResponse 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 StartReplicationJobResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<StartReplicationJobResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(StartReplicationJobResponseBody body); @Override StartReplicationJobResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<StartReplicationJobResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private StartReplicationJobResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(StartReplicationJobResponse 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(StartReplicationJobResponseBody body) { this.body = body; return this; } @Override public StartReplicationJobResponse build() { return new StartReplicationJobResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/StartReplicationJobResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 StartReplicationJobResponseBody} extends {@link TeaModel} * * <p>StartReplicationJobResponseBody</p> */ public class StartReplicationJobResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private StartReplicationJobResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static StartReplicationJobResponseBody 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(StartReplicationJobResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public StartReplicationJobResponseBody build() { return new StartReplicationJobResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/StopReplicationJobRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 StopReplicationJobRequest} extends {@link RequestModel} * * <p>StopReplicationJobRequest</p> */ public class StopReplicationJobRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("JobId") @com.aliyun.core.annotation.Validation(required = true) private String jobId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; private StopReplicationJobRequest(Builder builder) { super(builder); this.jobId = builder.jobId; this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; } public static Builder builder() { return new Builder(); } public static StopReplicationJobRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return jobId */ public String getJobId() { return this.jobId; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } public static final class Builder extends Request.Builder<StopReplicationJobRequest, Builder> { private String jobId; private Long ownerId; private String resourceOwnerAccount; private Builder() { super(); } private Builder(StopReplicationJobRequest request) { super(request); this.jobId = request.jobId; this.ownerId = request.ownerId; this.resourceOwnerAccount = request.resourceOwnerAccount; } /** * <p>The migration job ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>j-bw526m1vi6x21qh****</p> */ public Builder jobId(String jobId) { this.putQueryParameter("JobId", jobId); this.jobId = jobId; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } @Override public StopReplicationJobRequest build() { return new StopReplicationJobRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/StopReplicationJobResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 StopReplicationJobResponse} extends {@link TeaModel} * * <p>StopReplicationJobResponse</p> */ public class StopReplicationJobResponse 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 StopReplicationJobResponseBody body; private StopReplicationJobResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static StopReplicationJobResponse 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 StopReplicationJobResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<StopReplicationJobResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(StopReplicationJobResponseBody body); @Override StopReplicationJobResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<StopReplicationJobResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private StopReplicationJobResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(StopReplicationJobResponse 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(StopReplicationJobResponseBody body) { this.body = body; return this; } @Override public StopReplicationJobResponse build() { return new StopReplicationJobResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/StopReplicationJobResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 StopReplicationJobResponseBody} extends {@link TeaModel} * * <p>StopReplicationJobResponseBody</p> */ public class StopReplicationJobResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private StopReplicationJobResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static StopReplicationJobResponseBody 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(StopReplicationJobResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public StopReplicationJobResponseBody build() { return new StopReplicationJobResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/TagResourcesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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("OwnerId") private Long ownerId; @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("ResourceOwnerAccount") private String resourceOwnerAccount; @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.ownerId = builder.ownerId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; 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 ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceId */ public java.util.List<String> getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @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 Long ownerId; private java.util.List<String> resourceId; private String resourceOwnerAccount; private String resourceType; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(TagResourcesRequest request) { super(request); this.ownerId = request.ownerId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceType = request.resourceType; this.tag = request.tag; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The IDs of N SMC resources. SMC resources include migration sources and jobs. Valid values of N: 1 to 50.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>s-bw526m1vi6x20c6g****</p> */ public Builder resourceId(java.util.List<String> resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The type of the SMC resource. Valid values:</p> * <ul> * <li>sourceserver: migration source.</li> * <li>replicationjob: migration job.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>sourceserver</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The 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") 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 to be added to the SMC resource. Valid values of N: 1 to 20.</p> * <p>The tag key cannot be an empty string. It can be up to 64 characters in length and cannot start with acs: or aliyun. It cannot contain http:// or https://.</p> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N to be added to the SMC resource. Valid values of N: 1 to 20.</p> * <p>The tag value can be an empty string. It can be up to 64 characters in length and cannot contain http:// or https://.</p> * * <strong>example:</strong> * <p>TestValue</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/TagResourcesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/TagResourcesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 request ID.</p> * * <strong>example:</strong> * <p>3E8B9ABB-289A-44E6-942D-8AA9E493****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public TagResourcesResponseBody build() { return new TagResourcesResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/UntagResourcesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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("OwnerId") private Long ownerId; @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("ResourceOwnerAccount") private String resourceOwnerAccount; @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.ownerId = builder.ownerId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; 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 ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceId */ public java.util.List<String> getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @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 Long ownerId; private java.util.List<String> resourceId; private String resourceOwnerAccount; private String resourceType; private java.util.List<String> tagKey; private Builder() { super(); } private Builder(UntagResourcesRequest request) { super(request); this.all = request.all; this.ownerId = request.ownerId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceType = request.resourceType; this.tagKey = request.tagKey; } /** * <p>Specifies whether to remove all tags that are added to the specified SMC resource. This parameter is valid only if you do not set <code>TagKey.N</code>. Valid values:</p> * <ul> * <li>true: removes all tags that are added to the specified SMC resource. If no tags are added to the specified SMC resource, no operation is performed.</li> * <li>false: does not remove tags that are added to the specified SMC resource.</li> * </ul> * <p>Default value: false.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder all(Boolean all) { this.putQueryParameter("All", all); this.all = all; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The IDs of N SMC resources. SMC resources include migration sources and jobs. Valid values of N: 1 to 50.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>s-bw526m1vi6x20c6g****</p> */ public Builder resourceId(java.util.List<String> resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The type of the SMC resource. Valid values:</p> * <ul> * <li>sourceserver: migration source.</li> * <li>replicationjob: migration job.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>sourceserver</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The key of tag N that is added to the SMC resource. Tag keys are case-sensitive. Valid values of N: 1 to 20.</p> * * <strong>example:</strong> * <p>TestKey</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-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/UntagResourcesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601
java-sources/com/aliyun/alibabacloud-smc20190601/1.0.8/com/aliyun/sdk/service/smc20190601/models/UntagResourcesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.smc20190601.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 request ID.</p> * * <strong>example:</strong> * <p>2D69A58F-345C-4FDE-88E4-BF518948****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public UntagResourcesResponseBody build() { return new UntagResourcesResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/AsyncClient.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728; import com.aliyun.core.utils.SdkAutoCloseable; import com.aliyun.sdk.service.sophonsoar20220728.models.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import java.util.concurrent.CompletableFuture; public interface AsyncClient extends SdkAutoCloseable { static DefaultAsyncClientBuilder builder() { return new DefaultAsyncClientBuilder(); } static AsyncClient create() { return builder().build(); } /** * @param request the request parameters of BatchModifyInstanceStatus BatchModifyInstanceStatusRequest * @return BatchModifyInstanceStatusResponse */ CompletableFuture<BatchModifyInstanceStatusResponse> batchModifyInstanceStatus(BatchModifyInstanceStatusRequest request); /** * @param request the request parameters of ComparePlaybooks ComparePlaybooksRequest * @return ComparePlaybooksResponse */ CompletableFuture<ComparePlaybooksResponse> comparePlaybooks(ComparePlaybooksRequest request); /** * <b>description</b> : * <p>Please ensure that you fully understand the billing method and <a href="https://www.aliyun.com/price/product#/sas/detail/sas">pricing</a> of the orchestration product before using this interface.</p> * * @param request the request parameters of ConvertPlaybook ConvertPlaybookRequest * @return ConvertPlaybookResponse */ CompletableFuture<ConvertPlaybookResponse> convertPlaybook(ConvertPlaybookRequest request); /** * @param request the request parameters of CopyPlaybook CopyPlaybookRequest * @return CopyPlaybookResponse */ CompletableFuture<CopyPlaybookResponse> copyPlaybook(CopyPlaybookRequest request); /** * <b>description</b> : * <p>Create Playbook.</p> * * @param request the request parameters of CreatePlaybook CreatePlaybookRequest * @return CreatePlaybookResponse */ CompletableFuture<CreatePlaybookResponse> createPlaybook(CreatePlaybookRequest request); /** * @param request the request parameters of DebugPlaybook DebugPlaybookRequest * @return DebugPlaybookResponse */ CompletableFuture<DebugPlaybookResponse> debugPlaybook(DebugPlaybookRequest request); /** * @param request the request parameters of DeleteComponentAsset DeleteComponentAssetRequest * @return DeleteComponentAssetResponse */ CompletableFuture<DeleteComponentAssetResponse> deleteComponentAsset(DeleteComponentAssetRequest request); /** * @param request the request parameters of DeletePlaybook DeletePlaybookRequest * @return DeletePlaybookResponse */ CompletableFuture<DeletePlaybookResponse> deletePlaybook(DeletePlaybookRequest request); /** * @param request the request parameters of DescribeComponentAssetForm DescribeComponentAssetFormRequest * @return DescribeComponentAssetFormResponse */ CompletableFuture<DescribeComponentAssetFormResponse> describeComponentAssetForm(DescribeComponentAssetFormRequest request); /** * @param request the request parameters of DescribeComponentAssets DescribeComponentAssetsRequest * @return DescribeComponentAssetsResponse */ CompletableFuture<DescribeComponentAssetsResponse> describeComponentAssets(DescribeComponentAssetsRequest request); /** * @param request the request parameters of DescribeComponentList DescribeComponentListRequest * @return DescribeComponentListResponse */ CompletableFuture<DescribeComponentListResponse> describeComponentList(DescribeComponentListRequest request); /** * @param request the request parameters of DescribeComponentPlaybook DescribeComponentPlaybookRequest * @return DescribeComponentPlaybookResponse */ CompletableFuture<DescribeComponentPlaybookResponse> describeComponentPlaybook(DescribeComponentPlaybookRequest request); /** * @param request the request parameters of DescribeComponentsJs DescribeComponentsJsRequest * @return DescribeComponentsJsResponse */ CompletableFuture<DescribeComponentsJsResponse> describeComponentsJs(DescribeComponentsJsRequest request); /** * @param request the request parameters of DescribeDistinctReleases DescribeDistinctReleasesRequest * @return DescribeDistinctReleasesResponse */ CompletableFuture<DescribeDistinctReleasesResponse> describeDistinctReleases(DescribeDistinctReleasesRequest request); /** * @param request the request parameters of DescribeEnumItems DescribeEnumItemsRequest * @return DescribeEnumItemsResponse */ CompletableFuture<DescribeEnumItemsResponse> describeEnumItems(DescribeEnumItemsRequest request); /** * @param request the request parameters of DescribeExecutePlaybooks DescribeExecutePlaybooksRequest * @return DescribeExecutePlaybooksResponse */ CompletableFuture<DescribeExecutePlaybooksResponse> describeExecutePlaybooks(DescribeExecutePlaybooksRequest request); /** * @param request the request parameters of DescribeField DescribeFieldRequest * @return DescribeFieldResponse */ CompletableFuture<DescribeFieldResponse> describeField(DescribeFieldRequest request); /** * @param request the request parameters of DescribeGroupProductions DescribeGroupProductionsRequest * @return DescribeGroupProductionsResponse */ CompletableFuture<DescribeGroupProductionsResponse> describeGroupProductions(DescribeGroupProductionsRequest request); /** * @param request the request parameters of DescribeLatestRecordSchema DescribeLatestRecordSchemaRequest * @return DescribeLatestRecordSchemaResponse */ CompletableFuture<DescribeLatestRecordSchemaResponse> describeLatestRecordSchema(DescribeLatestRecordSchemaRequest request); /** * @param request the request parameters of DescribeNodeParamTags DescribeNodeParamTagsRequest * @return DescribeNodeParamTagsResponse */ CompletableFuture<DescribeNodeParamTagsResponse> describeNodeParamTags(DescribeNodeParamTagsRequest request); /** * @param request the request parameters of DescribeNodeUsedInfos DescribeNodeUsedInfosRequest * @return DescribeNodeUsedInfosResponse */ CompletableFuture<DescribeNodeUsedInfosResponse> describeNodeUsedInfos(DescribeNodeUsedInfosRequest request); /** * @param request the request parameters of DescribeNotifyTemplateList DescribeNotifyTemplateListRequest * @return DescribeNotifyTemplateListResponse */ CompletableFuture<DescribeNotifyTemplateListResponse> describeNotifyTemplateList(DescribeNotifyTemplateListRequest request); /** * @param request the request parameters of DescribeOpenApiInfo DescribeOpenApiInfoRequest * @return DescribeOpenApiInfoResponse */ CompletableFuture<DescribeOpenApiInfoResponse> describeOpenApiInfo(DescribeOpenApiInfoRequest request); /** * @param request the request parameters of DescribeOpenApiList DescribeOpenApiListRequest * @return DescribeOpenApiListResponse */ CompletableFuture<DescribeOpenApiListResponse> describeOpenApiList(DescribeOpenApiListRequest request); /** * @param request the request parameters of DescribePlaybook DescribePlaybookRequest * @return DescribePlaybookResponse */ CompletableFuture<DescribePlaybookResponse> describePlaybook(DescribePlaybookRequest request); /** * @param request the request parameters of DescribePlaybookInputOutput DescribePlaybookInputOutputRequest * @return DescribePlaybookInputOutputResponse */ CompletableFuture<DescribePlaybookInputOutputResponse> describePlaybookInputOutput(DescribePlaybookInputOutputRequest request); /** * @param request the request parameters of DescribePlaybookMetrics DescribePlaybookMetricsRequest * @return DescribePlaybookMetricsResponse */ CompletableFuture<DescribePlaybookMetricsResponse> describePlaybookMetrics(DescribePlaybookMetricsRequest request); /** * @param request the request parameters of DescribePlaybookNodesOutput DescribePlaybookNodesOutputRequest * @return DescribePlaybookNodesOutputResponse */ CompletableFuture<DescribePlaybookNodesOutputResponse> describePlaybookNodesOutput(DescribePlaybookNodesOutputRequest request); /** * @param request the request parameters of DescribePlaybookNumberMetrics DescribePlaybookNumberMetricsRequest * @return DescribePlaybookNumberMetricsResponse */ CompletableFuture<DescribePlaybookNumberMetricsResponse> describePlaybookNumberMetrics(DescribePlaybookNumberMetricsRequest request); /** * @param request the request parameters of DescribePlaybookReleases DescribePlaybookReleasesRequest * @return DescribePlaybookReleasesResponse */ CompletableFuture<DescribePlaybookReleasesResponse> describePlaybookReleases(DescribePlaybookReleasesRequest request); /** * @param request the request parameters of DescribePlaybooks DescribePlaybooksRequest * @return DescribePlaybooksResponse */ CompletableFuture<DescribePlaybooksResponse> describePlaybooks(DescribePlaybooksRequest request); /** * @param request the request parameters of DescribePopApi DescribePopApiRequest * @return DescribePopApiResponse */ CompletableFuture<DescribePopApiResponse> describePopApi(DescribePopApiRequest request); /** * @param request the request parameters of DescribePopApiItemList DescribePopApiItemListRequest * @return DescribePopApiItemListResponse */ CompletableFuture<DescribePopApiItemListResponse> describePopApiItemList(DescribePopApiItemListRequest request); /** * @param request the request parameters of DescribeProcessStatistics DescribeProcessStatisticsRequest * @return DescribeProcessStatisticsResponse */ CompletableFuture<DescribeProcessStatisticsResponse> describeProcessStatistics(DescribeProcessStatisticsRequest request); /** * @param request the request parameters of DescribeProcessTaskCount DescribeProcessTaskCountRequest * @return DescribeProcessTaskCountResponse */ CompletableFuture<DescribeProcessTaskCountResponse> describeProcessTaskCount(DescribeProcessTaskCountRequest request); /** * @param request the request parameters of DescribeProcessTasks DescribeProcessTasksRequest * @return DescribeProcessTasksResponse */ CompletableFuture<DescribeProcessTasksResponse> describeProcessTasks(DescribeProcessTasksRequest request); /** * @param request the request parameters of DescribeSoarRecordActionOutputList DescribeSoarRecordActionOutputListRequest * @return DescribeSoarRecordActionOutputListResponse */ CompletableFuture<DescribeSoarRecordActionOutputListResponse> describeSoarRecordActionOutputList(DescribeSoarRecordActionOutputListRequest request); /** * @param request the request parameters of DescribeSoarRecordInOutput DescribeSoarRecordInOutputRequest * @return DescribeSoarRecordInOutputResponse */ CompletableFuture<DescribeSoarRecordInOutputResponse> describeSoarRecordInOutput(DescribeSoarRecordInOutputRequest request); /** * @param request the request parameters of DescribeSoarRecords DescribeSoarRecordsRequest * @return DescribeSoarRecordsResponse */ CompletableFuture<DescribeSoarRecordsResponse> describeSoarRecords(DescribeSoarRecordsRequest request); /** * @param request the request parameters of DescribeSoarTaskAndActions DescribeSoarTaskAndActionsRequest * @return DescribeSoarTaskAndActionsResponse */ CompletableFuture<DescribeSoarTaskAndActionsResponse> describeSoarTaskAndActions(DescribeSoarTaskAndActionsRequest request); /** * @param request the request parameters of DescribeSophonCommands DescribeSophonCommandsRequest * @return DescribeSophonCommandsResponse */ CompletableFuture<DescribeSophonCommandsResponse> describeSophonCommands(DescribeSophonCommandsRequest request); /** * @param request the request parameters of DescribeVendorApiList DescribeVendorApiListRequest * @return DescribeVendorApiListResponse */ CompletableFuture<DescribeVendorApiListResponse> describeVendorApiList(DescribeVendorApiListRequest request); /** * @param request the request parameters of DescriberPython3ScriptLogs DescriberPython3ScriptLogsRequest * @return DescriberPython3ScriptLogsResponse */ CompletableFuture<DescriberPython3ScriptLogsResponse> describerPython3ScriptLogs(DescriberPython3ScriptLogsRequest request); /** * @param request the request parameters of ModifyComponentAsset ModifyComponentAssetRequest * @return ModifyComponentAssetResponse */ CompletableFuture<ModifyComponentAssetResponse> modifyComponentAsset(ModifyComponentAssetRequest request); /** * @param request the request parameters of ModifyPlaybook ModifyPlaybookRequest * @return ModifyPlaybookResponse */ CompletableFuture<ModifyPlaybookResponse> modifyPlaybook(ModifyPlaybookRequest request); /** * @param request the request parameters of ModifyPlaybookInputOutput ModifyPlaybookInputOutputRequest * @return ModifyPlaybookInputOutputResponse */ CompletableFuture<ModifyPlaybookInputOutputResponse> modifyPlaybookInputOutput(ModifyPlaybookInputOutputRequest request); /** * @param request the request parameters of ModifyPlaybookInstanceStatus ModifyPlaybookInstanceStatusRequest * @return ModifyPlaybookInstanceStatusResponse */ CompletableFuture<ModifyPlaybookInstanceStatusResponse> modifyPlaybookInstanceStatus(ModifyPlaybookInstanceStatusRequest request); /** * @param request the request parameters of PublishPlaybook PublishPlaybookRequest * @return PublishPlaybookResponse */ CompletableFuture<PublishPlaybookResponse> publishPlaybook(PublishPlaybookRequest request); /** * @param request the request parameters of QueryTreeData QueryTreeDataRequest * @return QueryTreeDataResponse */ CompletableFuture<QueryTreeDataResponse> queryTreeData(QueryTreeDataRequest request); /** * @param request the request parameters of RenamePlaybookNode RenamePlaybookNodeRequest * @return RenamePlaybookNodeResponse */ CompletableFuture<RenamePlaybookNodeResponse> renamePlaybookNode(RenamePlaybookNodeRequest request); /** * @param request the request parameters of RevertPlaybookRelease RevertPlaybookReleaseRequest * @return RevertPlaybookReleaseResponse */ CompletableFuture<RevertPlaybookReleaseResponse> revertPlaybookRelease(RevertPlaybookReleaseRequest request); /** * @param request the request parameters of RunNotifyComponentWithEmail RunNotifyComponentWithEmailRequest * @return RunNotifyComponentWithEmailResponse */ CompletableFuture<RunNotifyComponentWithEmailResponse> runNotifyComponentWithEmail(RunNotifyComponentWithEmailRequest request); /** * @param request the request parameters of RunNotifyComponentWithMessageCenter RunNotifyComponentWithMessageCenterRequest * @return RunNotifyComponentWithMessageCenterResponse */ CompletableFuture<RunNotifyComponentWithMessageCenterResponse> runNotifyComponentWithMessageCenter(RunNotifyComponentWithMessageCenterRequest request); /** * @param request the request parameters of RunNotifyComponentWithWebhook RunNotifyComponentWithWebhookRequest * @return RunNotifyComponentWithWebhookResponse */ CompletableFuture<RunNotifyComponentWithWebhookResponse> runNotifyComponentWithWebhook(RunNotifyComponentWithWebhookRequest request); /** * <b>description</b> : * <p>Before you call this operation, make sure that you understand the billing method and pricing of Security Orchestration Automation Response (SOAR). For more information, see <a href="https://www.alibabacloud.com/en/pricing-calculator?_p_lc=1&spm=openapi-amp.newDocPublishment.0.0.4c41281fWhbdPa#/commodity/vm_intl">Pricing</a>.</p> * * @param request the request parameters of RunPython3Script RunPython3ScriptRequest * @return RunPython3ScriptResponse */ CompletableFuture<RunPython3ScriptResponse> runPython3Script(RunPython3ScriptRequest request); /** * <b>description</b> : * <p>Before you call this operation, make sure that you understand the billing methods and pricing of Security Orchestration Automation Response (SOAR). For more information, see <a href="https://www.alibabacloud.com/en/pricing-calculator?_p_lc=1&spm=a2796.7960336.3034855210.1.7adab91arMeIx2#/commodity/vm_intl">Pricing</a>.</p> * * @param request the request parameters of TriggerPlaybook TriggerPlaybookRequest * @return TriggerPlaybookResponse */ CompletableFuture<TriggerPlaybookResponse> triggerPlaybook(TriggerPlaybookRequest request); /** * @param request the request parameters of TriggerProcessTask TriggerProcessTaskRequest * @return TriggerProcessTaskResponse */ CompletableFuture<TriggerProcessTaskResponse> triggerProcessTask(TriggerProcessTaskRequest request); /** * <b>description</b> : * <p>Before you call this operation, make sure that you understand the billing methods and pricing of Security Orchestration Automation Response (SOAR). For more information, see <a href="https://www.alibabacloud.com/en/pricing-calculator?_p_lc=1&spm=a2796.7960336.3034855210.1.7adab91arMeIx2#/commodity/vm_intl">Pricing</a>.</p> * * @param request the request parameters of TriggerSophonPlaybook TriggerSophonPlaybookRequest * @return TriggerSophonPlaybookResponse */ CompletableFuture<TriggerSophonPlaybookResponse> triggerSophonPlaybook(TriggerSophonPlaybookRequest request); /** * @param request the request parameters of VerifyPlaybook VerifyPlaybookRequest * @return VerifyPlaybookResponse */ CompletableFuture<VerifyPlaybookResponse> verifyPlaybook(VerifyPlaybookRequest request); /** * @param request the request parameters of VerifyPythonFile VerifyPythonFileRequest * @return VerifyPythonFileResponse */ CompletableFuture<VerifyPythonFileResponse> verifyPythonFile(VerifyPythonFileRequest request); }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/DefaultAsyncClient.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728; import com.aliyun.core.http.*; import com.aliyun.sdk.service.sophonsoar20220728.models.*; import darabonba.core.utils.*; import com.aliyun.sdk.gateway.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 = "sophonsoar"; this.version = "2022-07-28"; this.endpointRule = ""; this.endpointMap = new java.util.HashMap<>(); this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version); } @Override public void close() { this.handler.close(); } /** * @param request the request parameters of BatchModifyInstanceStatus BatchModifyInstanceStatusRequest * @return BatchModifyInstanceStatusResponse */ @Override public CompletableFuture<BatchModifyInstanceStatusResponse> batchModifyInstanceStatus(BatchModifyInstanceStatusRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("BatchModifyInstanceStatus").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(BatchModifyInstanceStatusResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<BatchModifyInstanceStatusResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ComparePlaybooks ComparePlaybooksRequest * @return ComparePlaybooksResponse */ @Override public CompletableFuture<ComparePlaybooksResponse> comparePlaybooks(ComparePlaybooksRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ComparePlaybooks").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ComparePlaybooksResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ComparePlaybooksResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Please ensure that you fully understand the billing method and <a href="https://www.aliyun.com/price/product#/sas/detail/sas">pricing</a> of the orchestration product before using this interface.</p> * * @param request the request parameters of ConvertPlaybook ConvertPlaybookRequest * @return ConvertPlaybookResponse */ @Override public CompletableFuture<ConvertPlaybookResponse> convertPlaybook(ConvertPlaybookRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ConvertPlaybook").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ConvertPlaybookResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ConvertPlaybookResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of CopyPlaybook CopyPlaybookRequest * @return CopyPlaybookResponse */ @Override public CompletableFuture<CopyPlaybookResponse> copyPlaybook(CopyPlaybookRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CopyPlaybook").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CopyPlaybookResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CopyPlaybookResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Create Playbook.</p> * * @param request the request parameters of CreatePlaybook CreatePlaybookRequest * @return CreatePlaybookResponse */ @Override public CompletableFuture<CreatePlaybookResponse> createPlaybook(CreatePlaybookRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreatePlaybook").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreatePlaybookResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreatePlaybookResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DebugPlaybook DebugPlaybookRequest * @return DebugPlaybookResponse */ @Override public CompletableFuture<DebugPlaybookResponse> debugPlaybook(DebugPlaybookRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DebugPlaybook").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DebugPlaybookResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DebugPlaybookResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DeleteComponentAsset DeleteComponentAssetRequest * @return DeleteComponentAssetResponse */ @Override public CompletableFuture<DeleteComponentAssetResponse> deleteComponentAsset(DeleteComponentAssetRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteComponentAsset").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteComponentAssetResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteComponentAssetResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DeletePlaybook DeletePlaybookRequest * @return DeletePlaybookResponse */ @Override public CompletableFuture<DeletePlaybookResponse> deletePlaybook(DeletePlaybookRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeletePlaybook").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeletePlaybookResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeletePlaybookResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeComponentAssetForm DescribeComponentAssetFormRequest * @return DescribeComponentAssetFormResponse */ @Override public CompletableFuture<DescribeComponentAssetFormResponse> describeComponentAssetForm(DescribeComponentAssetFormRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeComponentAssetForm").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeComponentAssetFormResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeComponentAssetFormResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeComponentAssets DescribeComponentAssetsRequest * @return DescribeComponentAssetsResponse */ @Override public CompletableFuture<DescribeComponentAssetsResponse> describeComponentAssets(DescribeComponentAssetsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeComponentAssets").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeComponentAssetsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeComponentAssetsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeComponentList DescribeComponentListRequest * @return DescribeComponentListResponse */ @Override public CompletableFuture<DescribeComponentListResponse> describeComponentList(DescribeComponentListRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeComponentList").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeComponentListResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeComponentListResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeComponentPlaybook DescribeComponentPlaybookRequest * @return DescribeComponentPlaybookResponse */ @Override public CompletableFuture<DescribeComponentPlaybookResponse> describeComponentPlaybook(DescribeComponentPlaybookRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeComponentPlaybook").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeComponentPlaybookResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeComponentPlaybookResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeComponentsJs DescribeComponentsJsRequest * @return DescribeComponentsJsResponse */ @Override public CompletableFuture<DescribeComponentsJsResponse> describeComponentsJs(DescribeComponentsJsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeComponentsJs").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeComponentsJsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeComponentsJsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeDistinctReleases DescribeDistinctReleasesRequest * @return DescribeDistinctReleasesResponse */ @Override public CompletableFuture<DescribeDistinctReleasesResponse> describeDistinctReleases(DescribeDistinctReleasesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDistinctReleases").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDistinctReleasesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeDistinctReleasesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeEnumItems DescribeEnumItemsRequest * @return DescribeEnumItemsResponse */ @Override public CompletableFuture<DescribeEnumItemsResponse> describeEnumItems(DescribeEnumItemsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeEnumItems").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeEnumItemsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeEnumItemsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeExecutePlaybooks DescribeExecutePlaybooksRequest * @return DescribeExecutePlaybooksResponse */ @Override public CompletableFuture<DescribeExecutePlaybooksResponse> describeExecutePlaybooks(DescribeExecutePlaybooksRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeExecutePlaybooks").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeExecutePlaybooksResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeExecutePlaybooksResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeField DescribeFieldRequest * @return DescribeFieldResponse */ @Override public CompletableFuture<DescribeFieldResponse> describeField(DescribeFieldRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeField").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeFieldResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeFieldResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeGroupProductions DescribeGroupProductionsRequest * @return DescribeGroupProductionsResponse */ @Override public CompletableFuture<DescribeGroupProductionsResponse> describeGroupProductions(DescribeGroupProductionsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeGroupProductions").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeGroupProductionsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeGroupProductionsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeLatestRecordSchema DescribeLatestRecordSchemaRequest * @return DescribeLatestRecordSchemaResponse */ @Override public CompletableFuture<DescribeLatestRecordSchemaResponse> describeLatestRecordSchema(DescribeLatestRecordSchemaRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeLatestRecordSchema").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeLatestRecordSchemaResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeLatestRecordSchemaResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeNodeParamTags DescribeNodeParamTagsRequest * @return DescribeNodeParamTagsResponse */ @Override public CompletableFuture<DescribeNodeParamTagsResponse> describeNodeParamTags(DescribeNodeParamTagsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeNodeParamTags").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeNodeParamTagsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeNodeParamTagsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeNodeUsedInfos DescribeNodeUsedInfosRequest * @return DescribeNodeUsedInfosResponse */ @Override public CompletableFuture<DescribeNodeUsedInfosResponse> describeNodeUsedInfos(DescribeNodeUsedInfosRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeNodeUsedInfos").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeNodeUsedInfosResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeNodeUsedInfosResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeNotifyTemplateList DescribeNotifyTemplateListRequest * @return DescribeNotifyTemplateListResponse */ @Override public CompletableFuture<DescribeNotifyTemplateListResponse> describeNotifyTemplateList(DescribeNotifyTemplateListRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeNotifyTemplateList").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeNotifyTemplateListResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeNotifyTemplateListResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeOpenApiInfo DescribeOpenApiInfoRequest * @return DescribeOpenApiInfoResponse */ @Override public CompletableFuture<DescribeOpenApiInfoResponse> describeOpenApiInfo(DescribeOpenApiInfoRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeOpenApiInfo").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeOpenApiInfoResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeOpenApiInfoResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeOpenApiList DescribeOpenApiListRequest * @return DescribeOpenApiListResponse */ @Override public CompletableFuture<DescribeOpenApiListResponse> describeOpenApiList(DescribeOpenApiListRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeOpenApiList").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeOpenApiListResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeOpenApiListResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribePlaybook DescribePlaybookRequest * @return DescribePlaybookResponse */ @Override public CompletableFuture<DescribePlaybookResponse> describePlaybook(DescribePlaybookRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribePlaybook").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribePlaybookResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribePlaybookResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribePlaybookInputOutput DescribePlaybookInputOutputRequest * @return DescribePlaybookInputOutputResponse */ @Override public CompletableFuture<DescribePlaybookInputOutputResponse> describePlaybookInputOutput(DescribePlaybookInputOutputRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribePlaybookInputOutput").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribePlaybookInputOutputResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribePlaybookInputOutputResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribePlaybookMetrics DescribePlaybookMetricsRequest * @return DescribePlaybookMetricsResponse */ @Override public CompletableFuture<DescribePlaybookMetricsResponse> describePlaybookMetrics(DescribePlaybookMetricsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribePlaybookMetrics").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribePlaybookMetricsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribePlaybookMetricsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribePlaybookNodesOutput DescribePlaybookNodesOutputRequest * @return DescribePlaybookNodesOutputResponse */ @Override public CompletableFuture<DescribePlaybookNodesOutputResponse> describePlaybookNodesOutput(DescribePlaybookNodesOutputRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribePlaybookNodesOutput").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribePlaybookNodesOutputResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribePlaybookNodesOutputResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribePlaybookNumberMetrics DescribePlaybookNumberMetricsRequest * @return DescribePlaybookNumberMetricsResponse */ @Override public CompletableFuture<DescribePlaybookNumberMetricsResponse> describePlaybookNumberMetrics(DescribePlaybookNumberMetricsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribePlaybookNumberMetrics").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribePlaybookNumberMetricsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribePlaybookNumberMetricsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribePlaybookReleases DescribePlaybookReleasesRequest * @return DescribePlaybookReleasesResponse */ @Override public CompletableFuture<DescribePlaybookReleasesResponse> describePlaybookReleases(DescribePlaybookReleasesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribePlaybookReleases").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribePlaybookReleasesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribePlaybookReleasesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribePlaybooks DescribePlaybooksRequest * @return DescribePlaybooksResponse */ @Override public CompletableFuture<DescribePlaybooksResponse> describePlaybooks(DescribePlaybooksRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribePlaybooks").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribePlaybooksResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribePlaybooksResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribePopApi DescribePopApiRequest * @return DescribePopApiResponse */ @Override public CompletableFuture<DescribePopApiResponse> describePopApi(DescribePopApiRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribePopApi").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribePopApiResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribePopApiResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribePopApiItemList DescribePopApiItemListRequest * @return DescribePopApiItemListResponse */ @Override public CompletableFuture<DescribePopApiItemListResponse> describePopApiItemList(DescribePopApiItemListRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribePopApiItemList").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribePopApiItemListResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribePopApiItemListResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeProcessStatistics DescribeProcessStatisticsRequest * @return DescribeProcessStatisticsResponse */ @Override public CompletableFuture<DescribeProcessStatisticsResponse> describeProcessStatistics(DescribeProcessStatisticsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeProcessStatistics").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeProcessStatisticsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeProcessStatisticsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeProcessTaskCount DescribeProcessTaskCountRequest * @return DescribeProcessTaskCountResponse */ @Override public CompletableFuture<DescribeProcessTaskCountResponse> describeProcessTaskCount(DescribeProcessTaskCountRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeProcessTaskCount").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeProcessTaskCountResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeProcessTaskCountResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeProcessTasks DescribeProcessTasksRequest * @return DescribeProcessTasksResponse */ @Override public CompletableFuture<DescribeProcessTasksResponse> describeProcessTasks(DescribeProcessTasksRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeProcessTasks").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeProcessTasksResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeProcessTasksResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeSoarRecordActionOutputList DescribeSoarRecordActionOutputListRequest * @return DescribeSoarRecordActionOutputListResponse */ @Override public CompletableFuture<DescribeSoarRecordActionOutputListResponse> describeSoarRecordActionOutputList(DescribeSoarRecordActionOutputListRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeSoarRecordActionOutputList").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeSoarRecordActionOutputListResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeSoarRecordActionOutputListResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeSoarRecordInOutput DescribeSoarRecordInOutputRequest * @return DescribeSoarRecordInOutputResponse */ @Override public CompletableFuture<DescribeSoarRecordInOutputResponse> describeSoarRecordInOutput(DescribeSoarRecordInOutputRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeSoarRecordInOutput").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeSoarRecordInOutputResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeSoarRecordInOutputResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeSoarRecords DescribeSoarRecordsRequest * @return DescribeSoarRecordsResponse */ @Override public CompletableFuture<DescribeSoarRecordsResponse> describeSoarRecords(DescribeSoarRecordsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeSoarRecords").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeSoarRecordsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeSoarRecordsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeSoarTaskAndActions DescribeSoarTaskAndActionsRequest * @return DescribeSoarTaskAndActionsResponse */ @Override public CompletableFuture<DescribeSoarTaskAndActionsResponse> describeSoarTaskAndActions(DescribeSoarTaskAndActionsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeSoarTaskAndActions").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeSoarTaskAndActionsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeSoarTaskAndActionsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeSophonCommands DescribeSophonCommandsRequest * @return DescribeSophonCommandsResponse */ @Override public CompletableFuture<DescribeSophonCommandsResponse> describeSophonCommands(DescribeSophonCommandsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeSophonCommands").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeSophonCommandsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeSophonCommandsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeVendorApiList DescribeVendorApiListRequest * @return DescribeVendorApiListResponse */ @Override public CompletableFuture<DescribeVendorApiListResponse> describeVendorApiList(DescribeVendorApiListRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVendorApiList").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVendorApiListResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeVendorApiListResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescriberPython3ScriptLogs DescriberPython3ScriptLogsRequest * @return DescriberPython3ScriptLogsResponse */ @Override public CompletableFuture<DescriberPython3ScriptLogsResponse> describerPython3ScriptLogs(DescriberPython3ScriptLogsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescriberPython3ScriptLogs").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescriberPython3ScriptLogsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescriberPython3ScriptLogsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ModifyComponentAsset ModifyComponentAssetRequest * @return ModifyComponentAssetResponse */ @Override public CompletableFuture<ModifyComponentAssetResponse> modifyComponentAsset(ModifyComponentAssetRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyComponentAsset").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyComponentAssetResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ModifyComponentAssetResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ModifyPlaybook ModifyPlaybookRequest * @return ModifyPlaybookResponse */ @Override public CompletableFuture<ModifyPlaybookResponse> modifyPlaybook(ModifyPlaybookRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyPlaybook").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyPlaybookResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ModifyPlaybookResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ModifyPlaybookInputOutput ModifyPlaybookInputOutputRequest * @return ModifyPlaybookInputOutputResponse */ @Override public CompletableFuture<ModifyPlaybookInputOutputResponse> modifyPlaybookInputOutput(ModifyPlaybookInputOutputRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyPlaybookInputOutput").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyPlaybookInputOutputResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ModifyPlaybookInputOutputResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ModifyPlaybookInstanceStatus ModifyPlaybookInstanceStatusRequest * @return ModifyPlaybookInstanceStatusResponse */ @Override public CompletableFuture<ModifyPlaybookInstanceStatusResponse> modifyPlaybookInstanceStatus(ModifyPlaybookInstanceStatusRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyPlaybookInstanceStatus").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyPlaybookInstanceStatusResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ModifyPlaybookInstanceStatusResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of PublishPlaybook PublishPlaybookRequest * @return PublishPlaybookResponse */ @Override public CompletableFuture<PublishPlaybookResponse> publishPlaybook(PublishPlaybookRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("PublishPlaybook").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(PublishPlaybookResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<PublishPlaybookResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of QueryTreeData QueryTreeDataRequest * @return QueryTreeDataResponse */ @Override public CompletableFuture<QueryTreeDataResponse> queryTreeData(QueryTreeDataRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("QueryTreeData").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(QueryTreeDataResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<QueryTreeDataResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of RenamePlaybookNode RenamePlaybookNodeRequest * @return RenamePlaybookNodeResponse */ @Override public CompletableFuture<RenamePlaybookNodeResponse> renamePlaybookNode(RenamePlaybookNodeRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RenamePlaybookNode").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RenamePlaybookNodeResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<RenamePlaybookNodeResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of RevertPlaybookRelease RevertPlaybookReleaseRequest * @return RevertPlaybookReleaseResponse */ @Override public CompletableFuture<RevertPlaybookReleaseResponse> revertPlaybookRelease(RevertPlaybookReleaseRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RevertPlaybookRelease").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RevertPlaybookReleaseResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<RevertPlaybookReleaseResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of RunNotifyComponentWithEmail RunNotifyComponentWithEmailRequest * @return RunNotifyComponentWithEmailResponse */ @Override public CompletableFuture<RunNotifyComponentWithEmailResponse> runNotifyComponentWithEmail(RunNotifyComponentWithEmailRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RunNotifyComponentWithEmail").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RunNotifyComponentWithEmailResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<RunNotifyComponentWithEmailResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of RunNotifyComponentWithMessageCenter RunNotifyComponentWithMessageCenterRequest * @return RunNotifyComponentWithMessageCenterResponse */ @Override public CompletableFuture<RunNotifyComponentWithMessageCenterResponse> runNotifyComponentWithMessageCenter(RunNotifyComponentWithMessageCenterRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RunNotifyComponentWithMessageCenter").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RunNotifyComponentWithMessageCenterResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<RunNotifyComponentWithMessageCenterResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of RunNotifyComponentWithWebhook RunNotifyComponentWithWebhookRequest * @return RunNotifyComponentWithWebhookResponse */ @Override public CompletableFuture<RunNotifyComponentWithWebhookResponse> runNotifyComponentWithWebhook(RunNotifyComponentWithWebhookRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RunNotifyComponentWithWebhook").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RunNotifyComponentWithWebhookResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<RunNotifyComponentWithWebhookResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Before you call this operation, make sure that you understand the billing method and pricing of Security Orchestration Automation Response (SOAR). For more information, see <a href="https://www.alibabacloud.com/en/pricing-calculator?_p_lc=1&spm=openapi-amp.newDocPublishment.0.0.4c41281fWhbdPa#/commodity/vm_intl">Pricing</a>.</p> * * @param request the request parameters of RunPython3Script RunPython3ScriptRequest * @return RunPython3ScriptResponse */ @Override public CompletableFuture<RunPython3ScriptResponse> runPython3Script(RunPython3ScriptRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RunPython3Script").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RunPython3ScriptResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<RunPython3ScriptResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Before you call this operation, make sure that you understand the billing methods and pricing of Security Orchestration Automation Response (SOAR). For more information, see <a href="https://www.alibabacloud.com/en/pricing-calculator?_p_lc=1&spm=a2796.7960336.3034855210.1.7adab91arMeIx2#/commodity/vm_intl">Pricing</a>.</p> * * @param request the request parameters of TriggerPlaybook TriggerPlaybookRequest * @return TriggerPlaybookResponse */ @Override public CompletableFuture<TriggerPlaybookResponse> triggerPlaybook(TriggerPlaybookRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("TriggerPlaybook").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(TriggerPlaybookResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<TriggerPlaybookResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of TriggerProcessTask TriggerProcessTaskRequest * @return TriggerProcessTaskResponse */ @Override public CompletableFuture<TriggerProcessTaskResponse> triggerProcessTask(TriggerProcessTaskRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("TriggerProcessTask").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(TriggerProcessTaskResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<TriggerProcessTaskResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Before you call this operation, make sure that you understand the billing methods and pricing of Security Orchestration Automation Response (SOAR). For more information, see <a href="https://www.alibabacloud.com/en/pricing-calculator?_p_lc=1&spm=a2796.7960336.3034855210.1.7adab91arMeIx2#/commodity/vm_intl">Pricing</a>.</p> * * @param request the request parameters of TriggerSophonPlaybook TriggerSophonPlaybookRequest * @return TriggerSophonPlaybookResponse */ @Override public CompletableFuture<TriggerSophonPlaybookResponse> triggerSophonPlaybook(TriggerSophonPlaybookRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("TriggerSophonPlaybook").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(TriggerSophonPlaybookResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<TriggerSophonPlaybookResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of VerifyPlaybook VerifyPlaybookRequest * @return VerifyPlaybookResponse */ @Override public CompletableFuture<VerifyPlaybookResponse> verifyPlaybook(VerifyPlaybookRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("VerifyPlaybook").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(VerifyPlaybookResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<VerifyPlaybookResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of VerifyPythonFile VerifyPythonFileRequest * @return VerifyPythonFileResponse */ @Override public CompletableFuture<VerifyPythonFileResponse> verifyPythonFile(VerifyPythonFileRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("VerifyPythonFile").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(VerifyPythonFileResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<VerifyPythonFileResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/DefaultAsyncClientBuilder.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728; import com.aliyun.sdk.gateway.pop.BaseClientBuilder; public final class DefaultAsyncClientBuilder extends BaseClientBuilder<DefaultAsyncClientBuilder, AsyncClient> { @Override protected String serviceName() { return "sophonsoar20220728"; } @Override protected final AsyncClient buildClient() { return new DefaultAsyncClient(super.applyClientConfiguration()); } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/BatchModifyInstanceStatusRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 BatchModifyInstanceStatusRequest} extends {@link RequestModel} * * <p>BatchModifyInstanceStatusRequest</p> */ public class BatchModifyInstanceStatusRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Active") @com.aliyun.core.annotation.Validation(required = true) private Integer active; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("PlaybookUuid") @com.aliyun.core.annotation.Validation(required = true) private String playbookUuid; private BatchModifyInstanceStatusRequest(Builder builder) { super(builder); this.active = builder.active; this.lang = builder.lang; this.playbookUuid = builder.playbookUuid; } public static Builder builder() { return new Builder(); } public static BatchModifyInstanceStatusRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return active */ public Integer getActive() { return this.active; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return playbookUuid */ public String getPlaybookUuid() { return this.playbookUuid; } public static final class Builder extends Request.Builder<BatchModifyInstanceStatusRequest, Builder> { private Integer active; private String lang; private String playbookUuid; private Builder() { super(); } private Builder(BatchModifyInstanceStatusRequest request) { super(request); this.active = request.active; this.lang = request.lang; this.playbookUuid = request.playbookUuid; } /** * <p>Specifies whether to start or stop the playbook.</p> * <ul> * <li><strong>0</strong>: stops the playbook.</li> * <li><strong>1</strong>: starts the playbook.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder active(Integer active) { this.putBodyParameter("Active", active); this.active = active; return this; } /** * <p>The language of the content within the request and response. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese (default)</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The playbook UUID. If you want to specify multiple playbooks, separate the playbook UUIDs with commas (,).</p> * <blockquote> * <p> You can call the <a href="~~DescribePlaybooks~~">DescribePlaybooks</a>operation to query the playbook UUID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>8baa6cff-319e-4ede-97bc-1xxxxxx,s8df2e-s8dfs-xxxx</p> */ public Builder playbookUuid(String playbookUuid) { this.putBodyParameter("PlaybookUuid", playbookUuid); this.playbookUuid = playbookUuid; return this; } @Override public BatchModifyInstanceStatusRequest build() { return new BatchModifyInstanceStatusRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/BatchModifyInstanceStatusResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 BatchModifyInstanceStatusResponse} extends {@link TeaModel} * * <p>BatchModifyInstanceStatusResponse</p> */ public class BatchModifyInstanceStatusResponse 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 BatchModifyInstanceStatusResponseBody body; private BatchModifyInstanceStatusResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static BatchModifyInstanceStatusResponse 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 BatchModifyInstanceStatusResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<BatchModifyInstanceStatusResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(BatchModifyInstanceStatusResponseBody body); @Override BatchModifyInstanceStatusResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<BatchModifyInstanceStatusResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private BatchModifyInstanceStatusResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(BatchModifyInstanceStatusResponse 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(BatchModifyInstanceStatusResponseBody body) { this.body = body; return this; } @Override public BatchModifyInstanceStatusResponse build() { return new BatchModifyInstanceStatusResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/BatchModifyInstanceStatusResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 BatchModifyInstanceStatusResponseBody} extends {@link TeaModel} * * <p>BatchModifyInstanceStatusResponseBody</p> */ public class BatchModifyInstanceStatusResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private BatchModifyInstanceStatusResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static BatchModifyInstanceStatusResponseBody 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(BatchModifyInstanceStatusResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>358E012F-B516-599D-9ED0-A1A361CDE615</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public BatchModifyInstanceStatusResponseBody build() { return new BatchModifyInstanceStatusResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/ComparePlaybooksRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 ComparePlaybooksRequest} extends {@link RequestModel} * * <p>ComparePlaybooksRequest</p> */ public class ComparePlaybooksRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NewPlaybookReleaseId") @com.aliyun.core.annotation.Validation(required = true) private Integer newPlaybookReleaseId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OldPlaybookReleaseId") @com.aliyun.core.annotation.Validation(required = true) private Integer oldPlaybookReleaseId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PlaybookUuid") @com.aliyun.core.annotation.Validation(required = true) private String playbookUuid; private ComparePlaybooksRequest(Builder builder) { super(builder); this.lang = builder.lang; this.newPlaybookReleaseId = builder.newPlaybookReleaseId; this.oldPlaybookReleaseId = builder.oldPlaybookReleaseId; this.playbookUuid = builder.playbookUuid; } public static Builder builder() { return new Builder(); } public static ComparePlaybooksRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return lang */ public String getLang() { return this.lang; } /** * @return newPlaybookReleaseId */ public Integer getNewPlaybookReleaseId() { return this.newPlaybookReleaseId; } /** * @return oldPlaybookReleaseId */ public Integer getOldPlaybookReleaseId() { return this.oldPlaybookReleaseId; } /** * @return playbookUuid */ public String getPlaybookUuid() { return this.playbookUuid; } public static final class Builder extends Request.Builder<ComparePlaybooksRequest, Builder> { private String lang; private Integer newPlaybookReleaseId; private Integer oldPlaybookReleaseId; private String playbookUuid; private Builder() { super(); } private Builder(ComparePlaybooksRequest request) { super(request); this.lang = request.lang; this.newPlaybookReleaseId = request.newPlaybookReleaseId; this.oldPlaybookReleaseId = request.oldPlaybookReleaseId; this.playbookUuid = request.playbookUuid; } /** * <p>The language of the content within the request and response. Valid values:</p> * <ul> * <li><strong>zh</strong> (default): Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The ID of the second version.</p> * <blockquote> * <p> You can call the <a href="~~DescribePlaybookReleases~~">DescribePlaybookReleases</a> operation to query the IDs of versions. The system automatically generates IDs for new versions.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>sfdf2395-e814-459f-9662-xxxxx</p> */ public Builder newPlaybookReleaseId(Integer newPlaybookReleaseId) { this.putQueryParameter("NewPlaybookReleaseId", newPlaybookReleaseId); this.newPlaybookReleaseId = newPlaybookReleaseId; return this; } /** * <p>The ID of the first version.</p> * <blockquote> * <p> You can call the <a href="~~DescribePlaybookReleases~~">DescribePlaybookReleases</a> operation to query the IDs of versions. The system automatically generates IDs for new versions.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>sflk23423-e814-459f-9662-xxxxx</p> */ public Builder oldPlaybookReleaseId(Integer oldPlaybookReleaseId) { this.putQueryParameter("OldPlaybookReleaseId", oldPlaybookReleaseId); this.oldPlaybookReleaseId = oldPlaybookReleaseId; return this; } /** * <p>The UUID of the playbook.</p> * <blockquote> * <p> You can call the <a href="~~DescribePlaybooks~~">DescribePlaybooks</a>operation to query the UUIDs of playbooks.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>f916b93e-e814-459f-9662-xxxxx</p> */ public Builder playbookUuid(String playbookUuid) { this.putQueryParameter("PlaybookUuid", playbookUuid); this.playbookUuid = playbookUuid; return this; } @Override public ComparePlaybooksRequest build() { return new ComparePlaybooksRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/ComparePlaybooksResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 ComparePlaybooksResponse} extends {@link TeaModel} * * <p>ComparePlaybooksResponse</p> */ public class ComparePlaybooksResponse 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 ComparePlaybooksResponseBody body; private ComparePlaybooksResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ComparePlaybooksResponse 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 ComparePlaybooksResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ComparePlaybooksResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ComparePlaybooksResponseBody body); @Override ComparePlaybooksResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ComparePlaybooksResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ComparePlaybooksResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ComparePlaybooksResponse 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(ComparePlaybooksResponseBody body) { this.body = body; return this; } @Override public ComparePlaybooksResponse build() { return new ComparePlaybooksResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/ComparePlaybooksResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 ComparePlaybooksResponseBody} extends {@link TeaModel} * * <p>ComparePlaybooksResponseBody</p> */ public class ComparePlaybooksResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CompareResult") private CompareResult compareResult; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ComparePlaybooksResponseBody(Builder builder) { this.compareResult = builder.compareResult; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ComparePlaybooksResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return compareResult */ public CompareResult getCompareResult() { return this.compareResult; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private CompareResult compareResult; private String requestId; private Builder() { } private Builder(ComparePlaybooksResponseBody model) { this.compareResult = model.compareResult; this.requestId = model.requestId; } /** * <p>The comparison result.</p> */ public Builder compareResult(CompareResult compareResult) { this.compareResult = compareResult; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>2EC05B06-BF3C-5F3E-8FE8-3B1FAD76087A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ComparePlaybooksResponseBody build() { return new ComparePlaybooksResponseBody(this); } } /** * * {@link ComparePlaybooksResponseBody} extends {@link TeaModel} * * <p>ComparePlaybooksResponseBody</p> */ public static class CompareResult extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("New") private Boolean _new; @com.aliyun.core.annotation.NameInMap("Same") private Boolean same; private CompareResult(Builder builder) { this.description = builder.description; this._new = builder._new; this.same = builder.same; } public static Builder builder() { return new Builder(); } public static CompareResult create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return _new */ public Boolean get_new() { return this._new; } /** * @return same */ public Boolean getSame() { return this.same; } public static final class Builder { private String description; private Boolean _new; private Boolean same; private Builder() { } private Builder(CompareResult model) { this.description = model.description; this._new = model._new; this.same = model.same; } /** * <p>The description of the comparison result.</p> * * <strong>example:</strong> * <p>The first version adds one node compared to the second version</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>Indicates whether the second version provides more information than the first version. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder _new(Boolean _new) { this._new = _new; return this; } /** * <p>Indicates whether the configurations of the two versions are the same. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder same(Boolean same) { this.same = same; return this; } public CompareResult build() { return new CompareResult(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/ConvertPlaybookRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 ConvertPlaybookRequest} extends {@link RequestModel} * * <p>ConvertPlaybookRequest</p> */ public class ConvertPlaybookRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RoleFor") private Long roleFor; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RoleType") private String roleType; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Taskflow") @com.aliyun.core.annotation.Validation(required = true) private String taskflow; private ConvertPlaybookRequest(Builder builder) { super(builder); this.lang = builder.lang; this.roleFor = builder.roleFor; this.roleType = builder.roleType; this.taskflow = builder.taskflow; } public static Builder builder() { return new Builder(); } public static ConvertPlaybookRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return lang */ public String getLang() { return this.lang; } /** * @return roleFor */ public Long getRoleFor() { return this.roleFor; } /** * @return roleType */ public String getRoleType() { return this.roleType; } /** * @return taskflow */ public String getTaskflow() { return this.taskflow; } public static final class Builder extends Request.Builder<ConvertPlaybookRequest, Builder> { private String lang; private Long roleFor; private String roleType; private String taskflow; private Builder() { super(); } private Builder(ConvertPlaybookRequest request) { super(request); this.lang = request.lang; this.roleFor = request.roleFor; this.roleType = request.roleType; this.taskflow = request.taskflow; } /** * <p>Language type for request and response messages. Values:</p> * <ul> * <li><strong>zh</strong> (default): Chinese.</li> * <li><strong>en</strong>: English.</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>User ID for the administrator to switch to another member&quot;s perspective.</p> * * <strong>example:</strong> * <p>13760*****718726</p> */ public Builder roleFor(Long roleFor) { this.putQueryParameter("RoleFor", roleFor); this.roleFor = roleFor; return this; } /** * <p>View type. Values:</p> * <ul> * <li>0: Current Alibaba Cloud account view.</li> * <li>1: View for all accounts under the enterprise.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder roleType(String roleType) { this.putQueryParameter("RoleType", roleType); this.roleType = roleType; return this; } /** * <p>XML configuration information for playbook orchestration.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <?xml version=\"1.0\" encoding=\"UTF-8\"?> * <p>&lt;bpmn:definitions xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance%5C">http://www.w3.org/2001/XMLSchema-instance\</a>&quot; xmlns:bpmn=&quot;<a href="http://www.omg.org/spec/BPMN/20100524/MODEL%5C">http://www.omg.org/spec/BPMN/20100524/MODEL\</a>&quot; xmlns:bpmndi=&quot;<a href="http://www.omg.org/spec/BPMN/20100524/DI%5C">http://www.omg.org/spec/BPMN/20100524/DI\</a>&quot; xmlns:dc=&quot;<a href="http://www.omg.org/spec/DD/20100524/DC%5C">http://www.omg.org/spec/DD/20100524/DC\</a>&quot; id=&quot;Definitions_1&quot; targetNamespace=&quot;<a href="http://bpmn.io/schema/bpmn%5C%22%3E">http://bpmn.io/schema/bpmn\&quot;&gt;</a> * &lt;bpmn:process id=&quot;Process_1&quot; isExecutable=&quot;false&quot;&gt; * &lt;bpmn:startEvent id=&quot;StartEvent_1&quot; /&gt; * </bpmn:process> * &lt;bpmndi:BPMNDiagram id=&quot;BPMNDiagram_1&quot;&gt; * &lt;bpmndi:BPMNPlane id=&quot;BPMNPlane_1&quot; bpmnElement=&quot;Process_1&quot;&gt; * &lt;bpmndi:BPMNShape id=&quot;_BPMNShape_StartEvent_2&quot; bpmnElement=&quot;StartEvent_1&quot;&gt; * &lt;dc:Bounds x=&quot;173&quot; y=&quot;102&quot; width=&quot;36&quot; height=&quot;36&quot; /&gt; * </bpmndi:BPMNShape> * </bpmndi:BPMNPlane> * </bpmndi:BPMNDiagram> * </bpmn:definitions></p> */ public Builder taskflow(String taskflow) { this.putBodyParameter("Taskflow", taskflow); this.taskflow = taskflow; return this; } @Override public ConvertPlaybookRequest build() { return new ConvertPlaybookRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/ConvertPlaybookResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 ConvertPlaybookResponse} extends {@link TeaModel} * * <p>ConvertPlaybookResponse</p> */ public class ConvertPlaybookResponse 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 ConvertPlaybookResponseBody body; private ConvertPlaybookResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ConvertPlaybookResponse 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 ConvertPlaybookResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ConvertPlaybookResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ConvertPlaybookResponseBody body); @Override ConvertPlaybookResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ConvertPlaybookResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ConvertPlaybookResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ConvertPlaybookResponse 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(ConvertPlaybookResponseBody body) { this.body = body; return this; } @Override public ConvertPlaybookResponse build() { return new ConvertPlaybookResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/ConvertPlaybookResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 ConvertPlaybookResponseBody} extends {@link TeaModel} * * <p>ConvertPlaybookResponseBody</p> */ public class ConvertPlaybookResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Config") private String config; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ConvertPlaybookResponseBody(Builder builder) { this.config = builder.config; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ConvertPlaybookResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return config */ public String getConfig() { return this.config; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String config; private String requestId; private Builder() { } private Builder(ConvertPlaybookResponseBody model) { this.config = model.config; this.requestId = model.requestId; } /** * <p>The configurations.</p> * * <strong>example:</strong> * <p>{}</p> */ public Builder config(String config) { this.config = config; return this; } /** * <p>The ID of this call request, which is a unique identifier generated by Alibaba Cloud for this request, and can be used for troubleshooting and problem localization.</p> * * <strong>example:</strong> * <p>39C38A34-<strong><strong>-</strong>***-**</strong>-7263B435C316</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ConvertPlaybookResponseBody build() { return new ConvertPlaybookResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/CopyPlaybookRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 CopyPlaybookRequest} extends {@link RequestModel} * * <p>CopyPlaybookRequest</p> */ public class CopyPlaybookRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("DisplayName") @com.aliyun.core.annotation.Validation(required = true) private String displayName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("ReleaseVersion") private String releaseVersion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RoleFor") private Long roleFor; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RoleType") private String roleType; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("SourcePlaybookUuid") @com.aliyun.core.annotation.Validation(required = true) private String sourcePlaybookUuid; private CopyPlaybookRequest(Builder builder) { super(builder); this.description = builder.description; this.displayName = builder.displayName; this.lang = builder.lang; this.releaseVersion = builder.releaseVersion; this.roleFor = builder.roleFor; this.roleType = builder.roleType; this.sourcePlaybookUuid = builder.sourcePlaybookUuid; } public static Builder builder() { return new Builder(); } public static CopyPlaybookRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return displayName */ public String getDisplayName() { return this.displayName; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return releaseVersion */ public String getReleaseVersion() { return this.releaseVersion; } /** * @return roleFor */ public Long getRoleFor() { return this.roleFor; } /** * @return roleType */ public String getRoleType() { return this.roleType; } /** * @return sourcePlaybookUuid */ public String getSourcePlaybookUuid() { return this.sourcePlaybookUuid; } public static final class Builder extends Request.Builder<CopyPlaybookRequest, Builder> { private String description; private String displayName; private String lang; private String releaseVersion; private Long roleFor; private String roleType; private String sourcePlaybookUuid; private Builder() { super(); } private Builder(CopyPlaybookRequest request) { super(request); this.description = request.description; this.displayName = request.displayName; this.lang = request.lang; this.releaseVersion = request.releaseVersion; this.roleFor = request.roleFor; this.roleType = request.roleType; this.sourcePlaybookUuid = request.sourcePlaybookUuid; } /** * Description. */ public Builder description(String description) { this.putBodyParameter("Description", description); this.description = description; return this; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>playbook_xxx</p> */ public Builder displayName(String displayName) { this.putBodyParameter("DisplayName", displayName); this.displayName = displayName; return this; } /** * Lang. */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * ReleaseVersion. */ public Builder releaseVersion(String releaseVersion) { this.putBodyParameter("ReleaseVersion", releaseVersion); this.releaseVersion = releaseVersion; return this; } /** * RoleFor. */ public Builder roleFor(Long roleFor) { this.putQueryParameter("RoleFor", roleFor); this.roleFor = roleFor; return this; } /** * RoleType. */ public Builder roleType(String roleType) { this.putQueryParameter("RoleType", roleType); this.roleType = roleType; return this; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>94bc318c-<strong><strong>-4cba-</strong></strong>-801ccb0d739f</p> */ public Builder sourcePlaybookUuid(String sourcePlaybookUuid) { this.putBodyParameter("SourcePlaybookUuid", sourcePlaybookUuid); this.sourcePlaybookUuid = sourcePlaybookUuid; return this; } @Override public CopyPlaybookRequest build() { return new CopyPlaybookRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/CopyPlaybookResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 CopyPlaybookResponse} extends {@link TeaModel} * * <p>CopyPlaybookResponse</p> */ public class CopyPlaybookResponse 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 CopyPlaybookResponseBody body; private CopyPlaybookResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CopyPlaybookResponse 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 CopyPlaybookResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CopyPlaybookResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CopyPlaybookResponseBody body); @Override CopyPlaybookResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CopyPlaybookResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CopyPlaybookResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CopyPlaybookResponse 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(CopyPlaybookResponseBody body) { this.body = body; return this; } @Override public CopyPlaybookResponse build() { return new CopyPlaybookResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/CopyPlaybookResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 CopyPlaybookResponseBody} extends {@link TeaModel} * * <p>CopyPlaybookResponseBody</p> */ public class CopyPlaybookResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("Page") private Page page; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CopyPlaybookResponseBody(Builder builder) { this.data = builder.data; this.page = builder.page; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CopyPlaybookResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return data */ public Data getData() { return this.data; } /** * @return page */ public Page getPage() { return this.page; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Data data; private Page page; private String requestId; private Builder() { } private Builder(CopyPlaybookResponseBody model) { this.data = model.data; this.page = model.page; this.requestId = model.requestId; } /** * Data. */ public Builder data(Data data) { this.data = data; return this; } /** * Page. */ public Builder page(Page page) { this.page = page; return this; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CopyPlaybookResponseBody build() { return new CopyPlaybookResponseBody(this); } } /** * * {@link CopyPlaybookResponseBody} extends {@link TeaModel} * * <p>CopyPlaybookResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("Active") private Integer active; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DisplayName") private String displayName; @com.aliyun.core.annotation.NameInMap("FailNum") private Integer failNum; @com.aliyun.core.annotation.NameInMap("FailRate") private Double failRate; @com.aliyun.core.annotation.NameInMap("GmtCreate") private Long gmtCreate; @com.aliyun.core.annotation.NameInMap("GmtModified") private Long gmtModified; @com.aliyun.core.annotation.NameInMap("HistoryMd5") private Integer historyMd5; @com.aliyun.core.annotation.NameInMap("InputParams") private String inputParams; @com.aliyun.core.annotation.NameInMap("LastRuntime") private Long lastRuntime; @com.aliyun.core.annotation.NameInMap("LogicReleaseTaskflowMd5") private String logicReleaseTaskflowMd5; @com.aliyun.core.annotation.NameInMap("OutputParams") private String outputParams; @com.aliyun.core.annotation.NameInMap("OwnType") private String ownType; @com.aliyun.core.annotation.NameInMap("Permission") private Integer permission; @com.aliyun.core.annotation.NameInMap("PlaybookStatus") private Integer playbookStatus; @com.aliyun.core.annotation.NameInMap("PlaybookUuid") private String playbookUuid; @com.aliyun.core.annotation.NameInMap("SuccNum") private Integer succNum; @com.aliyun.core.annotation.NameInMap("TenantId") private String tenantId; private Data(Builder builder) { this.active = builder.active; this.description = builder.description; this.displayName = builder.displayName; this.failNum = builder.failNum; this.failRate = builder.failRate; this.gmtCreate = builder.gmtCreate; this.gmtModified = builder.gmtModified; this.historyMd5 = builder.historyMd5; this.inputParams = builder.inputParams; this.lastRuntime = builder.lastRuntime; this.logicReleaseTaskflowMd5 = builder.logicReleaseTaskflowMd5; this.outputParams = builder.outputParams; this.ownType = builder.ownType; this.permission = builder.permission; this.playbookStatus = builder.playbookStatus; this.playbookUuid = builder.playbookUuid; this.succNum = builder.succNum; this.tenantId = builder.tenantId; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return active */ public Integer getActive() { return this.active; } /** * @return description */ public String getDescription() { return this.description; } /** * @return displayName */ public String getDisplayName() { return this.displayName; } /** * @return failNum */ public Integer getFailNum() { return this.failNum; } /** * @return failRate */ public Double getFailRate() { return this.failRate; } /** * @return gmtCreate */ public Long getGmtCreate() { return this.gmtCreate; } /** * @return gmtModified */ public Long getGmtModified() { return this.gmtModified; } /** * @return historyMd5 */ public Integer getHistoryMd5() { return this.historyMd5; } /** * @return inputParams */ public String getInputParams() { return this.inputParams; } /** * @return lastRuntime */ public Long getLastRuntime() { return this.lastRuntime; } /** * @return logicReleaseTaskflowMd5 */ public String getLogicReleaseTaskflowMd5() { return this.logicReleaseTaskflowMd5; } /** * @return outputParams */ public String getOutputParams() { return this.outputParams; } /** * @return ownType */ public String getOwnType() { return this.ownType; } /** * @return permission */ public Integer getPermission() { return this.permission; } /** * @return playbookStatus */ public Integer getPlaybookStatus() { return this.playbookStatus; } /** * @return playbookUuid */ public String getPlaybookUuid() { return this.playbookUuid; } /** * @return succNum */ public Integer getSuccNum() { return this.succNum; } /** * @return tenantId */ public String getTenantId() { return this.tenantId; } public static final class Builder { private Integer active; private String description; private String displayName; private Integer failNum; private Double failRate; private Long gmtCreate; private Long gmtModified; private Integer historyMd5; private String inputParams; private Long lastRuntime; private String logicReleaseTaskflowMd5; private String outputParams; private String ownType; private Integer permission; private Integer playbookStatus; private String playbookUuid; private Integer succNum; private String tenantId; private Builder() { } private Builder(Data model) { this.active = model.active; this.description = model.description; this.displayName = model.displayName; this.failNum = model.failNum; this.failRate = model.failRate; this.gmtCreate = model.gmtCreate; this.gmtModified = model.gmtModified; this.historyMd5 = model.historyMd5; this.inputParams = model.inputParams; this.lastRuntime = model.lastRuntime; this.logicReleaseTaskflowMd5 = model.logicReleaseTaskflowMd5; this.outputParams = model.outputParams; this.ownType = model.ownType; this.permission = model.permission; this.playbookStatus = model.playbookStatus; this.playbookUuid = model.playbookUuid; this.succNum = model.succNum; this.tenantId = model.tenantId; } /** * Active. */ public Builder active(Integer active) { this.active = active; return this; } /** * Description. */ public Builder description(String description) { this.description = description; return this; } /** * DisplayName. */ public Builder displayName(String displayName) { this.displayName = displayName; return this; } /** * FailNum. */ public Builder failNum(Integer failNum) { this.failNum = failNum; return this; } /** * FailRate. */ public Builder failRate(Double failRate) { this.failRate = failRate; return this; } /** * GmtCreate. */ public Builder gmtCreate(Long gmtCreate) { this.gmtCreate = gmtCreate; return this; } /** * GmtModified. */ public Builder gmtModified(Long gmtModified) { this.gmtModified = gmtModified; return this; } /** * HistoryMd5. */ public Builder historyMd5(Integer historyMd5) { this.historyMd5 = historyMd5; return this; } /** * InputParams. */ public Builder inputParams(String inputParams) { this.inputParams = inputParams; return this; } /** * LastRuntime. */ public Builder lastRuntime(Long lastRuntime) { this.lastRuntime = lastRuntime; return this; } /** * LogicReleaseTaskflowMd5. */ public Builder logicReleaseTaskflowMd5(String logicReleaseTaskflowMd5) { this.logicReleaseTaskflowMd5 = logicReleaseTaskflowMd5; return this; } /** * OutputParams. */ public Builder outputParams(String outputParams) { this.outputParams = outputParams; return this; } /** * OwnType. */ public Builder ownType(String ownType) { this.ownType = ownType; return this; } /** * Permission. */ public Builder permission(Integer permission) { this.permission = permission; return this; } /** * PlaybookStatus. */ public Builder playbookStatus(Integer playbookStatus) { this.playbookStatus = playbookStatus; return this; } /** * PlaybookUuid. */ public Builder playbookUuid(String playbookUuid) { this.playbookUuid = playbookUuid; return this; } /** * SuccNum. */ public Builder succNum(Integer succNum) { this.succNum = succNum; return this; } /** * TenantId. */ public Builder tenantId(String tenantId) { this.tenantId = tenantId; return this; } public Data build() { return new Data(this); } } } /** * * {@link CopyPlaybookResponseBody} extends {@link TeaModel} * * <p>CopyPlaybookResponseBody</p> */ public static class Page 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("TotalCount") private Integer totalCount; private Page(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static Page create() { return builder().build(); } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(Page model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * PageNumber. */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * PageSize. */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * TotalCount. */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public Page build() { return new Page(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/CreatePlaybookRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 CreatePlaybookRequest} extends {@link RequestModel} * * <p>CreatePlaybookRequest</p> */ public class CreatePlaybookRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("DisplayName") @com.aliyun.core.annotation.Validation(required = true) private String displayName; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("TaskflowType") private String taskflowType; private CreatePlaybookRequest(Builder builder) { super(builder); this.description = builder.description; this.displayName = builder.displayName; this.lang = builder.lang; this.taskflowType = builder.taskflowType; } public static Builder builder() { return new Builder(); } public static CreatePlaybookRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return displayName */ public String getDisplayName() { return this.displayName; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return taskflowType */ public String getTaskflowType() { return this.taskflowType; } public static final class Builder extends Request.Builder<CreatePlaybookRequest, Builder> { private String description; private String displayName; private String lang; private String taskflowType; private Builder() { super(); } private Builder(CreatePlaybookRequest request) { super(request); this.description = request.description; this.displayName = request.displayName; this.lang = request.lang; this.taskflowType = request.taskflowType; } /** * <p>Description of the playbook.</p> * * <strong>example:</strong> * <p>This is a new version</p> */ public Builder description(String description) { this.putBodyParameter("Description", description); this.description = description; return this; } /** * <p>Name of the playbook.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>test09</p> */ public Builder displayName(String displayName) { this.putBodyParameter("DisplayName", displayName); this.displayName = displayName; return this; } /** * <p>Language type for receiving messages. Values:</p> * <ul> * <li><strong>zh</strong> (default): Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putBodyParameter("Lang", lang); this.lang = lang; return this; } /** * <p>Playbook TaskFlow type.</p> * <ul> * <li><strong>x6</strong> : x6</li> * <li><strong>bpmn</strong>: bpmn</li> * </ul> * * <strong>example:</strong> * <p>x6</p> */ public Builder taskflowType(String taskflowType) { this.putBodyParameter("TaskflowType", taskflowType); this.taskflowType = taskflowType; return this; } @Override public CreatePlaybookRequest build() { return new CreatePlaybookRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/CreatePlaybookResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 CreatePlaybookResponse} extends {@link TeaModel} * * <p>CreatePlaybookResponse</p> */ public class CreatePlaybookResponse 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 CreatePlaybookResponseBody body; private CreatePlaybookResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreatePlaybookResponse 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 CreatePlaybookResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreatePlaybookResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreatePlaybookResponseBody body); @Override CreatePlaybookResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreatePlaybookResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreatePlaybookResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreatePlaybookResponse 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(CreatePlaybookResponseBody body) { this.body = body; return this; } @Override public CreatePlaybookResponse build() { return new CreatePlaybookResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/CreatePlaybookResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 CreatePlaybookResponseBody} extends {@link TeaModel} * * <p>CreatePlaybookResponseBody</p> */ public class CreatePlaybookResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreatePlaybookResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreatePlaybookResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return data */ public Data getData() { return this.data; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Data data; private String requestId; private Builder() { } private Builder(CreatePlaybookResponseBody model) { this.data = model.data; this.requestId = model.requestId; } /** * <p>The result of the creation.</p> */ public Builder data(Data data) { this.data = data; return this; } /** * <p>The ID of this call request, a unique identifier generated by Alibaba Cloud for this request, which can be used to troubleshoot and locate issues.</p> * * <strong>example:</strong> * <p>B09B40B2-F11E-512C-B755-423F2056C17B</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreatePlaybookResponseBody build() { return new CreatePlaybookResponseBody(this); } } /** * * {@link CreatePlaybookResponseBody} extends {@link TeaModel} * * <p>CreatePlaybookResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("PlaybookUuid") private String playbookUuid; private Data(Builder builder) { this.playbookUuid = builder.playbookUuid; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return playbookUuid */ public String getPlaybookUuid() { return this.playbookUuid; } public static final class Builder { private String playbookUuid; private Builder() { } private Builder(Data model) { this.playbookUuid = model.playbookUuid; } /** * <p>UUID of the newly created playbook.</p> * * <strong>example:</strong> * <p>9e38111e-9794-4784-9ca8-xxxxxxx</p> */ public Builder playbookUuid(String playbookUuid) { this.playbookUuid = playbookUuid; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DebugPlaybookRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DebugPlaybookRequest} extends {@link RequestModel} * * <p>DebugPlaybookRequest</p> */ public class DebugPlaybookRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("PlaybookUuid") @com.aliyun.core.annotation.Validation(required = true) private String playbookUuid; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Record") private String record; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Taskflow") @com.aliyun.core.annotation.Validation(required = true) private String taskflow; private DebugPlaybookRequest(Builder builder) { super(builder); this.lang = builder.lang; this.playbookUuid = builder.playbookUuid; this.record = builder.record; this.taskflow = builder.taskflow; } public static Builder builder() { return new Builder(); } public static DebugPlaybookRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return lang */ public String getLang() { return this.lang; } /** * @return playbookUuid */ public String getPlaybookUuid() { return this.playbookUuid; } /** * @return record */ public String getRecord() { return this.record; } /** * @return taskflow */ public String getTaskflow() { return this.taskflow; } public static final class Builder extends Request.Builder<DebugPlaybookRequest, Builder> { private String lang; private String playbookUuid; private String record; private String taskflow; private Builder() { super(); } private Builder(DebugPlaybookRequest request) { super(request); this.lang = request.lang; this.playbookUuid = request.playbookUuid; this.record = request.record; this.taskflow = request.taskflow; } /** * <p>The language of the content within the request and response. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese (default)</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putBodyParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The playbook UUID.</p> * <blockquote> * <p> You can call the <a href="~~DescribePlaybooks~~">DescribePlaybooks</a>operation to query the playbook UUID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>f916b93e-e814-459f-9662-xxxxx</p> */ public Builder playbookUuid(String playbookUuid) { this.putBodyParameter("PlaybookUuid", playbookUuid); this.playbookUuid = playbookUuid; return this; } /** * <p>The input parameters that you use to debug the playbook. You can define the parameters based on your business requirements.</p> * * <strong>example:</strong> * <p>{ * &quot;param1&quot;:&quot;a&quot;, * &quot;param2&quot;:&quot;b&quot; * }</p> */ public Builder record(String record) { this.putBodyParameter("Record", record); this.record = record; return this; } /** * <p>The XML configuration of the playbook.</p> * <blockquote> * <p> You can call the <a href="~~DescribePlaybook~~">DescribePlaybook</a> operation to query the XML configuration of the playbook.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <?xml version="1.0" encoding="UTF-8"?><p>&lt;bpmn:definitions xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot; xmlns:bpmn=&quot;<a href="http://www.omg.org/spec/BPMN/20100524/MODEL">http://www.omg.org/spec/BPMN/20100524/MODEL</a>&quot; xmlns:bpmndi=&quot;<a href="http://www.omg.org/spec/BPMN/20100524/DI">http://www.omg.org/spec/BPMN/20100524/DI</a>&quot; xmlns:dc=&quot;<a href="http://www.omg.org/spec/DD/20100524/DC">http://www.omg.org/spec/DD/20100524/DC</a>&quot; targetNamespace=&quot;<a href="http://bpmn.io/schema/bpmn">http://bpmn.io/schema/bpmn</a>&quot; id=&quot;Definitions_1&quot;&gt;&lt;bpmn:process id=&quot;Process_1&quot; isExecutable=&quot;false&quot;&gt;&lt;bpmn:startEvent id=&quot;StartEvent_1&quot;/&gt;</bpmn:process>&lt;bpmndi:BPMNDiagram id=&quot;BPMNDiagram_1&quot;&gt;&lt;bpmndi:BPMNPlane id=&quot;BPMNPlane_1&quot; bpmnElement=&quot;Process_1&quot;&gt;&lt;bpmndi:BPMNShape id=&quot;_BPMNShape_StartEvent_2&quot; bpmnElement=&quot;StartEvent_1&quot;&gt;&lt;dc:Bounds height=&quot;36.0&quot; width=&quot;36.0&quot; x=&quot;173.0&quot; y=&quot;102.0&quot;/&gt;</bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions></p> */ public Builder taskflow(String taskflow) { this.putBodyParameter("Taskflow", taskflow); this.taskflow = taskflow; return this; } @Override public DebugPlaybookRequest build() { return new DebugPlaybookRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DebugPlaybookResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DebugPlaybookResponse} extends {@link TeaModel} * * <p>DebugPlaybookResponse</p> */ public class DebugPlaybookResponse 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 DebugPlaybookResponseBody body; private DebugPlaybookResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DebugPlaybookResponse 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 DebugPlaybookResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DebugPlaybookResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DebugPlaybookResponseBody body); @Override DebugPlaybookResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DebugPlaybookResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DebugPlaybookResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DebugPlaybookResponse 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(DebugPlaybookResponseBody body) { this.body = body; return this; } @Override public DebugPlaybookResponse build() { return new DebugPlaybookResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DebugPlaybookResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DebugPlaybookResponseBody} extends {@link TeaModel} * * <p>DebugPlaybookResponseBody</p> */ public class DebugPlaybookResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("RequestUuid") private String requestUuid; private DebugPlaybookResponseBody(Builder builder) { this.requestId = builder.requestId; this.requestUuid = builder.requestUuid; } public static Builder builder() { return new Builder(); } public static DebugPlaybookResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return requestUuid */ public String getRequestUuid() { return this.requestUuid; } public static final class Builder { private String requestId; private String requestUuid; private Builder() { } private Builder(DebugPlaybookResponseBody model) { this.requestId = model.requestId; this.requestUuid = model.requestUuid; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>75E56B2C-C8FA-5A2F-AA08-8745E2AC33EF</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The UUID of the debugging task. You can use the UUID to query the result and other details of the debugging task.</p> * * <strong>example:</strong> * <p>6d412cfa-0905-4567-8a83-xxxxxx</p> */ public Builder requestUuid(String requestUuid) { this.requestUuid = requestUuid; return this; } public DebugPlaybookResponseBody build() { return new DebugPlaybookResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DeleteComponentAssetRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DeleteComponentAssetRequest} extends {@link RequestModel} * * <p>DeleteComponentAssetRequest</p> */ public class DeleteComponentAssetRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AssetId") @com.aliyun.core.annotation.Validation(required = true) private Long assetId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; private DeleteComponentAssetRequest(Builder builder) { super(builder); this.assetId = builder.assetId; this.lang = builder.lang; } public static Builder builder() { return new Builder(); } public static DeleteComponentAssetRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return assetId */ public Long getAssetId() { return this.assetId; } /** * @return lang */ public String getLang() { return this.lang; } public static final class Builder extends Request.Builder<DeleteComponentAssetRequest, Builder> { private Long assetId; private String lang; private Builder() { super(); } private Builder(DeleteComponentAssetRequest request) { super(request); this.assetId = request.assetId; this.lang = request.lang; } /** * <p>The ID of the asset.</p> * <blockquote> * <p> You can call the <a href="~~DescribeComponentAssets~~">DescribeComponentAssets</a> operation to query the ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>12x</p> */ public Builder assetId(Long assetId) { this.putQueryParameter("AssetId", assetId); this.assetId = assetId; return this; } /** * <p>The language of the content within the request and the response. Valid values:</p> * <ul> * <li><strong>zh</strong> (default): Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } @Override public DeleteComponentAssetRequest build() { return new DeleteComponentAssetRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DeleteComponentAssetResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DeleteComponentAssetResponse} extends {@link TeaModel} * * <p>DeleteComponentAssetResponse</p> */ public class DeleteComponentAssetResponse 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 DeleteComponentAssetResponseBody body; private DeleteComponentAssetResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteComponentAssetResponse 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 DeleteComponentAssetResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteComponentAssetResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteComponentAssetResponseBody body); @Override DeleteComponentAssetResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteComponentAssetResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteComponentAssetResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteComponentAssetResponse 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(DeleteComponentAssetResponseBody body) { this.body = body; return this; } @Override public DeleteComponentAssetResponse build() { return new DeleteComponentAssetResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DeleteComponentAssetResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DeleteComponentAssetResponseBody} extends {@link TeaModel} * * <p>DeleteComponentAssetResponseBody</p> */ public class DeleteComponentAssetResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteComponentAssetResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteComponentAssetResponseBody 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(DeleteComponentAssetResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>39C38A34-8532-5D44-B88A-7263B435C316</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteComponentAssetResponseBody build() { return new DeleteComponentAssetResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DeletePlaybookRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DeletePlaybookRequest} extends {@link RequestModel} * * <p>DeletePlaybookRequest</p> */ public class DeletePlaybookRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("PlaybookUuid") @com.aliyun.core.annotation.Validation(required = true) private String playbookUuid; private DeletePlaybookRequest(Builder builder) { super(builder); this.lang = builder.lang; this.playbookUuid = builder.playbookUuid; } public static Builder builder() { return new Builder(); } public static DeletePlaybookRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return lang */ public String getLang() { return this.lang; } /** * @return playbookUuid */ public String getPlaybookUuid() { return this.playbookUuid; } public static final class Builder extends Request.Builder<DeletePlaybookRequest, Builder> { private String lang; private String playbookUuid; private Builder() { super(); } private Builder(DeletePlaybookRequest request) { super(request); this.lang = request.lang; this.playbookUuid = request.playbookUuid; } /** * <p>The language of the content within the request and response. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese (default)</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putBodyParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The UUID of the playbook.</p> * <blockquote> * <p> You can call the <a href="~~DescribePlaybooks~~">DescribePlaybooks</a>operation to query the playbook UUID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>e99dab31-499b-4307-9248-xxxxxx</p> */ public Builder playbookUuid(String playbookUuid) { this.putBodyParameter("PlaybookUuid", playbookUuid); this.playbookUuid = playbookUuid; return this; } @Override public DeletePlaybookRequest build() { return new DeletePlaybookRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DeletePlaybookResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DeletePlaybookResponse} extends {@link TeaModel} * * <p>DeletePlaybookResponse</p> */ public class DeletePlaybookResponse 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 DeletePlaybookResponseBody body; private DeletePlaybookResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeletePlaybookResponse 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 DeletePlaybookResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeletePlaybookResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeletePlaybookResponseBody body); @Override DeletePlaybookResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeletePlaybookResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeletePlaybookResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeletePlaybookResponse 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(DeletePlaybookResponseBody body) { this.body = body; return this; } @Override public DeletePlaybookResponse build() { return new DeletePlaybookResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DeletePlaybookResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DeletePlaybookResponseBody} extends {@link TeaModel} * * <p>DeletePlaybookResponseBody</p> */ public class DeletePlaybookResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeletePlaybookResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeletePlaybookResponseBody 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(DeletePlaybookResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>6F3CA8A9-B5BB-506A-9182-FFE80A6E0584</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeletePlaybookResponseBody build() { return new DeletePlaybookResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentAssetFormRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentAssetFormRequest} extends {@link RequestModel} * * <p>DescribeComponentAssetFormRequest</p> */ public class DescribeComponentAssetFormRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ComponentName") @com.aliyun.core.annotation.Validation(required = true) private String componentName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; private DescribeComponentAssetFormRequest(Builder builder) { super(builder); this.componentName = builder.componentName; this.lang = builder.lang; } public static Builder builder() { return new Builder(); } public static DescribeComponentAssetFormRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return componentName */ public String getComponentName() { return this.componentName; } /** * @return lang */ public String getLang() { return this.lang; } public static final class Builder extends Request.Builder<DescribeComponentAssetFormRequest, Builder> { private String componentName; private String lang; private Builder() { super(); } private Builder(DescribeComponentAssetFormRequest request) { super(request); this.componentName = request.componentName; this.lang = request.lang; } /** * <p>The component name.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>python3</p> */ public Builder componentName(String componentName) { this.putQueryParameter("ComponentName", componentName); this.componentName = componentName; return this; } /** * <p>The language of the content within the response. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese (default)</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } @Override public DescribeComponentAssetFormRequest build() { return new DescribeComponentAssetFormRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentAssetFormResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentAssetFormResponse} extends {@link TeaModel} * * <p>DescribeComponentAssetFormResponse</p> */ public class DescribeComponentAssetFormResponse 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 DescribeComponentAssetFormResponseBody body; private DescribeComponentAssetFormResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeComponentAssetFormResponse 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 DescribeComponentAssetFormResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeComponentAssetFormResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeComponentAssetFormResponseBody body); @Override DescribeComponentAssetFormResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeComponentAssetFormResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeComponentAssetFormResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeComponentAssetFormResponse 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(DescribeComponentAssetFormResponseBody body) { this.body = body; return this; } @Override public DescribeComponentAssetFormResponse build() { return new DescribeComponentAssetFormResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentAssetFormResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentAssetFormResponseBody} extends {@link TeaModel} * * <p>DescribeComponentAssetFormResponseBody</p> */ public class DescribeComponentAssetFormResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ComponentAssetForm") private String componentAssetForm; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeComponentAssetFormResponseBody(Builder builder) { this.componentAssetForm = builder.componentAssetForm; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeComponentAssetFormResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return componentAssetForm */ public String getComponentAssetForm() { return this.componentAssetForm; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String componentAssetForm; private String requestId; private Builder() { } private Builder(DescribeComponentAssetFormResponseBody model) { this.componentAssetForm = model.componentAssetForm; this.requestId = model.requestId; } /** * <p>The metadata of the asset in the component. The value is a JSON array and contains the following fields:</p> * <ul> * <li><strong>name</strong>: the parameter name.</li> * <li><strong>defaultValue</strong>: the default parameter value.</li> * <li><strong>description</strong>: the parameter description.</li> * <li><strong>required</strong>: indicates whether the parameter is required. Valid values: <strong>true</strong> and <strong>false</strong>.</li> * </ul> * * <strong>example:</strong> * <p>[ * { * &quot;defaultValue&quot;: &quot;&quot;, * &quot;description&quot;: &quot;assetname&quot;, * &quot;name&quot;: &quot;assetname&quot;, * &quot;required&quot;: true * } * ]</p> */ public Builder componentAssetForm(String componentAssetForm) { this.componentAssetForm = componentAssetForm; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>9D1651AC-31CC-5CC4-A14E-626B3FCC1022</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeComponentAssetFormResponseBody build() { return new DescribeComponentAssetFormResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentAssetsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentAssetsRequest} extends {@link RequestModel} * * <p>DescribeComponentAssetsRequest</p> */ public class DescribeComponentAssetsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ComponentName") @com.aliyun.core.annotation.Validation(required = true) private String componentName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; private DescribeComponentAssetsRequest(Builder builder) { super(builder); this.componentName = builder.componentName; this.lang = builder.lang; } public static Builder builder() { return new Builder(); } public static DescribeComponentAssetsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return componentName */ public String getComponentName() { return this.componentName; } /** * @return lang */ public String getLang() { return this.lang; } public static final class Builder extends Request.Builder<DescribeComponentAssetsRequest, Builder> { private String componentName; private String lang; private Builder() { super(); } private Builder(DescribeComponentAssetsRequest request) { super(request); this.componentName = request.componentName; this.lang = request.lang; } /** * <p>The name of the component.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>python3</p> */ public Builder componentName(String componentName) { this.putQueryParameter("ComponentName", componentName); this.componentName = componentName; return this; } /** * <p>The language of the content within the request and response. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } @Override public DescribeComponentAssetsRequest build() { return new DescribeComponentAssetsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentAssetsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentAssetsResponse} extends {@link TeaModel} * * <p>DescribeComponentAssetsResponse</p> */ public class DescribeComponentAssetsResponse 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 DescribeComponentAssetsResponseBody body; private DescribeComponentAssetsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeComponentAssetsResponse 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 DescribeComponentAssetsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeComponentAssetsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeComponentAssetsResponseBody body); @Override DescribeComponentAssetsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeComponentAssetsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeComponentAssetsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeComponentAssetsResponse 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(DescribeComponentAssetsResponseBody body) { this.body = body; return this; } @Override public DescribeComponentAssetsResponse build() { return new DescribeComponentAssetsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentAssetsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentAssetsResponseBody} extends {@link TeaModel} * * <p>DescribeComponentAssetsResponseBody</p> */ public class DescribeComponentAssetsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ComponentAssets") private java.util.List<ComponentAssets> componentAssets; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeComponentAssetsResponseBody(Builder builder) { this.componentAssets = builder.componentAssets; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeComponentAssetsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return componentAssets */ public java.util.List<ComponentAssets> getComponentAssets() { return this.componentAssets; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<ComponentAssets> componentAssets; private String requestId; private Builder() { } private Builder(DescribeComponentAssetsResponseBody model) { this.componentAssets = model.componentAssets; this.requestId = model.requestId; } /** * <p>The information about the assets.</p> */ public Builder componentAssets(java.util.List<ComponentAssets> componentAssets) { this.componentAssets = componentAssets; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>BFEFB76D-DD0E-5529-BD57-0DAC10B9B30F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeComponentAssetsResponseBody build() { return new DescribeComponentAssetsResponseBody(this); } } /** * * {@link DescribeComponentAssetsResponseBody} extends {@link TeaModel} * * <p>DescribeComponentAssetsResponseBody</p> */ public static class ComponentAssets extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssetUuid") private String assetUuid; @com.aliyun.core.annotation.NameInMap("Componentname") private String componentname; @com.aliyun.core.annotation.NameInMap("GmtCreate") private String gmtCreate; @com.aliyun.core.annotation.NameInMap("GmtModified") private String gmtModified; @com.aliyun.core.annotation.NameInMap("Id") private Long id; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Params") private String params; private ComponentAssets(Builder builder) { this.assetUuid = builder.assetUuid; this.componentname = builder.componentname; this.gmtCreate = builder.gmtCreate; this.gmtModified = builder.gmtModified; this.id = builder.id; this.name = builder.name; this.params = builder.params; } public static Builder builder() { return new Builder(); } public static ComponentAssets create() { return builder().build(); } /** * @return assetUuid */ public String getAssetUuid() { return this.assetUuid; } /** * @return componentname */ public String getComponentname() { return this.componentname; } /** * @return gmtCreate */ public String getGmtCreate() { return this.gmtCreate; } /** * @return gmtModified */ public String getGmtModified() { return this.gmtModified; } /** * @return id */ public Long getId() { return this.id; } /** * @return name */ public String getName() { return this.name; } /** * @return params */ public String getParams() { return this.params; } public static final class Builder { private String assetUuid; private String componentname; private String gmtCreate; private String gmtModified; private Long id; private String name; private String params; private Builder() { } private Builder(ComponentAssets model) { this.assetUuid = model.assetUuid; this.componentname = model.componentname; this.gmtCreate = model.gmtCreate; this.gmtModified = model.gmtModified; this.id = model.id; this.name = model.name; this.params = model.params; } /** * <p>The UUID of the asset.</p> * * <strong>example:</strong> * <p>ff6fe161-93e2-464c-a326-fxxxxxx</p> */ public Builder assetUuid(String assetUuid) { this.assetUuid = assetUuid; return this; } /** * <p>The name of the component to which the asset belongs.</p> * * <strong>example:</strong> * <p>pyhton3</p> */ public Builder componentname(String componentname) { this.componentname = componentname; return this; } /** * <p>The time when the asset was created. The time is in the yyyy-MM-ddTHH:mm:ssZ format and is displayed in UTC.</p> * * <strong>example:</strong> * <p>2023-03-23T14:38Z</p> */ public Builder gmtCreate(String gmtCreate) { this.gmtCreate = gmtCreate; return this; } /** * <p>The time when the asset was modified. The time is in the yyyy-MM-ddTHH:mm:ssZ format and is displayed in UTC.</p> * * <strong>example:</strong> * <p>2023-03-23T14:38Z</p> */ public Builder gmtModified(String gmtModified) { this.gmtModified = gmtModified; return this; } /** * <p>The UUID of the asset.</p> * * <strong>example:</strong> * <p>7xx</p> */ public Builder id(Long id) { this.id = id; return this; } /** * <p>The name of the asset.</p> * * <strong>example:</strong> * <p>test asset</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The configurations of the asset in the JSON string format. DescribeComponentAssetForm</p> * <blockquote> * <p> For more information, see <a href="~~DescribeComponentAssetForm~~">DescribeComponentAssetForm</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>[ * { * &quot;name&quot;: &quot;authMethod&quot;, * &quot;value&quot;: &quot;ak&quot; * }, * { * &quot;name&quot;: &quot;accessKeyId&quot;, * &quot;value&quot;: &quot;xxxxxxx&quot; * }, * { * &quot;name&quot;: &quot;accessKeySecret&quot;, * &quot;value&quot;: &quot;xxxxx&quot; * }, * { * &quot;name&quot;: &quot;roleArn&quot;, * &quot;value&quot;: &quot;&quot; * } * ]</p> */ public Builder params(String params) { this.params = params; return this; } public ComponentAssets build() { return new ComponentAssets(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentListRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentListRequest} extends {@link RequestModel} * * <p>DescribeComponentListRequest</p> */ public class DescribeComponentListRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PlaybookUuid") @com.aliyun.core.annotation.Validation(required = true) private String playbookUuid; private DescribeComponentListRequest(Builder builder) { super(builder); this.lang = builder.lang; this.playbookUuid = builder.playbookUuid; } public static Builder builder() { return new Builder(); } public static DescribeComponentListRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return lang */ public String getLang() { return this.lang; } /** * @return playbookUuid */ public String getPlaybookUuid() { return this.playbookUuid; } public static final class Builder extends Request.Builder<DescribeComponentListRequest, Builder> { private String lang; private String playbookUuid; private Builder() { super(); } private Builder(DescribeComponentListRequest request) { super(request); this.lang = request.lang; this.playbookUuid = request.playbookUuid; } /** * <p>The language of the content within the request and the response. Valid values:</p> * <ul> * <li><strong>zh</strong> (default): Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The UUID of the playbook.</p> * <blockquote> * <p> You can call the <a href="~~DescribePlaybooks~~">DescribePlaybooks</a>operation to query the UUIDs of playbooks.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>b724d2b0-3c3b-4223-9bfd-xxxxx</p> */ public Builder playbookUuid(String playbookUuid) { this.putQueryParameter("PlaybookUuid", playbookUuid); this.playbookUuid = playbookUuid; return this; } @Override public DescribeComponentListRequest build() { return new DescribeComponentListRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentListResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentListResponse} extends {@link TeaModel} * * <p>DescribeComponentListResponse</p> */ public class DescribeComponentListResponse 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 DescribeComponentListResponseBody body; private DescribeComponentListResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeComponentListResponse 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 DescribeComponentListResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeComponentListResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeComponentListResponseBody body); @Override DescribeComponentListResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeComponentListResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeComponentListResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeComponentListResponse 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(DescribeComponentListResponseBody body) { this.body = body; return this; } @Override public DescribeComponentListResponse build() { return new DescribeComponentListResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentListResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentListResponseBody} extends {@link TeaModel} * * <p>DescribeComponentListResponseBody</p> */ public class DescribeComponentListResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Components") private String components; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeComponentListResponseBody(Builder builder) { this.components = builder.components; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeComponentListResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return components */ public String getComponents() { return this.components; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String components; private String requestId; private Builder() { } private Builder(DescribeComponentListResponseBody model) { this.components = model.components; this.requestId = model.requestId; } /** * <p>The information about the components. The value is a JSON array.</p> * * <strong>example:</strong> * <p>[ * { * &quot;actions&quot;: [ * { * &quot;description&quot;: &quot;mysql component&quot;, * &quot;name&quot;: &quot;storeIdb&quot;, * &quot;parameters&quot;: [ * { * &quot;description&quot;: &quot;update the mysql db&quot;, * &quot;name&quot;: &quot;updateSql&quot;, * &quot;required&quot;: false * } * ] * } * ], * &quot;basic&quot;: { * &quot;description&quot;: &quot;mysq sql component for 5.6&quot;, * &quot;logo&quot;: &quot;<a href="https://img.alicdn.com/tfs/TB1H89IpH3nBKNjSZFMXXaUSFXa-200-200.svg">https://img.alicdn.com/tfs/TB1H89IpH3nBKNjSZFMXXaUSFXa-200-200.svg</a>&quot;, * &quot;name&quot;: &quot;Mysql&quot; * } * } * ]</p> */ public Builder components(String components) { this.components = components; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>B0A255B3-495C-56FB-8B6B-DB073F80388A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeComponentListResponseBody build() { return new DescribeComponentListResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentPlaybookRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentPlaybookRequest} extends {@link RequestModel} * * <p>DescribeComponentPlaybookRequest</p> */ public class DescribeComponentPlaybookRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PlaybookUuid") @com.aliyun.core.annotation.Validation(required = true) private String playbookUuid; private DescribeComponentPlaybookRequest(Builder builder) { super(builder); this.lang = builder.lang; this.playbookUuid = builder.playbookUuid; } public static Builder builder() { return new Builder(); } public static DescribeComponentPlaybookRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return lang */ public String getLang() { return this.lang; } /** * @return playbookUuid */ public String getPlaybookUuid() { return this.playbookUuid; } public static final class Builder extends Request.Builder<DescribeComponentPlaybookRequest, Builder> { private String lang; private String playbookUuid; private Builder() { super(); } private Builder(DescribeComponentPlaybookRequest request) { super(request); this.lang = request.lang; this.playbookUuid = request.playbookUuid; } /** * <p>The language of the content within the request and the response. Valid values:</p> * <ul> * <li><strong>zh</strong> (default): Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The UUID of the playbook.</p> * <blockquote> * <p> You can call the <a href="~~DescribePlaybooks~~">DescribePlaybooks</a>operation to query the UUIDs of playbooks.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ac343acc-1a61-4084-9a1cxxxxx</p> */ public Builder playbookUuid(String playbookUuid) { this.putQueryParameter("PlaybookUuid", playbookUuid); this.playbookUuid = playbookUuid; return this; } @Override public DescribeComponentPlaybookRequest build() { return new DescribeComponentPlaybookRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentPlaybookResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentPlaybookResponse} extends {@link TeaModel} * * <p>DescribeComponentPlaybookResponse</p> */ public class DescribeComponentPlaybookResponse 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 DescribeComponentPlaybookResponseBody body; private DescribeComponentPlaybookResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeComponentPlaybookResponse 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 DescribeComponentPlaybookResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeComponentPlaybookResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeComponentPlaybookResponseBody body); @Override DescribeComponentPlaybookResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeComponentPlaybookResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeComponentPlaybookResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeComponentPlaybookResponse 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(DescribeComponentPlaybookResponseBody body) { this.body = body; return this; } @Override public DescribeComponentPlaybookResponse build() { return new DescribeComponentPlaybookResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentPlaybookResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentPlaybookResponseBody} extends {@link TeaModel} * * <p>DescribeComponentPlaybookResponseBody</p> */ public class DescribeComponentPlaybookResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Playbooks") private java.util.List<Playbooks> playbooks; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeComponentPlaybookResponseBody(Builder builder) { this.playbooks = builder.playbooks; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeComponentPlaybookResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return playbooks */ public java.util.List<Playbooks> getPlaybooks() { return this.playbooks; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<Playbooks> playbooks; private String requestId; private Builder() { } private Builder(DescribeComponentPlaybookResponseBody model) { this.playbooks = model.playbooks; this.requestId = model.requestId; } /** * <p>The information about the predefined components.</p> */ public Builder playbooks(java.util.List<Playbooks> playbooks) { this.playbooks = playbooks; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>C5F5D6C9-DF1A-5381-92B1-39676F777D20</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeComponentPlaybookResponseBody build() { return new DescribeComponentPlaybookResponseBody(this); } } /** * * {@link DescribeComponentPlaybookResponseBody} extends {@link TeaModel} * * <p>DescribeComponentPlaybookResponseBody</p> */ public static class Playbooks extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DisplayName") private String displayName; @com.aliyun.core.annotation.NameInMap("InputParams") private String inputParams; private Playbooks(Builder builder) { this.description = builder.description; this.displayName = builder.displayName; this.inputParams = builder.inputParams; } public static Builder builder() { return new Builder(); } public static Playbooks create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return displayName */ public String getDisplayName() { return this.displayName; } /** * @return inputParams */ public String getInputParams() { return this.inputParams; } public static final class Builder { private String description; private String displayName; private String inputParams; private Builder() { } private Builder(Playbooks model) { this.description = model.description; this.displayName = model.displayName; this.inputParams = model.inputParams; } /** * <p>The description of the predefined component.</p> * * <strong>example:</strong> * <p>aegis_kill_process</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The name of the predefined component.</p> * * <strong>example:</strong> * <p>AegisKillQuara</p> */ public Builder displayName(String displayName) { this.displayName = displayName; return this; } /** * <p>The input parameter configuration of the playbook. The value is a JSON array.</p> * <blockquote> * <p> For more information, see <a href="~~DescribePlaybookInputOutput~~">DescribePlaybookInputOutput</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>[ * { * &quot;typeName&quot;: &quot;String&quot;, * &quot;dataClass&quot;: &quot;normal&quot;, * &quot;dataType&quot;: &quot;String&quot;, * &quot;description&quot;: &quot;period&quot;, * &quot;example&quot;: &quot;&quot;, * &quot;name&quot;: &quot;period&quot;, * &quot;required&quot;: false * } * ]</p> */ public Builder inputParams(String inputParams) { this.inputParams = inputParams; return this; } public Playbooks build() { return new Playbooks(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentsJsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentsJsRequest} extends {@link RequestModel} * * <p>DescribeComponentsJsRequest</p> */ public class DescribeComponentsJsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; private DescribeComponentsJsRequest(Builder builder) { super(builder); this.lang = builder.lang; } public static Builder builder() { return new Builder(); } public static DescribeComponentsJsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return lang */ public String getLang() { return this.lang; } public static final class Builder extends Request.Builder<DescribeComponentsJsRequest, Builder> { private String lang; private Builder() { super(); } private Builder(DescribeComponentsJsRequest request) { super(request); this.lang = request.lang; } /** * <p>The language of the content within the request and response. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese (default)</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } @Override public DescribeComponentsJsRequest build() { return new DescribeComponentsJsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentsJsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentsJsResponse} extends {@link TeaModel} * * <p>DescribeComponentsJsResponse</p> */ public class DescribeComponentsJsResponse 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 DescribeComponentsJsResponseBody body; private DescribeComponentsJsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeComponentsJsResponse 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 DescribeComponentsJsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeComponentsJsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeComponentsJsResponseBody body); @Override DescribeComponentsJsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeComponentsJsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeComponentsJsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeComponentsJsResponse 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(DescribeComponentsJsResponseBody body) { this.body = body; return this; } @Override public DescribeComponentsJsResponse build() { return new DescribeComponentsJsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeComponentsJsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeComponentsJsResponseBody} extends {@link TeaModel} * * <p>DescribeComponentsJsResponseBody</p> */ public class DescribeComponentsJsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ComponentsJs") private String componentsJs; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeComponentsJsResponseBody(Builder builder) { this.componentsJs = builder.componentsJs; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeComponentsJsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return componentsJs */ public String getComponentsJs() { return this.componentsJs; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String componentsJs; private String requestId; private Builder() { } private Builder(DescribeComponentsJsResponseBody model) { this.componentsJs = model.componentsJs; this.requestId = model.requestId; } /** * <p>The configuration of the JavaScript file for the component.</p> * * <strong>example:</strong> * <p>[ * { * &quot;js&quot;: &quot;<a href="https://xxxxx.oss-cn-zhangjiakou.aliyuncs.com/componentUpload/xxxxx">https://xxxxx.oss-cn-zhangjiakou.aliyuncs.com/componentUpload/xxxxx</a>&quot;, * &quot;name&quot;: &quot;python3&quot;, * &quot;ownType&quot;: &quot;sys&quot; * } * ]</p> */ public Builder componentsJs(String componentsJs) { this.componentsJs = componentsJs; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>58A518BC-E4A8-5BD7-AFEA-366046ED9073</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeComponentsJsResponseBody build() { return new DescribeComponentsJsResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeDistinctReleasesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeDistinctReleasesRequest} extends {@link RequestModel} * * <p>DescribeDistinctReleasesRequest</p> */ public class DescribeDistinctReleasesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PlaybookUuid") @com.aliyun.core.annotation.Validation(required = true) private String playbookUuid; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TaskflowMd5") private String taskflowMd5; private DescribeDistinctReleasesRequest(Builder builder) { super(builder); this.lang = builder.lang; this.playbookUuid = builder.playbookUuid; this.taskflowMd5 = builder.taskflowMd5; } public static Builder builder() { return new Builder(); } public static DescribeDistinctReleasesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return lang */ public String getLang() { return this.lang; } /** * @return playbookUuid */ public String getPlaybookUuid() { return this.playbookUuid; } /** * @return taskflowMd5 */ public String getTaskflowMd5() { return this.taskflowMd5; } public static final class Builder extends Request.Builder<DescribeDistinctReleasesRequest, Builder> { private String lang; private String playbookUuid; private String taskflowMd5; private Builder() { super(); } private Builder(DescribeDistinctReleasesRequest request) { super(request); this.lang = request.lang; this.playbookUuid = request.playbookUuid; this.taskflowMd5 = request.taskflowMd5; } /** * <p>The language of the content within the request and response. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese (default)</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The playbook UUID.</p> * <blockquote> * <p> You can call the <a href="~~DescribePlaybooks~~">DescribePlaybooks</a>operation to query the playbook UUID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bc0b8424-535c-4ed5-bd94-xxxxxx</p> */ public Builder playbookUuid(String playbookUuid) { this.putQueryParameter("PlaybookUuid", playbookUuid); this.playbookUuid = playbookUuid; return this; } /** * <p>The MD5 value of the playbook XML configuration.</p> * * <strong>example:</strong> * <p>be0a4ef084dd174abe47xxxxx</p> */ public Builder taskflowMd5(String taskflowMd5) { this.putQueryParameter("TaskflowMd5", taskflowMd5); this.taskflowMd5 = taskflowMd5; return this; } @Override public DescribeDistinctReleasesRequest build() { return new DescribeDistinctReleasesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeDistinctReleasesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeDistinctReleasesResponse} extends {@link TeaModel} * * <p>DescribeDistinctReleasesResponse</p> */ public class DescribeDistinctReleasesResponse 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 DescribeDistinctReleasesResponseBody body; private DescribeDistinctReleasesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeDistinctReleasesResponse 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 DescribeDistinctReleasesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeDistinctReleasesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeDistinctReleasesResponseBody body); @Override DescribeDistinctReleasesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeDistinctReleasesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeDistinctReleasesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeDistinctReleasesResponse 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(DescribeDistinctReleasesResponseBody body) { this.body = body; return this; } @Override public DescribeDistinctReleasesResponse build() { return new DescribeDistinctReleasesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeDistinctReleasesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeDistinctReleasesResponseBody} extends {@link TeaModel} * * <p>DescribeDistinctReleasesResponseBody</p> */ public class DescribeDistinctReleasesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Records") private java.util.List<Records> records; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeDistinctReleasesResponseBody(Builder builder) { this.records = builder.records; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeDistinctReleasesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return records */ public java.util.List<Records> getRecords() { return this.records; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<Records> records; private String requestId; private Builder() { } private Builder(DescribeDistinctReleasesResponseBody model) { this.records = model.records; this.requestId = model.requestId; } /** * <p>The information about versions.</p> */ public Builder records(java.util.List<Records> records) { this.records = records; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>145CACF6-D276-5197-8549-CB1AD76E2AC8</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeDistinctReleasesResponseBody build() { return new DescribeDistinctReleasesResponseBody(this); } } /** * * {@link DescribeDistinctReleasesResponseBody} extends {@link TeaModel} * * <p>DescribeDistinctReleasesResponseBody</p> */ public static class Records extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("TaskflowMd5") private String taskflowMd5; @com.aliyun.core.annotation.NameInMap("TaskflowType") private String taskflowType; private Records(Builder builder) { this.description = builder.description; this.taskflowMd5 = builder.taskflowMd5; this.taskflowType = builder.taskflowType; } public static Builder builder() { return new Builder(); } public static Records create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return taskflowMd5 */ public String getTaskflowMd5() { return this.taskflowMd5; } /** * @return taskflowType */ public String getTaskflowType() { return this.taskflowType; } public static final class Builder { private String description; private String taskflowMd5; private String taskflowType; private Builder() { } private Builder(Records model) { this.description = model.description; this.taskflowMd5 = model.taskflowMd5; this.taskflowType = model.taskflowType; } /** * <p>The version description.</p> * * <strong>example:</strong> * <p>demo version</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The MD5 value of the version XML configuration.</p> * * <strong>example:</strong> * <p>17cf53049bc8efa941207xxxxx</p> */ public Builder taskflowMd5(String taskflowMd5) { this.taskflowMd5 = taskflowMd5; return this; } /** * <p>The format of the playbook. Valid values:</p> * <ul> * <li><strong>xml</strong>: XML format.</li> * <li><strong>x6</strong>: JSON format.</li> * </ul> * * <strong>example:</strong> * <p>x6</p> */ public Builder taskflowType(String taskflowType) { this.taskflowType = taskflowType; return this; } public Records build() { return new Records(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeEnumItemsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeEnumItemsRequest} extends {@link RequestModel} * * <p>DescribeEnumItemsRequest</p> */ public class DescribeEnumItemsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnumType") @com.aliyun.core.annotation.Validation(required = true) private String enumType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; private DescribeEnumItemsRequest(Builder builder) { super(builder); this.enumType = builder.enumType; this.lang = builder.lang; } public static Builder builder() { return new Builder(); } public static DescribeEnumItemsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return enumType */ public String getEnumType() { return this.enumType; } /** * @return lang */ public String getLang() { return this.lang; } public static final class Builder extends Request.Builder<DescribeEnumItemsRequest, Builder> { private String enumType; private String lang; private Builder() { super(); } private Builder(DescribeEnumItemsRequest request) { super(request); this.enumType = request.enumType; this.lang = request.lang; } /** * <p>The type of the enumeration item. Valid values:</p> * <ul> * <li><strong>process</strong>: scenarios</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>process</p> */ public Builder enumType(String enumType) { this.putQueryParameter("EnumType", enumType); this.enumType = enumType; return this; } /** * <p>The language of the content within the request and response. Valid values:</p> * <ul> * <li><strong>zh_cn</strong>: Simplified Chinese (default)</li> * <li><strong>en_us</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } @Override public DescribeEnumItemsRequest build() { return new DescribeEnumItemsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeEnumItemsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeEnumItemsResponse} extends {@link TeaModel} * * <p>DescribeEnumItemsResponse</p> */ public class DescribeEnumItemsResponse 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 DescribeEnumItemsResponseBody body; private DescribeEnumItemsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeEnumItemsResponse 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 DescribeEnumItemsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeEnumItemsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeEnumItemsResponseBody body); @Override DescribeEnumItemsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeEnumItemsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeEnumItemsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeEnumItemsResponse 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(DescribeEnumItemsResponseBody body) { this.body = body; return this; } @Override public DescribeEnumItemsResponse build() { return new DescribeEnumItemsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeEnumItemsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeEnumItemsResponseBody} extends {@link TeaModel} * * <p>DescribeEnumItemsResponseBody</p> */ public class DescribeEnumItemsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeEnumItemsResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeEnumItemsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return data */ public java.util.List<Data> getData() { return this.data; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<Data> data; private String requestId; private Builder() { } private Builder(DescribeEnumItemsResponseBody model) { this.data = model.data; this.requestId = model.requestId; } /** * <p>The information about the enumeration item.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>E7698CFB-4E1C-5840-8EC9-691B86729E94</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeEnumItemsResponseBody build() { return new DescribeEnumItemsResponseBody(this); } } /** * * {@link DescribeEnumItemsResponseBody} extends {@link TeaModel} * * <p>DescribeEnumItemsResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Data(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Data 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(Data model) { this.key = model.key; this.value = model.value; } /** * <p>The key of the enumeration item.</p> * * <strong>example:</strong> * <p>system_xxxxx_process_book</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of the enumeration item.</p> * * <strong>example:</strong> * <p>system_xxxxx_process_book</p> */ public Builder value(String value) { this.value = value; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeExecutePlaybooksRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeExecutePlaybooksRequest} extends {@link RequestModel} * * <p>DescribeExecutePlaybooksRequest</p> */ public class DescribeExecutePlaybooksRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InputMode") private String inputMode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ParamType") private String paramType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PlaybookName") private String playbookName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Uuid") private String uuid; private DescribeExecutePlaybooksRequest(Builder builder) { super(builder); this.inputMode = builder.inputMode; this.lang = builder.lang; this.paramType = builder.paramType; this.playbookName = builder.playbookName; this.uuid = builder.uuid; } public static Builder builder() { return new Builder(); } public static DescribeExecutePlaybooksRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return inputMode */ public String getInputMode() { return this.inputMode; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return paramType */ public String getParamType() { return this.paramType; } /** * @return playbookName */ public String getPlaybookName() { return this.playbookName; } /** * @return uuid */ public String getUuid() { return this.uuid; } public static final class Builder extends Request.Builder<DescribeExecutePlaybooksRequest, Builder> { private String inputMode; private String lang; private String paramType; private String playbookName; private String uuid; private Builder() { super(); } private Builder(DescribeExecutePlaybooksRequest request) { super(request); this.inputMode = request.inputMode; this.lang = request.lang; this.paramType = request.paramType; this.playbookName = request.playbookName; this.uuid = request.uuid; } /** * <p>The entity type of the script input parameter. When you want to query multiple entity types, separate them with commas.</p> * <ul> * <li><strong>ip</strong>: IP entity.</li> * <li><strong>file</strong>: file entity.</li> * <li><strong>process</strong>: process entity.</li> * <li><strong>incident</strong>: incident entity.</li> * </ul> * * <strong>example:</strong> * <p>ip,file,process,host</p> */ public Builder inputMode(String inputMode) { this.putQueryParameter("InputMode", inputMode); this.inputMode = inputMode; return this; } /** * <p>The language of the content within the request and the response. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese (default)</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The input parameter type of the playbook.</p> * <ul> * <li><strong>template-ip</strong></li> * <li><strong>template-file</strong></li> * <li><strong>template-process</strong></li> * <li><strong>custom</strong></li> * </ul> * * <strong>example:</strong> * <p>custom</p> */ public Builder paramType(String paramType) { this.putQueryParameter("ParamType", paramType); this.paramType = paramType; return this; } /** * <p>The playbook name. Fuzzy search is supported.</p> * * <strong>example:</strong> * <p>demo_test</p> */ public Builder playbookName(String playbookName) { this.putQueryParameter("PlaybookName", playbookName); this.playbookName = playbookName; return this; } /** * <p>The playbook UUID.</p> * <blockquote> * <p> You can call the <a href="~~DescribePlaybooks~~">DescribePlaybooks</a> operation to query the playbook UUID.</p> * </blockquote> * * <strong>example:</strong> * <p>f916b93e-e814-459f-9662-xxxxxx</p> */ public Builder uuid(String uuid) { this.putQueryParameter("Uuid", uuid); this.uuid = uuid; return this; } @Override public DescribeExecutePlaybooksRequest build() { return new DescribeExecutePlaybooksRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeExecutePlaybooksResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeExecutePlaybooksResponse} extends {@link TeaModel} * * <p>DescribeExecutePlaybooksResponse</p> */ public class DescribeExecutePlaybooksResponse 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 DescribeExecutePlaybooksResponseBody body; private DescribeExecutePlaybooksResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeExecutePlaybooksResponse 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 DescribeExecutePlaybooksResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeExecutePlaybooksResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeExecutePlaybooksResponseBody body); @Override DescribeExecutePlaybooksResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeExecutePlaybooksResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeExecutePlaybooksResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeExecutePlaybooksResponse 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(DescribeExecutePlaybooksResponseBody body) { this.body = body; return this; } @Override public DescribeExecutePlaybooksResponse build() { return new DescribeExecutePlaybooksResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeExecutePlaybooksResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeExecutePlaybooksResponseBody} extends {@link TeaModel} * * <p>DescribeExecutePlaybooksResponseBody</p> */ public class DescribeExecutePlaybooksResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("PlaybookMetrics") private java.util.List<PlaybookMetrics> playbookMetrics; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeExecutePlaybooksResponseBody(Builder builder) { this.playbookMetrics = builder.playbookMetrics; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeExecutePlaybooksResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return playbookMetrics */ public java.util.List<PlaybookMetrics> getPlaybookMetrics() { return this.playbookMetrics; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<PlaybookMetrics> playbookMetrics; private String requestId; private Builder() { } private Builder(DescribeExecutePlaybooksResponseBody model) { this.playbookMetrics = model.playbookMetrics; this.requestId = model.requestId; } /** * <p>The playbook.</p> */ public Builder playbookMetrics(java.util.List<PlaybookMetrics> playbookMetrics) { this.playbookMetrics = playbookMetrics; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>88A39217-2802-5B1E-BA2B-CF1BBC43C1F5</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeExecutePlaybooksResponseBody build() { return new DescribeExecutePlaybooksResponseBody(this); } } /** * * {@link DescribeExecutePlaybooksResponseBody} extends {@link TeaModel} * * <p>DescribeExecutePlaybooksResponseBody</p> */ public static class PlaybookMetrics extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DisplayName") private String displayName; @com.aliyun.core.annotation.NameInMap("ParamConfig") private String paramConfig; @com.aliyun.core.annotation.NameInMap("ParamType") private String paramType; @com.aliyun.core.annotation.NameInMap("Uuid") private String uuid; private PlaybookMetrics(Builder builder) { this.description = builder.description; this.displayName = builder.displayName; this.paramConfig = builder.paramConfig; this.paramType = builder.paramType; this.uuid = builder.uuid; } public static Builder builder() { return new Builder(); } public static PlaybookMetrics create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return displayName */ public String getDisplayName() { return this.displayName; } /** * @return paramConfig */ public String getParamConfig() { return this.paramConfig; } /** * @return paramType */ public String getParamType() { return this.paramType; } /** * @return uuid */ public String getUuid() { return this.uuid; } public static final class Builder { private String description; private String displayName; private String paramConfig; private String paramType; private String uuid; private Builder() { } private Builder(PlaybookMetrics model) { this.description = model.description; this.displayName = model.displayName; this.paramConfig = model.paramConfig; this.paramType = model.paramType; this.uuid = model.uuid; } /** * <p>The playbook description.</p> * * <strong>example:</strong> * <p>a demo playbook</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The playbook name.</p> * * <strong>example:</strong> * <p>demo_playbook</p> */ public Builder displayName(String displayName) { this.displayName = displayName; return this; } /** * <p>The configuration of the input parameter. The value is a JSON array.</p> * <blockquote> * <p> For more information, see <a href="~~DescribePlaybookInputOutput~~">DescribePlaybookInputOutput</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>[ * { * &quot;typeName&quot;: &quot;String&quot;, * &quot;dataClass&quot;: &quot;normal&quot;, * &quot;dataType&quot;: &quot;String&quot;, * &quot;description&quot;: &quot;period&quot;, * &quot;example&quot;: &quot;&quot;, * &quot;name&quot;: &quot;period&quot;, * &quot;required&quot;: false * } * ]</p> */ public Builder paramConfig(String paramConfig) { this.paramConfig = paramConfig; return this; } /** * <p>The input parameter type of the playbook.</p> * <ul> * <li><strong>template-ip</strong></li> * <li><strong>template-file</strong></li> * <li><strong>template-process</strong></li> * <li><strong>custom</strong></li> * </ul> * * <strong>example:</strong> * <p>custom</p> */ public Builder paramType(String paramType) { this.paramType = paramType; return this; } /** * <p>The playbook UUID.</p> * * <strong>example:</strong> * <p>c5c88b5e-97ca-435d-8c20-2xxxxx</p> */ public Builder uuid(String uuid) { this.uuid = uuid; return this; } public PlaybookMetrics build() { return new PlaybookMetrics(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728
java-sources/com/aliyun/alibabacloud-sophonsoar20220728/3.0.0/com/aliyun/sdk/service/sophonsoar20220728/models/DescribeFieldRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sophonsoar20220728.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 DescribeFieldRequest} extends {@link RequestModel} * * <p>DescribeFieldRequest</p> */ public class DescribeFieldRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QueryKey") @com.aliyun.core.annotation.Validation(required = true) private String queryKey; private DescribeFieldRequest(Builder builder) { super(builder); this.lang = builder.lang; this.queryKey = builder.queryKey; } public static Builder builder() { return new Builder(); } public static DescribeFieldRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return lang */ public String getLang() { return this.lang; } /** * @return queryKey */ public String getQueryKey() { return this.queryKey; } public static final class Builder extends Request.Builder<DescribeFieldRequest, Builder> { private String lang; private String queryKey; private Builder() { super(); } private Builder(DescribeFieldRequest request) { super(request); this.lang = request.lang; this.queryKey = request.queryKey; } /** * <p>The language of the content within the request and response. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese (default)</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The key of the global configuration. Valid values:</p> * <ul> * <li><strong>soar_filed_tags</strong>: queries the input template of the playbook.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>soar_filed_tags</p> */ public Builder queryKey(String queryKey) { this.putQueryParameter("QueryKey", queryKey); this.queryKey = queryKey; return this; } @Override public DescribeFieldRequest build() { return new DescribeFieldRequest(this); } } }