index
int64
repo_id
string
file_path
string
content
string
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/CreateIpamPoolAllocationResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateIpamPoolAllocationResponse} extends {@link TeaModel} * * <p>CreateIpamPoolAllocationResponse</p> */ public class CreateIpamPoolAllocationResponse 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 CreateIpamPoolAllocationResponseBody body; private CreateIpamPoolAllocationResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateIpamPoolAllocationResponse 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 CreateIpamPoolAllocationResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateIpamPoolAllocationResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateIpamPoolAllocationResponseBody body); @Override CreateIpamPoolAllocationResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateIpamPoolAllocationResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateIpamPoolAllocationResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateIpamPoolAllocationResponse 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(CreateIpamPoolAllocationResponseBody body) { this.body = body; return this; } @Override public CreateIpamPoolAllocationResponse build() { return new CreateIpamPoolAllocationResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/CreateIpamPoolAllocationResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateIpamPoolAllocationResponseBody} extends {@link TeaModel} * * <p>CreateIpamPoolAllocationResponseBody</p> */ public class CreateIpamPoolAllocationResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Cidr") private String cidr; @com.aliyun.core.annotation.NameInMap("IpamPoolAllocationId") private String ipamPoolAllocationId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SourceCidr") private String sourceCidr; private CreateIpamPoolAllocationResponseBody(Builder builder) { this.cidr = builder.cidr; this.ipamPoolAllocationId = builder.ipamPoolAllocationId; this.requestId = builder.requestId; this.sourceCidr = builder.sourceCidr; } public static Builder builder() { return new Builder(); } public static CreateIpamPoolAllocationResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return cidr */ public String getCidr() { return this.cidr; } /** * @return ipamPoolAllocationId */ public String getIpamPoolAllocationId() { return this.ipamPoolAllocationId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return sourceCidr */ public String getSourceCidr() { return this.sourceCidr; } public static final class Builder { private String cidr; private String ipamPoolAllocationId; private String requestId; private String sourceCidr; private Builder() { } private Builder(CreateIpamPoolAllocationResponseBody model) { this.cidr = model.cidr; this.ipamPoolAllocationId = model.ipamPoolAllocationId; this.requestId = model.requestId; this.sourceCidr = model.sourceCidr; } /** * <p>The custom reserved CIDR block.</p> * * <strong>example:</strong> * <p>192.168.1.0/24</p> */ public Builder cidr(String cidr) { this.cidr = cidr; return this; } /** * <p>The ID of the custom reserved CIDR block.</p> * * <strong>example:</strong> * <p>ipam-pool-alloc-112za33e4****</p> */ public Builder ipamPoolAllocationId(String ipamPoolAllocationId) { this.ipamPoolAllocationId = ipamPoolAllocationId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>CE9CDAE5-341E-5D0B-AC8A-2BAC707D3EB2</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The source CIDR block.</p> * * <strong>example:</strong> * <p>192.168.0.0/16</p> */ public Builder sourceCidr(String sourceCidr) { this.sourceCidr = sourceCidr; return this; } public CreateIpamPoolAllocationResponseBody build() { return new CreateIpamPoolAllocationResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/CreateIpamPoolRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateIpamPoolRequest} extends {@link RequestModel} * * <p>CreateIpamPoolRequest</p> */ public class CreateIpamPoolRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AllocationDefaultCidrMask") private Integer allocationDefaultCidrMask; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AllocationMaxCidrMask") private Integer allocationMaxCidrMask; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AllocationMinCidrMask") private Integer allocationMinCidrMask; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AutoImport") private Boolean autoImport; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpVersion") private String ipVersion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolDescription") private String ipamPoolDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolName") private String ipamPoolName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamScopeId") @com.aliyun.core.annotation.Validation(required = true) private String ipamScopeId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ipv6Isp") private String ipv6Isp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PoolRegionId") private String poolRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceIpamPoolId") private String sourceIpamPoolId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private CreateIpamPoolRequest(Builder builder) { super(builder); this.allocationDefaultCidrMask = builder.allocationDefaultCidrMask; this.allocationMaxCidrMask = builder.allocationMaxCidrMask; this.allocationMinCidrMask = builder.allocationMinCidrMask; this.autoImport = builder.autoImport; this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipVersion = builder.ipVersion; this.ipamPoolDescription = builder.ipamPoolDescription; this.ipamPoolName = builder.ipamPoolName; this.ipamScopeId = builder.ipamScopeId; this.ipv6Isp = builder.ipv6Isp; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.poolRegionId = builder.poolRegionId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.sourceIpamPoolId = builder.sourceIpamPoolId; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static CreateIpamPoolRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return allocationDefaultCidrMask */ public Integer getAllocationDefaultCidrMask() { return this.allocationDefaultCidrMask; } /** * @return allocationMaxCidrMask */ public Integer getAllocationMaxCidrMask() { return this.allocationMaxCidrMask; } /** * @return allocationMinCidrMask */ public Integer getAllocationMinCidrMask() { return this.allocationMinCidrMask; } /** * @return autoImport */ public Boolean getAutoImport() { return this.autoImport; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipVersion */ public String getIpVersion() { return this.ipVersion; } /** * @return ipamPoolDescription */ public String getIpamPoolDescription() { return this.ipamPoolDescription; } /** * @return ipamPoolName */ public String getIpamPoolName() { return this.ipamPoolName; } /** * @return ipamScopeId */ public String getIpamScopeId() { return this.ipamScopeId; } /** * @return ipv6Isp */ public String getIpv6Isp() { return this.ipv6Isp; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return poolRegionId */ public String getPoolRegionId() { return this.poolRegionId; } /** * @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 resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return sourceIpamPoolId */ public String getSourceIpamPoolId() { return this.sourceIpamPoolId; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<CreateIpamPoolRequest, Builder> { private Integer allocationDefaultCidrMask; private Integer allocationMaxCidrMask; private Integer allocationMinCidrMask; private Boolean autoImport; private String clientToken; private Boolean dryRun; private String ipVersion; private String ipamPoolDescription; private String ipamPoolName; private String ipamScopeId; private String ipv6Isp; private String ownerAccount; private Long ownerId; private String poolRegionId; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private String sourceIpamPoolId; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(CreateIpamPoolRequest request) { super(request); this.allocationDefaultCidrMask = request.allocationDefaultCidrMask; this.allocationMaxCidrMask = request.allocationMaxCidrMask; this.allocationMinCidrMask = request.allocationMinCidrMask; this.autoImport = request.autoImport; this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipVersion = request.ipVersion; this.ipamPoolDescription = request.ipamPoolDescription; this.ipamPoolName = request.ipamPoolName; this.ipamScopeId = request.ipamScopeId; this.ipv6Isp = request.ipv6Isp; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.poolRegionId = request.poolRegionId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.sourceIpamPoolId = request.sourceIpamPoolId; this.tag = request.tag; } /** * <p>The default network mask assigned by the IPAM address pool. </p> * <blockquote> * <p>The IPv4 network mask value range is 0 to 32 bits, and the IPv6 network mask value range is 0 to 128 bits.</p> * </blockquote> * * <strong>example:</strong> * <p>28</p> */ public Builder allocationDefaultCidrMask(Integer allocationDefaultCidrMask) { this.putQueryParameter("AllocationDefaultCidrMask", allocationDefaultCidrMask); this.allocationDefaultCidrMask = allocationDefaultCidrMask; return this; } /** * <p>The maximum network mask assigned by the IPAM address pool. </p> * <blockquote> * <p>The IPv4 network mask value range is <strong>0 to 32</strong> bits, and the IPv6 network mask value range is <strong>0 to 128</strong> bits.</p> * </blockquote> * * <strong>example:</strong> * <p>32</p> */ public Builder allocationMaxCidrMask(Integer allocationMaxCidrMask) { this.putQueryParameter("AllocationMaxCidrMask", allocationMaxCidrMask); this.allocationMaxCidrMask = allocationMaxCidrMask; return this; } /** * <p>The minimum network mask assigned by the IPAM address pool. </p> * <blockquote> * <p>The IPv4 network mask value range is <strong>0 to 32</strong> bits, and the IPv6 network mask value range is <strong>0 to 128</strong> bits.</p> * </blockquote> * * <strong>example:</strong> * <p>8</p> */ public Builder allocationMinCidrMask(Integer allocationMinCidrMask) { this.putQueryParameter("AllocationMinCidrMask", allocationMinCidrMask); this.allocationMinCidrMask = allocationMinCidrMask; return this; } /** * <p>Whether the pool has the auto-import feature enabled.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder autoImport(Boolean autoImport) { this.putQueryParameter("AutoImport", autoImport); this.autoImport = autoImport; return this; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.</li> * <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>IP address protocol version. Values:</p> * <ul> * <li><strong>IPv4</strong>: IPv4 protocol.</li> * <li><strong>IPv6</strong>: IPv6 protocol.</li> * </ul> * * <strong>example:</strong> * <p>IPv4</p> */ public Builder ipVersion(String ipVersion) { this.putQueryParameter("IpVersion", ipVersion); this.ipVersion = ipVersion; return this; } /** * <p>Description of the IPAM address pool. * The length should be between 1 to 256 characters, and it must start with an uppercase or lowercase English letter or a Chinese character, but cannot begin with <code>http://</code> or <code>https://</code>. If left blank, the default value is empty.</p> * * <strong>example:</strong> * <p>test description</p> */ public Builder ipamPoolDescription(String ipamPoolDescription) { this.putQueryParameter("IpamPoolDescription", ipamPoolDescription); this.ipamPoolDescription = ipamPoolDescription; return this; } /** * <p>The name of the IPAM pool.</p> * <p>It must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>abc</p> */ public Builder ipamPoolName(String ipamPoolName) { this.putQueryParameter("IpamPoolName", ipamPoolName); this.ipamPoolName = ipamPoolName; return this; } /** * <p>The ID of the IPAM scope.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-scope-glfmcyldpm8lsy****</p> */ public Builder ipamScopeId(String ipamScopeId) { this.putQueryParameter("IpamScopeId", ipamScopeId); this.ipamScopeId = ipamScopeId; return this; } /** * <p>The type of the IPv6 CIDR block of the VPC. Valid values:</p> * <ul> * <li><strong>BGP</strong> (default)</li> * <li><strong>ChinaMobile</strong></li> * <li><strong>ChinaUnicom</strong></li> * <li><strong>ChinaTelecom</strong></li> * </ul> * <blockquote> * <p> If you are allowed to use single-ISP bandwidth, you can set the value to <strong>ChinaTelecom</strong>, <strong>ChinaUnicom</strong>, or <strong>ChinaMobile</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>BGP</p> */ public Builder ipv6Isp(String ipv6Isp) { this.putQueryParameter("Ipv6Isp", ipv6Isp); this.ipv6Isp = ipv6Isp; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The effective region of the IPAM pool.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder poolRegionId(String poolRegionId) { this.putQueryParameter("PoolRegionId", poolRegionId); this.poolRegionId = poolRegionId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The resource group ID.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</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; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the source IPAM pool.</p> * <blockquote> * <p> If you do not specify this parameter, the pool is a parent pool.</p> * </blockquote> * * <strong>example:</strong> * <p>ipam-pool-6rcq3tobayc20t****</p> */ public Builder sourceIpamPoolId(String sourceIpamPoolId) { this.putQueryParameter("SourceIpamPoolId", sourceIpamPoolId); this.sourceIpamPoolId = sourceIpamPoolId; return this; } /** * <p>The tag list.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public CreateIpamPoolRequest build() { return new CreateIpamPoolRequest(this); } } /** * * {@link CreateIpamPoolRequest} extends {@link TeaModel} * * <p>CreateIpamPoolRequest</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. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p> * <p>The tag key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The tag key must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. The tag key cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value. You can specify up to 20 tag values. The tag value can be an empty string.</p> * <p>The tag value can be up to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It cannot start with a <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/CreateIpamPoolResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateIpamPoolResponse} extends {@link TeaModel} * * <p>CreateIpamPoolResponse</p> */ public class CreateIpamPoolResponse 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 CreateIpamPoolResponseBody body; private CreateIpamPoolResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateIpamPoolResponse 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 CreateIpamPoolResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateIpamPoolResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateIpamPoolResponseBody body); @Override CreateIpamPoolResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateIpamPoolResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateIpamPoolResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateIpamPoolResponse 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(CreateIpamPoolResponseBody body) { this.body = body; return this; } @Override public CreateIpamPoolResponse build() { return new CreateIpamPoolResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/CreateIpamPoolResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateIpamPoolResponseBody} extends {@link TeaModel} * * <p>CreateIpamPoolResponseBody</p> */ public class CreateIpamPoolResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpamPoolId") private String ipamPoolId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateIpamPoolResponseBody(Builder builder) { this.ipamPoolId = builder.ipamPoolId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateIpamPoolResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return ipamPoolId */ public String getIpamPoolId() { return this.ipamPoolId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String ipamPoolId; private String requestId; private Builder() { } private Builder(CreateIpamPoolResponseBody model) { this.ipamPoolId = model.ipamPoolId; this.requestId = model.requestId; } /** * <p>The ID of the IPAM pool.</p> * * <strong>example:</strong> * <p>ipam-pool-6rcq3tobayc20t****</p> */ public Builder ipamPoolId(String ipamPoolId) { this.ipamPoolId = ipamPoolId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>BB2C39DE-CEB8-595A-981A-F2EFCBE7324E</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateIpamPoolResponseBody build() { return new CreateIpamPoolResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/CreateIpamRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateIpamRequest} extends {@link RequestModel} * * <p>CreateIpamRequest</p> */ public class CreateIpamRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamDescription") private String ipamDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamName") private String ipamName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperatingRegionList") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> operatingRegionList; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private CreateIpamRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamDescription = builder.ipamDescription; this.ipamName = builder.ipamName; this.operatingRegionList = builder.operatingRegionList; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static CreateIpamRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamDescription */ public String getIpamDescription() { return this.ipamDescription; } /** * @return ipamName */ public String getIpamName() { return this.ipamName; } /** * @return operatingRegionList */ public java.util.List<String> getOperatingRegionList() { return this.operatingRegionList; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @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 resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<CreateIpamRequest, Builder> { private String clientToken; private Boolean dryRun; private String ipamDescription; private String ipamName; private java.util.List<String> operatingRegionList; private String ownerAccount; private Long ownerId; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(CreateIpamRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamDescription = request.ipamDescription; this.ipamName = request.ipamName; this.operatingRegionList = request.operatingRegionList; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tag = request.tag; } /** * <p>The client token used to ensure the idempotence of the request. Use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.</li> * <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The description of the IPAM.</p> * <p>It must be 1 to 256 characters in length. Start with a letter but cannot start with <code>http://</code> or <code>https://</code>. If you do not specify a description, the description is empty by default.</p> * * <strong>example:</strong> * <p>This is my first Ipam</p> */ public Builder ipamDescription(String ipamDescription) { this.putQueryParameter("IpamDescription", ipamDescription); this.ipamDescription = ipamDescription; return this; } /** * <p>The name of the IPAM.</p> * <p>It must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>abc</p> */ public Builder ipamName(String ipamName) { this.putQueryParameter("IpamName", ipamName); this.ipamName = ipamName; return this; } /** * <p>The effective regions of the IPAM.</p> * <p>This parameter is required.</p> */ public Builder operatingRegionList(java.util.List<String> operatingRegionList) { this.putQueryParameter("OperatingRegionList", operatingRegionList); this.operatingRegionList = operatingRegionList; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The resource group ID of the IPAM.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</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; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The tag list.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public CreateIpamRequest build() { return new CreateIpamRequest(this); } } /** * * {@link CreateIpamRequest} extends {@link TeaModel} * * <p>CreateIpamRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key of the resource. You can specify at most 20 tag keys. It cannot be an empty string.</p> * <p>The tag key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter but 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>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the resource. You can specify up to 20 tag values. You can specify empty strings as tag values.</p> * <p>The tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/CreateIpamResourceDiscoveryRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateIpamResourceDiscoveryRequest} extends {@link RequestModel} * * <p>CreateIpamResourceDiscoveryRequest</p> */ public class CreateIpamResourceDiscoveryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryDescription") private String ipamResourceDiscoveryDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryName") private String ipamResourceDiscoveryName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperatingRegionList") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> operatingRegionList; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private CreateIpamResourceDiscoveryRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamResourceDiscoveryDescription = builder.ipamResourceDiscoveryDescription; this.ipamResourceDiscoveryName = builder.ipamResourceDiscoveryName; this.operatingRegionList = builder.operatingRegionList; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static CreateIpamResourceDiscoveryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamResourceDiscoveryDescription */ public String getIpamResourceDiscoveryDescription() { return this.ipamResourceDiscoveryDescription; } /** * @return ipamResourceDiscoveryName */ public String getIpamResourceDiscoveryName() { return this.ipamResourceDiscoveryName; } /** * @return operatingRegionList */ public java.util.List<String> getOperatingRegionList() { return this.operatingRegionList; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @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 resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<CreateIpamResourceDiscoveryRequest, Builder> { private String clientToken; private Boolean dryRun; private String ipamResourceDiscoveryDescription; private String ipamResourceDiscoveryName; private java.util.List<String> operatingRegionList; private String ownerAccount; private Long ownerId; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(CreateIpamResourceDiscoveryRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamResourceDiscoveryDescription = request.ipamResourceDiscoveryDescription; this.ipamResourceDiscoveryName = request.ipamResourceDiscoveryName; this.operatingRegionList = request.operatingRegionList; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tag = request.tag; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform a dry run, without sending the actual request. Valid value:</p> * <ul> * <li><strong>true</strong>: Performs the dry run without creating a custom resource discovery instance. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error code is returned. If the request passes the dry run, the DryRunOperation error code is returned.</li> * <li><strong>false</strong> (default): Performs a dry run and the actual request. If the request passes the dry run, an HTTP 2xx status code is returned and a custom resource discovery instance is created.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The description of resource discovery.</p> * * <strong>example:</strong> * <p>description</p> */ public Builder ipamResourceDiscoveryDescription(String ipamResourceDiscoveryDescription) { this.putQueryParameter("IpamResourceDiscoveryDescription", ipamResourceDiscoveryDescription); this.ipamResourceDiscoveryDescription = ipamResourceDiscoveryDescription; return this; } /** * <p>The name of the resource discovery.</p> * * <strong>example:</strong> * <p>name</p> */ public Builder ipamResourceDiscoveryName(String ipamResourceDiscoveryName) { this.putQueryParameter("IpamResourceDiscoveryName", ipamResourceDiscoveryName); this.ipamResourceDiscoveryName = ipamResourceDiscoveryName; return this; } /** * <p>The list of effective regions.</p> * <p>This parameter is required.</p> */ public Builder operatingRegionList(java.util.List<String> operatingRegionList) { this.putQueryParameter("OperatingRegionList", operatingRegionList); this.operatingRegionList = operatingRegionList; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The request region.</p> * <blockquote> * <p> The request region is the hosted region of the resource discovery instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The resource group ID.</p> * * <strong>example:</strong> * <p>rg-aek2sermdd6****</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; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The tag information.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public CreateIpamResourceDiscoveryRequest build() { return new CreateIpamResourceDiscoveryRequest(this); } } /** * * {@link CreateIpamResourceDiscoveryRequest} extends {@link TeaModel} * * <p>CreateIpamResourceDiscoveryRequest</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 keys. You can specify at most 20 tag keys. It cannot be an empty string.</p> * <p>The tag key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter but 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>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the resource. You can specify up to 20 tag values. You can specify empty strings as tag values.</p> * <p>The tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/CreateIpamResourceDiscoveryResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateIpamResourceDiscoveryResponse} extends {@link TeaModel} * * <p>CreateIpamResourceDiscoveryResponse</p> */ public class CreateIpamResourceDiscoveryResponse 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 CreateIpamResourceDiscoveryResponseBody body; private CreateIpamResourceDiscoveryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateIpamResourceDiscoveryResponse 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 CreateIpamResourceDiscoveryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateIpamResourceDiscoveryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateIpamResourceDiscoveryResponseBody body); @Override CreateIpamResourceDiscoveryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateIpamResourceDiscoveryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateIpamResourceDiscoveryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateIpamResourceDiscoveryResponse 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(CreateIpamResourceDiscoveryResponseBody body) { this.body = body; return this; } @Override public CreateIpamResourceDiscoveryResponse build() { return new CreateIpamResourceDiscoveryResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/CreateIpamResourceDiscoveryResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateIpamResourceDiscoveryResponseBody} extends {@link TeaModel} * * <p>CreateIpamResourceDiscoveryResponseBody</p> */ public class CreateIpamResourceDiscoveryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryId") private String ipamResourceDiscoveryId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateIpamResourceDiscoveryResponseBody(Builder builder) { this.ipamResourceDiscoveryId = builder.ipamResourceDiscoveryId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateIpamResourceDiscoveryResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return ipamResourceDiscoveryId */ public String getIpamResourceDiscoveryId() { return this.ipamResourceDiscoveryId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String ipamResourceDiscoveryId; private String requestId; private Builder() { } private Builder(CreateIpamResourceDiscoveryResponseBody model) { this.ipamResourceDiscoveryId = model.ipamResourceDiscoveryId; this.requestId = model.requestId; } /** * <p>The ID of the instance for resource discovery.</p> * * <strong>example:</strong> * <p>ipam-res-disco-jt5f2af2u6nk2z321****</p> */ public Builder ipamResourceDiscoveryId(String ipamResourceDiscoveryId) { this.ipamResourceDiscoveryId = ipamResourceDiscoveryId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>BB2C39DE-CEB8-595A-981A-F2EFCBE7324E</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateIpamResourceDiscoveryResponseBody build() { return new CreateIpamResourceDiscoveryResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/CreateIpamResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateIpamResponse} extends {@link TeaModel} * * <p>CreateIpamResponse</p> */ public class CreateIpamResponse 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 CreateIpamResponseBody body; private CreateIpamResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateIpamResponse 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 CreateIpamResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateIpamResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateIpamResponseBody body); @Override CreateIpamResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateIpamResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateIpamResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateIpamResponse 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(CreateIpamResponseBody body) { this.body = body; return this; } @Override public CreateIpamResponse build() { return new CreateIpamResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/CreateIpamResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateIpamResponseBody} extends {@link TeaModel} * * <p>CreateIpamResponseBody</p> */ public class CreateIpamResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("DefaultResourceDiscoveryAssociationId") private String defaultResourceDiscoveryAssociationId; @com.aliyun.core.annotation.NameInMap("DefaultResourceDiscoveryId") private String defaultResourceDiscoveryId; @com.aliyun.core.annotation.NameInMap("IpamId") private String ipamId; @com.aliyun.core.annotation.NameInMap("PrivateDefaultScopeId") private String privateDefaultScopeId; @com.aliyun.core.annotation.NameInMap("PublicDefaultScopeId") private String publicDefaultScopeId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceDiscoveryAssociationCount") private Integer resourceDiscoveryAssociationCount; private CreateIpamResponseBody(Builder builder) { this.defaultResourceDiscoveryAssociationId = builder.defaultResourceDiscoveryAssociationId; this.defaultResourceDiscoveryId = builder.defaultResourceDiscoveryId; this.ipamId = builder.ipamId; this.privateDefaultScopeId = builder.privateDefaultScopeId; this.publicDefaultScopeId = builder.publicDefaultScopeId; this.requestId = builder.requestId; this.resourceDiscoveryAssociationCount = builder.resourceDiscoveryAssociationCount; } public static Builder builder() { return new Builder(); } public static CreateIpamResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return defaultResourceDiscoveryAssociationId */ public String getDefaultResourceDiscoveryAssociationId() { return this.defaultResourceDiscoveryAssociationId; } /** * @return defaultResourceDiscoveryId */ public String getDefaultResourceDiscoveryId() { return this.defaultResourceDiscoveryId; } /** * @return ipamId */ public String getIpamId() { return this.ipamId; } /** * @return privateDefaultScopeId */ public String getPrivateDefaultScopeId() { return this.privateDefaultScopeId; } /** * @return publicDefaultScopeId */ public String getPublicDefaultScopeId() { return this.publicDefaultScopeId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceDiscoveryAssociationCount */ public Integer getResourceDiscoveryAssociationCount() { return this.resourceDiscoveryAssociationCount; } public static final class Builder { private String defaultResourceDiscoveryAssociationId; private String defaultResourceDiscoveryId; private String ipamId; private String privateDefaultScopeId; private String publicDefaultScopeId; private String requestId; private Integer resourceDiscoveryAssociationCount; private Builder() { } private Builder(CreateIpamResponseBody model) { this.defaultResourceDiscoveryAssociationId = model.defaultResourceDiscoveryAssociationId; this.defaultResourceDiscoveryId = model.defaultResourceDiscoveryId; this.ipamId = model.ipamId; this.privateDefaultScopeId = model.privateDefaultScopeId; this.publicDefaultScopeId = model.publicDefaultScopeId; this.requestId = model.requestId; this.resourceDiscoveryAssociationCount = model.resourceDiscoveryAssociationCount; } /** * <p>The ID of the default resource discovery association.</p> * * <strong>example:</strong> * <p>ipam-res-disco-assoc-jt5fac8twugdbbgip****</p> */ public Builder defaultResourceDiscoveryAssociationId(String defaultResourceDiscoveryAssociationId) { this.defaultResourceDiscoveryAssociationId = defaultResourceDiscoveryAssociationId; return this; } /** * <p>The ID of the default resource discovery instance.</p> * * <strong>example:</strong> * <p>ipam-res-disco-jt5f2af2u6nk2z321****</p> */ public Builder defaultResourceDiscoveryId(String defaultResourceDiscoveryId) { this.defaultResourceDiscoveryId = defaultResourceDiscoveryId; return this; } /** * <p>The ID of the IPAM.</p> * * <strong>example:</strong> * <p>ipam-ccxbnsbhew0d6t****</p> */ public Builder ipamId(String ipamId) { this.ipamId = ipamId; return this; } /** * <p>The default private scope created by the system after the IPAM is created.</p> * * <strong>example:</strong> * <p>ipam-scope-8wiontzmiy6cg0****</p> */ public Builder privateDefaultScopeId(String privateDefaultScopeId) { this.privateDefaultScopeId = privateDefaultScopeId; return this; } /** * <p>The default public scope created by the system after the IPAM is created.</p> * * <strong>example:</strong> * <p>ipam-scope-r5c5c7bmym1brc****</p> */ public Builder publicDefaultScopeId(String publicDefaultScopeId) { this.publicDefaultScopeId = publicDefaultScopeId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>0ED8D006-F706-4D23-88ED-E11ED39DCAC0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The number of discovered resources.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder resourceDiscoveryAssociationCount(Integer resourceDiscoveryAssociationCount) { this.resourceDiscoveryAssociationCount = resourceDiscoveryAssociationCount; return this; } public CreateIpamResponseBody build() { return new CreateIpamResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/CreateIpamScopeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateIpamScopeRequest} extends {@link RequestModel} * * <p>CreateIpamScopeRequest</p> */ public class CreateIpamScopeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamId") @com.aliyun.core.annotation.Validation(required = true) private String ipamId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamScopeDescription") private String ipamScopeDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamScopeName") private String ipamScopeName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamScopeType") private String ipamScopeType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private CreateIpamScopeRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamId = builder.ipamId; this.ipamScopeDescription = builder.ipamScopeDescription; this.ipamScopeName = builder.ipamScopeName; this.ipamScopeType = builder.ipamScopeType; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static CreateIpamScopeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamId */ public String getIpamId() { return this.ipamId; } /** * @return ipamScopeDescription */ public String getIpamScopeDescription() { return this.ipamScopeDescription; } /** * @return ipamScopeName */ public String getIpamScopeName() { return this.ipamScopeName; } /** * @return ipamScopeType */ public String getIpamScopeType() { return this.ipamScopeType; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @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 resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<CreateIpamScopeRequest, Builder> { private String clientToken; private Boolean dryRun; private String ipamId; private String ipamScopeDescription; private String ipamScopeName; private String ipamScopeType; private String ownerAccount; private Long ownerId; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(CreateIpamScopeRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamId = request.ipamId; this.ipamScopeDescription = request.ipamScopeDescription; this.ipamScopeName = request.ipamScopeName; this.ipamScopeType = request.ipamScopeType; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tag = request.tag; } /** * <p>The client token used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including invalid AccessKey pairs, unauthorized RAM users, and missing parameter values. If the request fails the dry run, an error code is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong>: performs a dry run and the actual request. After the request passes the dry run, a 2xx HTTP status code is returned and the IPAM scope is created.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The ID of the IPAM.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-ccxbnsbhew0d6t****</p> */ public Builder ipamId(String ipamId) { this.putQueryParameter("IpamId", ipamId); this.ipamId = ipamId; return this; } /** * <p>The description of the IPAM scope.</p> * <p>It must be 1 to 256 characters in length. It must start with a letter but cannot start with <code>http://</code> or <code>https://</code>. This parameter is empty by default.</p> * * <strong>example:</strong> * <p>test description</p> */ public Builder ipamScopeDescription(String ipamScopeDescription) { this.putQueryParameter("IpamScopeDescription", ipamScopeDescription); this.ipamScopeDescription = ipamScopeDescription; return this; } /** * <p>The name of the IPAM scope.</p> * <p>It must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipamScopeName(String ipamScopeName) { this.putQueryParameter("IpamScopeName", ipamScopeName); this.ipamScopeName = ipamScopeName; return this; } /** * <p>The type of IPAM scope: <strong>private</strong></p> * <p><strong>Usage notes</strong> You can create only private IPAM scopes.</p> * * <strong>example:</strong> * <p>private</p> */ public Builder ipamScopeType(String ipamScopeType) { this.putQueryParameter("IpamScopeType", ipamScopeType); this.ipamScopeType = ipamScopeType; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The resource group ID of the IPAM scope.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</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; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The tag list.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public CreateIpamScopeRequest build() { return new CreateIpamScopeRequest(this); } } /** * * {@link CreateIpamScopeRequest} extends {@link TeaModel} * * <p>CreateIpamScopeRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key of the resource. You can specify at most 20 tag keys. It cannot be an empty string.</p> * <p>The tag key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter but 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>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the resource. You can specify up to 20 tag values. You can specify empty strings as tag values.</p> * <p>The tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/CreateIpamScopeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateIpamScopeResponse} extends {@link TeaModel} * * <p>CreateIpamScopeResponse</p> */ public class CreateIpamScopeResponse 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 CreateIpamScopeResponseBody body; private CreateIpamScopeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateIpamScopeResponse 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 CreateIpamScopeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateIpamScopeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateIpamScopeResponseBody body); @Override CreateIpamScopeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateIpamScopeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateIpamScopeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateIpamScopeResponse 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(CreateIpamScopeResponseBody body) { this.body = body; return this; } @Override public CreateIpamScopeResponse build() { return new CreateIpamScopeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/CreateIpamScopeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateIpamScopeResponseBody} extends {@link TeaModel} * * <p>CreateIpamScopeResponseBody</p> */ public class CreateIpamScopeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpamScopeId") private String ipamScopeId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateIpamScopeResponseBody(Builder builder) { this.ipamScopeId = builder.ipamScopeId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateIpamScopeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return ipamScopeId */ public String getIpamScopeId() { return this.ipamScopeId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String ipamScopeId; private String requestId; private Builder() { } private Builder(CreateIpamScopeResponseBody model) { this.ipamScopeId = model.ipamScopeId; this.requestId = model.requestId; } /** * <p>The ID of the IPAM scope.</p> * * <strong>example:</strong> * <p>ipam-scope-glfmcyldpm8lsy****</p> */ public Builder ipamScopeId(String ipamScopeId) { this.ipamScopeId = ipamScopeId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>E897D16A-50EB-543F-B002-C5A26AB818FF</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateIpamScopeResponseBody build() { return new CreateIpamScopeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamPoolAllocationRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamPoolAllocationRequest} extends {@link RequestModel} * * <p>DeleteIpamPoolAllocationRequest</p> */ public class DeleteIpamPoolAllocationRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolAllocationId") @com.aliyun.core.annotation.Validation(required = true) private String ipamPoolAllocationId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DeleteIpamPoolAllocationRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamPoolAllocationId = builder.ipamPoolAllocationId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DeleteIpamPoolAllocationRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamPoolAllocationId */ public String getIpamPoolAllocationId() { return this.ipamPoolAllocationId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DeleteIpamPoolAllocationRequest, Builder> { private String clientToken; private Boolean dryRun; private String ipamPoolAllocationId; private String regionId; private Builder() { super(); } private Builder(DeleteIpamPoolAllocationRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamPoolAllocationId = request.ipamPoolAllocationId; this.regionId = request.regionId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <p><strong>Usage notes</strong> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.</li> * <li><strong>false</strong> (default): sends the API request. If the request passes the check, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The ID of the custom reserved CIDR block to be deleted.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-alloc-c4vhvr3b22mmc6****</p> */ public Builder ipamPoolAllocationId(String ipamPoolAllocationId) { this.putQueryParameter("IpamPoolAllocationId", ipamPoolAllocationId); this.ipamPoolAllocationId = ipamPoolAllocationId; return this; } /** * <p>The region ID of the custom reserved CIDR block.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public DeleteIpamPoolAllocationRequest build() { return new DeleteIpamPoolAllocationRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamPoolAllocationResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamPoolAllocationResponse} extends {@link TeaModel} * * <p>DeleteIpamPoolAllocationResponse</p> */ public class DeleteIpamPoolAllocationResponse 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 DeleteIpamPoolAllocationResponseBody body; private DeleteIpamPoolAllocationResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteIpamPoolAllocationResponse 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 DeleteIpamPoolAllocationResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteIpamPoolAllocationResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteIpamPoolAllocationResponseBody body); @Override DeleteIpamPoolAllocationResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteIpamPoolAllocationResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteIpamPoolAllocationResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteIpamPoolAllocationResponse 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(DeleteIpamPoolAllocationResponseBody body) { this.body = body; return this; } @Override public DeleteIpamPoolAllocationResponse build() { return new DeleteIpamPoolAllocationResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamPoolAllocationResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamPoolAllocationResponseBody} extends {@link TeaModel} * * <p>DeleteIpamPoolAllocationResponseBody</p> */ public class DeleteIpamPoolAllocationResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteIpamPoolAllocationResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteIpamPoolAllocationResponseBody 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(DeleteIpamPoolAllocationResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>B90776C8-F703-51D5-893A-AD1CA699D535</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteIpamPoolAllocationResponseBody build() { return new DeleteIpamPoolAllocationResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamPoolCidrRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamPoolCidrRequest} extends {@link RequestModel} * * <p>DeleteIpamPoolCidrRequest</p> */ public class DeleteIpamPoolCidrRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Cidr") @com.aliyun.core.annotation.Validation(required = true) private String cidr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolId") @com.aliyun.core.annotation.Validation(required = true) private String ipamPoolId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DeleteIpamPoolCidrRequest(Builder builder) { super(builder); this.cidr = builder.cidr; this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamPoolId = builder.ipamPoolId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DeleteIpamPoolCidrRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return cidr */ public String getCidr() { return this.cidr; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamPoolId */ public String getIpamPoolId() { return this.ipamPoolId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DeleteIpamPoolCidrRequest, Builder> { private String cidr; private String clientToken; private Boolean dryRun; private String ipamPoolId; private String regionId; private Builder() { super(); } private Builder(DeleteIpamPoolCidrRequest request) { super(request); this.cidr = request.cidr; this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamPoolId = request.ipamPoolId; this.regionId = request.regionId; } /** * <p>The provisioned CIDR block to be deleted.</p> * <blockquote> * <p> Only IPv4 CIDR blocks are supported.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>192.168.1.0/24</p> */ public Builder cidr(String cidr) { this.putQueryParameter("Cidr", cidr); this.cidr = cidr; return this; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.</li> * <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The ID of the IPAM pool.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-pool-6rcq3tobayc20t****</p> */ public Builder ipamPoolId(String ipamPoolId) { this.putQueryParameter("IpamPoolId", ipamPoolId); this.ipamPoolId = ipamPoolId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public DeleteIpamPoolCidrRequest build() { return new DeleteIpamPoolCidrRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamPoolCidrResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamPoolCidrResponse} extends {@link TeaModel} * * <p>DeleteIpamPoolCidrResponse</p> */ public class DeleteIpamPoolCidrResponse 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 DeleteIpamPoolCidrResponseBody body; private DeleteIpamPoolCidrResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteIpamPoolCidrResponse 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 DeleteIpamPoolCidrResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteIpamPoolCidrResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteIpamPoolCidrResponseBody body); @Override DeleteIpamPoolCidrResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteIpamPoolCidrResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteIpamPoolCidrResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteIpamPoolCidrResponse 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(DeleteIpamPoolCidrResponseBody body) { this.body = body; return this; } @Override public DeleteIpamPoolCidrResponse build() { return new DeleteIpamPoolCidrResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamPoolCidrResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamPoolCidrResponseBody} extends {@link TeaModel} * * <p>DeleteIpamPoolCidrResponseBody</p> */ public class DeleteIpamPoolCidrResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteIpamPoolCidrResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteIpamPoolCidrResponseBody 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(DeleteIpamPoolCidrResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>F28A239E-F88D-500E-ADE7-FA5E8CA3A170</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteIpamPoolCidrResponseBody build() { return new DeleteIpamPoolCidrResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamPoolRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamPoolRequest} extends {@link RequestModel} * * <p>DeleteIpamPoolRequest</p> */ public class DeleteIpamPoolRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolId") @com.aliyun.core.annotation.Validation(required = true) private String ipamPoolId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private DeleteIpamPoolRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamPoolId = builder.ipamPoolId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static DeleteIpamPoolRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamPoolId */ public String getIpamPoolId() { return this.ipamPoolId; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<DeleteIpamPoolRequest, Builder> { private String clientToken; private Boolean dryRun; private String ipamPoolId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(DeleteIpamPoolRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamPoolId = request.ipamPoolId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <p>**</p> * <p><strong>Usage notes</strong> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, DryRunOperation is returned.</li> * <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The ID of the IPAM pool.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-pool-6rcq3tobayc20t****</p> */ public Builder ipamPoolId(String ipamPoolId) { this.putQueryParameter("IpamPoolId", ipamPoolId); this.ipamPoolId = ipamPoolId; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public DeleteIpamPoolRequest build() { return new DeleteIpamPoolRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamPoolResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamPoolResponse} extends {@link TeaModel} * * <p>DeleteIpamPoolResponse</p> */ public class DeleteIpamPoolResponse 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 DeleteIpamPoolResponseBody body; private DeleteIpamPoolResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteIpamPoolResponse 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 DeleteIpamPoolResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteIpamPoolResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteIpamPoolResponseBody body); @Override DeleteIpamPoolResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteIpamPoolResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteIpamPoolResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteIpamPoolResponse 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(DeleteIpamPoolResponseBody body) { this.body = body; return this; } @Override public DeleteIpamPoolResponse build() { return new DeleteIpamPoolResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamPoolResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamPoolResponseBody} extends {@link TeaModel} * * <p>DeleteIpamPoolResponseBody</p> */ public class DeleteIpamPoolResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteIpamPoolResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteIpamPoolResponseBody 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(DeleteIpamPoolResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>57B7DCCA-F192-5528-8AF3-2FE1413228C9</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteIpamPoolResponseBody build() { return new DeleteIpamPoolResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamRequest} extends {@link RequestModel} * * <p>DeleteIpamRequest</p> */ public class DeleteIpamRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamId") @com.aliyun.core.annotation.Validation(required = true) private String ipamId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private DeleteIpamRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamId = builder.ipamId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static DeleteIpamRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamId */ public String getIpamId() { return this.ipamId; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<DeleteIpamRequest, Builder> { private String clientToken; private Boolean dryRun; private String ipamId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(DeleteIpamRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamId = request.ipamId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <p>**</p> * <p><strong>Usage notes</strong> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.</li> * <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The ID of the IPAM.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-ccxbnsbhew0d6t****</p> */ public Builder ipamId(String ipamId) { this.putQueryParameter("IpamId", ipamId); this.ipamId = ipamId; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public DeleteIpamRequest build() { return new DeleteIpamRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamResourceDiscoveryRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamResourceDiscoveryRequest} extends {@link RequestModel} * * <p>DeleteIpamResourceDiscoveryRequest</p> */ public class DeleteIpamResourceDiscoveryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryId") @com.aliyun.core.annotation.Validation(required = true) private String ipamResourceDiscoveryId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private DeleteIpamResourceDiscoveryRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamResourceDiscoveryId = builder.ipamResourceDiscoveryId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static DeleteIpamResourceDiscoveryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamResourceDiscoveryId */ public String getIpamResourceDiscoveryId() { return this.ipamResourceDiscoveryId; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<DeleteIpamResourceDiscoveryRequest, Builder> { private String clientToken; private Boolean dryRun; private String ipamResourceDiscoveryId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(DeleteIpamResourceDiscoveryRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamResourceDiscoveryId = request.ipamResourceDiscoveryId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform the dry run. Valid values:</p> * <ul> * <li><strong>true</strong>: Performs a dry run without deleting the resource discovery instance. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error code is returned. If the request passes the dry run, the DryRunOperation error code is returned.</li> * <li><strong>false</strong> (default): Performs a dry run and the actual request. If the request passes the check, an HTTP 2xx status code is returned and the resource discovery instance is deleted.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The ID of resource discovery instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-res-disco-jt5f2af2u6nk2z321****</p> */ public Builder ipamResourceDiscoveryId(String ipamResourceDiscoveryId) { this.putQueryParameter("IpamResourceDiscoveryId", ipamResourceDiscoveryId); this.ipamResourceDiscoveryId = ipamResourceDiscoveryId; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The request region.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public DeleteIpamResourceDiscoveryRequest build() { return new DeleteIpamResourceDiscoveryRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamResourceDiscoveryResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamResourceDiscoveryResponse} extends {@link TeaModel} * * <p>DeleteIpamResourceDiscoveryResponse</p> */ public class DeleteIpamResourceDiscoveryResponse 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 DeleteIpamResourceDiscoveryResponseBody body; private DeleteIpamResourceDiscoveryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteIpamResourceDiscoveryResponse 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 DeleteIpamResourceDiscoveryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteIpamResourceDiscoveryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteIpamResourceDiscoveryResponseBody body); @Override DeleteIpamResourceDiscoveryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteIpamResourceDiscoveryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteIpamResourceDiscoveryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteIpamResourceDiscoveryResponse 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(DeleteIpamResourceDiscoveryResponseBody body) { this.body = body; return this; } @Override public DeleteIpamResourceDiscoveryResponse build() { return new DeleteIpamResourceDiscoveryResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamResourceDiscoveryResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamResourceDiscoveryResponseBody} extends {@link TeaModel} * * <p>DeleteIpamResourceDiscoveryResponseBody</p> */ public class DeleteIpamResourceDiscoveryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteIpamResourceDiscoveryResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteIpamResourceDiscoveryResponseBody 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(DeleteIpamResourceDiscoveryResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>9F8315CB-560E-5F1E-B069-6E44B440CAF8</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteIpamResourceDiscoveryResponseBody build() { return new DeleteIpamResourceDiscoveryResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamResponse} extends {@link TeaModel} * * <p>DeleteIpamResponse</p> */ public class DeleteIpamResponse 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 DeleteIpamResponseBody body; private DeleteIpamResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteIpamResponse 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 DeleteIpamResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteIpamResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteIpamResponseBody body); @Override DeleteIpamResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteIpamResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteIpamResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteIpamResponse 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(DeleteIpamResponseBody body) { this.body = body; return this; } @Override public DeleteIpamResponse build() { return new DeleteIpamResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamResponseBody} extends {@link TeaModel} * * <p>DeleteIpamResponseBody</p> */ public class DeleteIpamResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteIpamResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteIpamResponseBody 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(DeleteIpamResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>30A20EE2-6223-5D0F-BF49-D7C78F206063</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteIpamResponseBody build() { return new DeleteIpamResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamScopeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamScopeRequest} extends {@link RequestModel} * * <p>DeleteIpamScopeRequest</p> */ public class DeleteIpamScopeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamScopeId") @com.aliyun.core.annotation.Validation(required = true) private String ipamScopeId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private DeleteIpamScopeRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamScopeId = builder.ipamScopeId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static DeleteIpamScopeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamScopeId */ public String getIpamScopeId() { return this.ipamScopeId; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<DeleteIpamScopeRequest, Builder> { private String clientToken; private Boolean dryRun; private String ipamScopeId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(DeleteIpamScopeRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamScopeId = request.ipamScopeId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>88144bdb-b190-4813-a3f5-66cc86694162</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the precheck, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The ID of the IPAM scope.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-scope-glfmcyldpm8lsy****</p> */ public Builder ipamScopeId(String ipamScopeId) { this.putQueryParameter("IpamScopeId", ipamScopeId); this.ipamScopeId = ipamScopeId; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public DeleteIpamScopeRequest build() { return new DeleteIpamScopeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamScopeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamScopeResponse} extends {@link TeaModel} * * <p>DeleteIpamScopeResponse</p> */ public class DeleteIpamScopeResponse 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 DeleteIpamScopeResponseBody body; private DeleteIpamScopeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteIpamScopeResponse 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 DeleteIpamScopeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteIpamScopeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteIpamScopeResponseBody body); @Override DeleteIpamScopeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteIpamScopeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteIpamScopeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteIpamScopeResponse 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(DeleteIpamScopeResponseBody body) { this.body = body; return this; } @Override public DeleteIpamScopeResponse build() { return new DeleteIpamScopeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DeleteIpamScopeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteIpamScopeResponseBody} extends {@link TeaModel} * * <p>DeleteIpamScopeResponseBody</p> */ public class DeleteIpamScopeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteIpamScopeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteIpamScopeResponseBody 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(DeleteIpamScopeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>9F8315CB-560E-5F1E-B069-6E44B440CAF8</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteIpamScopeResponseBody build() { return new DeleteIpamScopeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DissociateIpamResourceDiscoveryRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DissociateIpamResourceDiscoveryRequest} extends {@link RequestModel} * * <p>DissociateIpamResourceDiscoveryRequest</p> */ public class DissociateIpamResourceDiscoveryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamId") @com.aliyun.core.annotation.Validation(required = true) private String ipamId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryId") @com.aliyun.core.annotation.Validation(required = true) private String ipamResourceDiscoveryId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private DissociateIpamResourceDiscoveryRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamId = builder.ipamId; this.ipamResourceDiscoveryId = builder.ipamResourceDiscoveryId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static DissociateIpamResourceDiscoveryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamId */ public String getIpamId() { return this.ipamId; } /** * @return ipamResourceDiscoveryId */ public String getIpamResourceDiscoveryId() { return this.ipamResourceDiscoveryId; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<DissociateIpamResourceDiscoveryRequest, Builder> { private String clientToken; private Boolean dryRun; private String ipamId; private String ipamResourceDiscoveryId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(DissociateIpamResourceDiscoveryRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamId = request.ipamId; this.ipamResourceDiscoveryId = request.ipamResourceDiscoveryId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: Performs a dry run without disassociating the resource discovery and IPAM instance. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error code is returned. If the request passes the dry run, the DryRunOperation error code is returned.</li> * <li><strong>false</strong> (default): Performs a dry run and sends the request. After the request passes the check, an HTTP 2xx status code is returned and the resource discovery and IPAM instances are disassociated.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The ID of the IPAM.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-ccxbnsbhew0d6t****</p> */ public Builder ipamId(String ipamId) { this.putQueryParameter("IpamId", ipamId); this.ipamId = ipamId; return this; } /** * <p>The ID of the resource discovery instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-res-disco-jt5f2af2u6nk2z321****</p> */ public Builder ipamResourceDiscoveryId(String ipamResourceDiscoveryId) { this.putQueryParameter("IpamResourceDiscoveryId", ipamResourceDiscoveryId); this.ipamResourceDiscoveryId = ipamResourceDiscoveryId; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The request region.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public DissociateIpamResourceDiscoveryRequest build() { return new DissociateIpamResourceDiscoveryRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DissociateIpamResourceDiscoveryResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DissociateIpamResourceDiscoveryResponse} extends {@link TeaModel} * * <p>DissociateIpamResourceDiscoveryResponse</p> */ public class DissociateIpamResourceDiscoveryResponse 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 DissociateIpamResourceDiscoveryResponseBody body; private DissociateIpamResourceDiscoveryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DissociateIpamResourceDiscoveryResponse 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 DissociateIpamResourceDiscoveryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DissociateIpamResourceDiscoveryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DissociateIpamResourceDiscoveryResponseBody body); @Override DissociateIpamResourceDiscoveryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DissociateIpamResourceDiscoveryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DissociateIpamResourceDiscoveryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DissociateIpamResourceDiscoveryResponse 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(DissociateIpamResourceDiscoveryResponseBody body) { this.body = body; return this; } @Override public DissociateIpamResourceDiscoveryResponse build() { return new DissociateIpamResourceDiscoveryResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/DissociateIpamResourceDiscoveryResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DissociateIpamResourceDiscoveryResponseBody} extends {@link TeaModel} * * <p>DissociateIpamResourceDiscoveryResponseBody</p> */ public class DissociateIpamResourceDiscoveryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DissociateIpamResourceDiscoveryResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DissociateIpamResourceDiscoveryResponseBody 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(DissociateIpamResourceDiscoveryResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>86137597-443F-5B66-B9B6-8514E0C50B8F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DissociateIpamResourceDiscoveryResponseBody build() { return new DissociateIpamResourceDiscoveryResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/GetIpamPoolAllocationRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetIpamPoolAllocationRequest} extends {@link RequestModel} * * <p>GetIpamPoolAllocationRequest</p> */ public class GetIpamPoolAllocationRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolAllocationId") @com.aliyun.core.annotation.Validation(required = true) private String ipamPoolAllocationId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private GetIpamPoolAllocationRequest(Builder builder) { super(builder); this.ipamPoolAllocationId = builder.ipamPoolAllocationId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetIpamPoolAllocationRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ipamPoolAllocationId */ public String getIpamPoolAllocationId() { return this.ipamPoolAllocationId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetIpamPoolAllocationRequest, Builder> { private String ipamPoolAllocationId; private String regionId; private Builder() { super(); } private Builder(GetIpamPoolAllocationRequest request) { super(request); this.ipamPoolAllocationId = request.ipamPoolAllocationId; this.regionId = request.regionId; } /** * <p>The ID of the instance to which CIDR blocks are allocated from the IPAM pool.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-pool-alloc-112za33e4****</p> */ public Builder ipamPoolAllocationId(String ipamPoolAllocationId) { this.putQueryParameter("IpamPoolAllocationId", ipamPoolAllocationId); this.ipamPoolAllocationId = ipamPoolAllocationId; return this; } /** * <p>The region of the IPAM pool.</p> * <blockquote> * <p> If the IPAM pool to which CIDR allocation belongs has the region attribute, this parameter is the region of the IPAM pool. If not, this parameter is the IPAM hosted region.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetIpamPoolAllocationRequest build() { return new GetIpamPoolAllocationRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/GetIpamPoolAllocationResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetIpamPoolAllocationResponse} extends {@link TeaModel} * * <p>GetIpamPoolAllocationResponse</p> */ public class GetIpamPoolAllocationResponse 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 GetIpamPoolAllocationResponseBody body; private GetIpamPoolAllocationResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetIpamPoolAllocationResponse 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 GetIpamPoolAllocationResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetIpamPoolAllocationResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetIpamPoolAllocationResponseBody body); @Override GetIpamPoolAllocationResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetIpamPoolAllocationResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetIpamPoolAllocationResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetIpamPoolAllocationResponse 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(GetIpamPoolAllocationResponseBody body) { this.body = body; return this; } @Override public GetIpamPoolAllocationResponse build() { return new GetIpamPoolAllocationResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/GetIpamPoolAllocationResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetIpamPoolAllocationResponseBody} extends {@link TeaModel} * * <p>GetIpamPoolAllocationResponseBody</p> */ public class GetIpamPoolAllocationResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Cidr") private String cidr; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("IpamPoolAllocationDescription") private String ipamPoolAllocationDescription; @com.aliyun.core.annotation.NameInMap("IpamPoolAllocationId") private String ipamPoolAllocationId; @com.aliyun.core.annotation.NameInMap("IpamPoolAllocationName") private String ipamPoolAllocationName; @com.aliyun.core.annotation.NameInMap("IpamPoolId") private String ipamPoolId; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceId") private String resourceId; @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.NameInMap("ResourceRegionId") private String resourceRegionId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("SourceCidr") private String sourceCidr; @com.aliyun.core.annotation.NameInMap("Status") private String status; private GetIpamPoolAllocationResponseBody(Builder builder) { this.cidr = builder.cidr; this.creationTime = builder.creationTime; this.ipamPoolAllocationDescription = builder.ipamPoolAllocationDescription; this.ipamPoolAllocationId = builder.ipamPoolAllocationId; this.ipamPoolAllocationName = builder.ipamPoolAllocationName; this.ipamPoolId = builder.ipamPoolId; this.regionId = builder.regionId; this.requestId = builder.requestId; this.resourceId = builder.resourceId; this.resourceOwnerId = builder.resourceOwnerId; this.resourceRegionId = builder.resourceRegionId; this.resourceType = builder.resourceType; this.sourceCidr = builder.sourceCidr; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static GetIpamPoolAllocationResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return cidr */ public String getCidr() { return this.cidr; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return ipamPoolAllocationDescription */ public String getIpamPoolAllocationDescription() { return this.ipamPoolAllocationDescription; } /** * @return ipamPoolAllocationId */ public String getIpamPoolAllocationId() { return this.ipamPoolAllocationId; } /** * @return ipamPoolAllocationName */ public String getIpamPoolAllocationName() { return this.ipamPoolAllocationName; } /** * @return ipamPoolId */ public String getIpamPoolId() { return this.ipamPoolId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceRegionId */ public String getResourceRegionId() { return this.resourceRegionId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return sourceCidr */ public String getSourceCidr() { return this.sourceCidr; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String cidr; private String creationTime; private String ipamPoolAllocationDescription; private String ipamPoolAllocationId; private String ipamPoolAllocationName; private String ipamPoolId; private String regionId; private String requestId; private String resourceId; private Long resourceOwnerId; private String resourceRegionId; private String resourceType; private String sourceCidr; private String status; private Builder() { } private Builder(GetIpamPoolAllocationResponseBody model) { this.cidr = model.cidr; this.creationTime = model.creationTime; this.ipamPoolAllocationDescription = model.ipamPoolAllocationDescription; this.ipamPoolAllocationId = model.ipamPoolAllocationId; this.ipamPoolAllocationName = model.ipamPoolAllocationName; this.ipamPoolId = model.ipamPoolId; this.regionId = model.regionId; this.requestId = model.requestId; this.resourceId = model.resourceId; this.resourceOwnerId = model.resourceOwnerId; this.resourceRegionId = model.resourceRegionId; this.resourceType = model.resourceType; this.sourceCidr = model.sourceCidr; this.status = model.status; } /** * <p>The allocated CIDR block.</p> * * <strong>example:</strong> * <p>192.168.1.0/24</p> */ public Builder cidr(String cidr) { this.cidr = cidr; return this; } /** * <p>The time when the instance was created.</p> * * <strong>example:</strong> * <p>2024-10-15T10:24:19+08:00</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The description of the CIDR allocation of the IPAM pool.</p> * <p>The description must be 1 to 256 characters in length and start with a letter, but cannot start with a <code>http://</code> or <code>https://</code>. This parameter is empty by default.</p> * * <strong>example:</strong> * <p>ipam pool allocation description</p> */ public Builder ipamPoolAllocationDescription(String ipamPoolAllocationDescription) { this.ipamPoolAllocationDescription = ipamPoolAllocationDescription; return this; } /** * <p>The ID of the instance to which CIDR blocks are allocated from the IPAM pool.</p> * * <strong>example:</strong> * <p>ipam-pool-alloc-112za33e4****</p> */ public Builder ipamPoolAllocationId(String ipamPoolAllocationId) { this.ipamPoolAllocationId = ipamPoolAllocationId; return this; } /** * <p>The name of the CIDR allocation of the IPAM pool.</p> * <p>It must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>ipam pool allocation name</p> */ public Builder ipamPoolAllocationName(String ipamPoolAllocationName) { this.ipamPoolAllocationName = ipamPoolAllocationName; return this; } /** * <p>The ID of the IPAM pool.</p> * * <strong>example:</strong> * <p>ipam-pool-6rcq3tobayc20t****</p> */ public Builder ipamPoolId(String ipamPoolId) { this.ipamPoolId = ipamPoolId; return this; } /** * <p>The region of the IPAM pool.</p> * <blockquote> * <p> If the IPAM pool to which the CIDR block allocation belongs has the region attribute, this parameter is the region of the IPAM pool. If not, this parameter is the IPAM hosted region.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>3748DEFF-68BE-5EED-9937-7C1D0C21BAB4</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource to which the CIDR block is allocated.</p> * * <strong>example:</strong> * <p>vpc-bp16qjewdsunr41m1****</p> */ public Builder resourceId(String resourceId) { this.resourceId = resourceId; return this; } /** * <p>The ID of the Alibaba Cloud account to which the resource belongs.</p> * * <strong>example:</strong> * <p>1616080591216318</p> */ public Builder resourceOwnerId(Long resourceOwnerId) { this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The effective region ID of the resource.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder resourceRegionId(String resourceRegionId) { this.resourceRegionId = resourceRegionId; return this; } /** * <p>The type of the resource to which the CIDR block is allocated. Valid values:</p> * <ul> * <li><strong>VPC</strong></li> * <li><strong>IpamPool</strong></li> * <li><strong>Custom</strong></li> * </ul> * * <strong>example:</strong> * <p>VPC</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The source CIDR block.</p> * * <strong>example:</strong> * <p>192.168.0.0/16</p> */ public Builder sourceCidr(String sourceCidr) { this.sourceCidr = sourceCidr; return this; } /** * <p>The instance state. Valid values:</p> * <ul> * <li><strong>Created</strong></li> * <li><strong>Deleted</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder status(String status) { this.status = status; return this; } public GetIpamPoolAllocationResponseBody build() { return new GetIpamPoolAllocationResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/GetIpamPoolNextAvailableCidrRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetIpamPoolNextAvailableCidrRequest} extends {@link RequestModel} * * <p>GetIpamPoolNextAvailableCidrRequest</p> */ public class GetIpamPoolNextAvailableCidrRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CidrBlock") private String cidrBlock; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CidrMask") private Integer cidrMask; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolId") @com.aliyun.core.annotation.Validation(required = true) private String ipamPoolId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private GetIpamPoolNextAvailableCidrRequest(Builder builder) { super(builder); this.cidrBlock = builder.cidrBlock; this.cidrMask = builder.cidrMask; this.clientToken = builder.clientToken; this.ipamPoolId = builder.ipamPoolId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetIpamPoolNextAvailableCidrRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return cidrBlock */ public String getCidrBlock() { return this.cidrBlock; } /** * @return cidrMask */ public Integer getCidrMask() { return this.cidrMask; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return ipamPoolId */ public String getIpamPoolId() { return this.ipamPoolId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetIpamPoolNextAvailableCidrRequest, Builder> { private String cidrBlock; private Integer cidrMask; private String clientToken; private String ipamPoolId; private String regionId; private Builder() { super(); } private Builder(GetIpamPoolNextAvailableCidrRequest request) { super(request); this.cidrBlock = request.cidrBlock; this.cidrMask = request.cidrMask; this.clientToken = request.clientToken; this.ipamPoolId = request.ipamPoolId; this.regionId = request.regionId; } /** * <p>CIDR to be allocated.</p> * <blockquote> * <p> You must enter at least one of the CidrBlock and CidrMask fields.</p> * </blockquote> * * <strong>example:</strong> * <p>172.68.0.0/26</p> */ public Builder cidrBlock(String cidrBlock) { this.putQueryParameter("CidrBlock", cidrBlock); this.cidrBlock = cidrBlock; return this; } /** * <p>The length of the CIDR mask to be allocated.</p> * <blockquote> * <p> You must enter at least one of the CidrBlock and CidrMask fields.</p> * </blockquote> * * <strong>example:</strong> * <p>26</p> */ public Builder cidrMask(Integer cidrMask) { this.putQueryParameter("CidrMask", cidrMask); this.cidrMask = cidrMask; return this; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the IPAM pool.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-pool-6rcq3tobayc20t****</p> */ public Builder ipamPoolId(String ipamPoolId) { this.putQueryParameter("IpamPoolId", ipamPoolId); this.ipamPoolId = ipamPoolId; return this; } /** * <p>The region of the IPAM pool.</p> * <blockquote> * <p> If the IPAM pool has the region attribute, this parameter is set to the effective region of the IPAM pool. If not, this is set to the hosted region.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetIpamPoolNextAvailableCidrRequest build() { return new GetIpamPoolNextAvailableCidrRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/GetIpamPoolNextAvailableCidrResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetIpamPoolNextAvailableCidrResponse} extends {@link TeaModel} * * <p>GetIpamPoolNextAvailableCidrResponse</p> */ public class GetIpamPoolNextAvailableCidrResponse 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 GetIpamPoolNextAvailableCidrResponseBody body; private GetIpamPoolNextAvailableCidrResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetIpamPoolNextAvailableCidrResponse 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 GetIpamPoolNextAvailableCidrResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetIpamPoolNextAvailableCidrResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetIpamPoolNextAvailableCidrResponseBody body); @Override GetIpamPoolNextAvailableCidrResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetIpamPoolNextAvailableCidrResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetIpamPoolNextAvailableCidrResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetIpamPoolNextAvailableCidrResponse 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(GetIpamPoolNextAvailableCidrResponseBody body) { this.body = body; return this; } @Override public GetIpamPoolNextAvailableCidrResponse build() { return new GetIpamPoolNextAvailableCidrResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/GetIpamPoolNextAvailableCidrResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetIpamPoolNextAvailableCidrResponseBody} extends {@link TeaModel} * * <p>GetIpamPoolNextAvailableCidrResponseBody</p> */ public class GetIpamPoolNextAvailableCidrResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CidrBlock") private String cidrBlock; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GetIpamPoolNextAvailableCidrResponseBody(Builder builder) { this.cidrBlock = builder.cidrBlock; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GetIpamPoolNextAvailableCidrResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return cidrBlock */ public String getCidrBlock() { return this.cidrBlock; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String cidrBlock; private String requestId; private Builder() { } private Builder(GetIpamPoolNextAvailableCidrResponseBody model) { this.cidrBlock = model.cidrBlock; this.requestId = model.requestId; } /** * <p>Available CIDR.</p> * * <strong>example:</strong> * <p>172.68.0.0/26</p> */ public Builder cidrBlock(String cidrBlock) { this.cidrBlock = cidrBlock; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>29FC6758-9B7C-5CC7-8CBF-4DD846FE7D82</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GetIpamPoolNextAvailableCidrResponseBody build() { return new GetIpamPoolNextAvailableCidrResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/GetVpcIpamServiceStatusRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetVpcIpamServiceStatusRequest} extends {@link RequestModel} * * <p>GetVpcIpamServiceStatusRequest</p> */ public class GetVpcIpamServiceStatusRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private GetVpcIpamServiceStatusRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static GetVpcIpamServiceStatusRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<GetVpcIpamServiceStatusRequest, Builder> { private String clientToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(GetVpcIpamServiceStatusRequest request) { super(request); this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public GetVpcIpamServiceStatusRequest build() { return new GetVpcIpamServiceStatusRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/GetVpcIpamServiceStatusResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetVpcIpamServiceStatusResponse} extends {@link TeaModel} * * <p>GetVpcIpamServiceStatusResponse</p> */ public class GetVpcIpamServiceStatusResponse 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 GetVpcIpamServiceStatusResponseBody body; private GetVpcIpamServiceStatusResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetVpcIpamServiceStatusResponse 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 GetVpcIpamServiceStatusResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetVpcIpamServiceStatusResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetVpcIpamServiceStatusResponseBody body); @Override GetVpcIpamServiceStatusResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetVpcIpamServiceStatusResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetVpcIpamServiceStatusResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetVpcIpamServiceStatusResponse 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(GetVpcIpamServiceStatusResponseBody body) { this.body = body; return this; } @Override public GetVpcIpamServiceStatusResponse build() { return new GetVpcIpamServiceStatusResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/GetVpcIpamServiceStatusResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetVpcIpamServiceStatusResponseBody} extends {@link TeaModel} * * <p>GetVpcIpamServiceStatusResponseBody</p> */ public class GetVpcIpamServiceStatusResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Enabled") private Boolean enabled; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GetVpcIpamServiceStatusResponseBody(Builder builder) { this.enabled = builder.enabled; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GetVpcIpamServiceStatusResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return enabled */ public Boolean getEnabled() { return this.enabled; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Boolean enabled; private String requestId; private Builder() { } private Builder(GetVpcIpamServiceStatusResponseBody model) { this.enabled = model.enabled; this.requestId = model.requestId; } /** * <p>Indicates whether IPAM is activated.</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enabled(Boolean enabled) { this.enabled = enabled; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>2FEE9FFF-57EE-5832-BE88-9308352F3B68</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GetVpcIpamServiceStatusResponseBody build() { return new GetVpcIpamServiceStatusResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamDiscoveredResourceRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamDiscoveredResourceRequest} extends {@link RequestModel} * * <p>ListIpamDiscoveredResourceRequest</p> */ public class ListIpamDiscoveredResourceRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryId") @com.aliyun.core.annotation.Validation(required = true) private String ipamResourceDiscoveryId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Integer maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceRegionId") @com.aliyun.core.annotation.Validation(required = true) private String resourceRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private ListIpamDiscoveredResourceRequest(Builder builder) { super(builder); this.ipamResourceDiscoveryId = builder.ipamResourceDiscoveryId; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.regionId = builder.regionId; this.resourceRegionId = builder.resourceRegionId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static ListIpamDiscoveredResourceRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ipamResourceDiscoveryId */ public String getIpamResourceDiscoveryId() { return this.ipamResourceDiscoveryId; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceRegionId */ public String getResourceRegionId() { return this.resourceRegionId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder<ListIpamDiscoveredResourceRequest, Builder> { private String ipamResourceDiscoveryId; private Integer maxResults; private String nextToken; private String regionId; private String resourceRegionId; private String resourceType; private Builder() { super(); } private Builder(ListIpamDiscoveredResourceRequest request) { super(request); this.ipamResourceDiscoveryId = request.ipamResourceDiscoveryId; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.regionId = request.regionId; this.resourceRegionId = request.resourceRegionId; this.resourceType = request.resourceType; } /** * <p>The ID of the resource discovery instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-res-disco-jt5f2af2u6nk2z321****</p> */ public Builder ipamResourceDiscoveryId(String ipamResourceDiscoveryId) { this.putQueryParameter("IpamResourceDiscoveryId", ipamResourceDiscoveryId); this.ipamResourceDiscoveryId = ipamResourceDiscoveryId; return this; } /** * <p>The maximum number of entries on each page. Valid values: 1 to 100. Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>You do not need to specify this parameter for the first request.</li> * <li>You must specify the token that is obtained from the previous query as the value of <strong>NextToken</strong>.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The ID of the hosted region of the IPAM pool.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The region where resource discovery is performed.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder resourceRegionId(String resourceRegionId) { this.putQueryParameter("ResourceRegionId", resourceRegionId); this.resourceRegionId = resourceRegionId; return this; } /** * <p>The resource type. Valid values:</p> * <ul> * <li><strong>VPC</strong></li> * <li><strong>VSwitch</strong></li> * </ul> * * <strong>example:</strong> * <p>VPC</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public ListIpamDiscoveredResourceRequest build() { return new ListIpamDiscoveredResourceRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamDiscoveredResourceResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamDiscoveredResourceResponse} extends {@link TeaModel} * * <p>ListIpamDiscoveredResourceResponse</p> */ public class ListIpamDiscoveredResourceResponse 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 ListIpamDiscoveredResourceResponseBody body; private ListIpamDiscoveredResourceResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListIpamDiscoveredResourceResponse 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 ListIpamDiscoveredResourceResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListIpamDiscoveredResourceResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListIpamDiscoveredResourceResponseBody body); @Override ListIpamDiscoveredResourceResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListIpamDiscoveredResourceResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListIpamDiscoveredResourceResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListIpamDiscoveredResourceResponse 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(ListIpamDiscoveredResourceResponseBody body) { this.body = body; return this; } @Override public ListIpamDiscoveredResourceResponse build() { return new ListIpamDiscoveredResourceResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamDiscoveredResourceResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamDiscoveredResourceResponseBody} extends {@link TeaModel} * * <p>ListIpamDiscoveredResourceResponseBody</p> */ public class ListIpamDiscoveredResourceResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("IpamDiscoveredResources") private java.util.List<IpamDiscoveredResources> ipamDiscoveredResources; @com.aliyun.core.annotation.NameInMap("MaxResults") private Integer maxResults; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private ListIpamDiscoveredResourceResponseBody(Builder builder) { this.count = builder.count; this.ipamDiscoveredResources = builder.ipamDiscoveredResources; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListIpamDiscoveredResourceResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return ipamDiscoveredResources */ public java.util.List<IpamDiscoveredResources> getIpamDiscoveredResources() { return this.ipamDiscoveredResources; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private java.util.List<IpamDiscoveredResources> ipamDiscoveredResources; private Integer maxResults; private String nextToken; private String requestId; private Long totalCount; private Builder() { } private Builder(ListIpamDiscoveredResourceResponseBody model) { this.count = model.count; this.ipamDiscoveredResources = model.ipamDiscoveredResources; this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The maximum number of entries on each page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The list of resources.</p> */ public Builder ipamDiscoveredResources(java.util.List<IpamDiscoveredResources> ipamDiscoveredResources) { this.ipamDiscoveredResources = ipamDiscoveredResources; return this; } /** * <p>The maximum number of entries on each page. Valid values: 1 to 100. Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, there is no next page.</li> * <li>If a value of <strong>NextToken</strong> is returned, it indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>3748DEFF-68BE-5EED-9937-7C1D0C21BAB4</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>1000</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public ListIpamDiscoveredResourceResponseBody build() { return new ListIpamDiscoveredResourceResponseBody(this); } } /** * * {@link ListIpamDiscoveredResourceResponseBody} extends {@link TeaModel} * * <p>ListIpamDiscoveredResourceResponseBody</p> */ public static class IpCountDetail extends TeaModel { @com.aliyun.core.annotation.NameInMap("FreeIpCount") private String freeIpCount; @com.aliyun.core.annotation.NameInMap("TotalIpCount") private String totalIpCount; @com.aliyun.core.annotation.NameInMap("UsedIpCount") private String usedIpCount; private IpCountDetail(Builder builder) { this.freeIpCount = builder.freeIpCount; this.totalIpCount = builder.totalIpCount; this.usedIpCount = builder.usedIpCount; } public static Builder builder() { return new Builder(); } public static IpCountDetail create() { return builder().build(); } /** * @return freeIpCount */ public String getFreeIpCount() { return this.freeIpCount; } /** * @return totalIpCount */ public String getTotalIpCount() { return this.totalIpCount; } /** * @return usedIpCount */ public String getUsedIpCount() { return this.usedIpCount; } public static final class Builder { private String freeIpCount; private String totalIpCount; private String usedIpCount; private Builder() { } private Builder(IpCountDetail model) { this.freeIpCount = model.freeIpCount; this.totalIpCount = model.totalIpCount; this.usedIpCount = model.usedIpCount; } /** * FreeIpCount. */ public Builder freeIpCount(String freeIpCount) { this.freeIpCount = freeIpCount; return this; } /** * TotalIpCount. */ public Builder totalIpCount(String totalIpCount) { this.totalIpCount = totalIpCount; return this; } /** * UsedIpCount. */ public Builder usedIpCount(String usedIpCount) { this.usedIpCount = usedIpCount; return this; } public IpCountDetail build() { return new IpCountDetail(this); } } } /** * * {@link ListIpamDiscoveredResourceResponseBody} extends {@link TeaModel} * * <p>ListIpamDiscoveredResourceResponseBody</p> */ public static class IpamDiscoveredResources extends TeaModel { @com.aliyun.core.annotation.NameInMap("AliUid") private Long aliUid; @com.aliyun.core.annotation.NameInMap("Cidr") private String cidr; @com.aliyun.core.annotation.NameInMap("DiscoveryTime") private String discoveryTime; @com.aliyun.core.annotation.NameInMap("IpCountDetail") private IpCountDetail ipCountDetail; @com.aliyun.core.annotation.NameInMap("IpUsage") private String ipUsage; @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryId") private String ipamResourceDiscoveryId; @com.aliyun.core.annotation.NameInMap("ResourceId") private String resourceId; @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.NameInMap("ResourceRegionId") private String resourceRegionId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("SourceCidr") private String sourceCidr; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; private IpamDiscoveredResources(Builder builder) { this.aliUid = builder.aliUid; this.cidr = builder.cidr; this.discoveryTime = builder.discoveryTime; this.ipCountDetail = builder.ipCountDetail; this.ipUsage = builder.ipUsage; this.ipamResourceDiscoveryId = builder.ipamResourceDiscoveryId; this.resourceId = builder.resourceId; this.resourceOwnerId = builder.resourceOwnerId; this.resourceRegionId = builder.resourceRegionId; this.resourceType = builder.resourceType; this.sourceCidr = builder.sourceCidr; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static IpamDiscoveredResources create() { return builder().build(); } /** * @return aliUid */ public Long getAliUid() { return this.aliUid; } /** * @return cidr */ public String getCidr() { return this.cidr; } /** * @return discoveryTime */ public String getDiscoveryTime() { return this.discoveryTime; } /** * @return ipCountDetail */ public IpCountDetail getIpCountDetail() { return this.ipCountDetail; } /** * @return ipUsage */ public String getIpUsage() { return this.ipUsage; } /** * @return ipamResourceDiscoveryId */ public String getIpamResourceDiscoveryId() { return this.ipamResourceDiscoveryId; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceRegionId */ public String getResourceRegionId() { return this.resourceRegionId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return sourceCidr */ public String getSourceCidr() { return this.sourceCidr; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder { private Long aliUid; private String cidr; private String discoveryTime; private IpCountDetail ipCountDetail; private String ipUsage; private String ipamResourceDiscoveryId; private String resourceId; private Long resourceOwnerId; private String resourceRegionId; private String resourceType; private String sourceCidr; private String vpcId; private Builder() { } private Builder(IpamDiscoveredResources model) { this.aliUid = model.aliUid; this.cidr = model.cidr; this.discoveryTime = model.discoveryTime; this.ipCountDetail = model.ipCountDetail; this.ipUsage = model.ipUsage; this.ipamResourceDiscoveryId = model.ipamResourceDiscoveryId; this.resourceId = model.resourceId; this.resourceOwnerId = model.resourceOwnerId; this.resourceRegionId = model.resourceRegionId; this.resourceType = model.resourceType; this.sourceCidr = model.sourceCidr; this.vpcId = model.vpcId; } /** * <p>The ID of the Alibaba Cloud account.</p> * * <strong>example:</strong> * <p>132193271328****</p> */ public Builder aliUid(Long aliUid) { this.aliUid = aliUid; return this; } /** * <p>The CIDR block of the resource.</p> * * <strong>example:</strong> * <p>192.168.1.0/32</p> */ public Builder cidr(String cidr) { this.cidr = cidr; return this; } /** * <p>The time when the resource was discovered.</p> * <blockquote> * <p> If the resource has not been modified since it was created, the discovery time remains unchanged.</p> * </blockquote> * * <strong>example:</strong> * <p>2024-01-01 00:00:00</p> */ public Builder discoveryTime(String discoveryTime) { this.discoveryTime = discoveryTime; return this; } /** * IpCountDetail. */ public Builder ipCountDetail(IpCountDetail ipCountDetail) { this.ipCountDetail = ipCountDetail; return this; } /** * <p>The IP usage in decimal form.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder ipUsage(String ipUsage) { this.ipUsage = ipUsage; return this; } /** * <p>The ID of resource discovery instance.</p> * * <strong>example:</strong> * <p>ipam-res-disco-jt5f2af2u6nk2z321****</p> */ public Builder ipamResourceDiscoveryId(String ipamResourceDiscoveryId) { this.ipamResourceDiscoveryId = ipamResourceDiscoveryId; return this; } /** * <p>The ID of the resource.</p> * * <strong>example:</strong> * <p>vpc-uf611fp465c7dyb4z****</p> */ public Builder resourceId(String resourceId) { this.resourceId = resourceId; return this; } /** * <p>The ID of the Alibaba Cloud account to which the resource belongs.</p> * * <strong>example:</strong> * <p>132193271328****</p> */ public Builder resourceOwnerId(Long resourceOwnerId) { this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the region to which the resource belongs.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder resourceRegionId(String resourceRegionId) { this.resourceRegionId = resourceRegionId; return this; } /** * <p>The resource type. Valid values:</p> * <ul> * <li><strong>VPC</strong></li> * <li><strong>VSwitch</strong></li> * </ul> * * <strong>example:</strong> * <p>VPC</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The source CIDR block.</p> * * <strong>example:</strong> * <p>192.168.1.0/24</p> */ public Builder sourceCidr(String sourceCidr) { this.sourceCidr = sourceCidr; return this; } /** * <p>The ID of the VPC to which the resource belongs.</p> * * <strong>example:</strong> * <p>vpc-uf611fp465c7dyb4z****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } public IpamDiscoveredResources build() { return new IpamDiscoveredResources(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamPoolAllocationsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamPoolAllocationsRequest} extends {@link RequestModel} * * <p>ListIpamPoolAllocationsRequest</p> */ public class ListIpamPoolAllocationsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Cidr") private String cidr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolAllocationIds") private java.util.List<String> ipamPoolAllocationIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolAllocationName") private String ipamPoolAllocationName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolId") @com.aliyun.core.annotation.Validation(required = true) private String ipamPoolId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") private Integer maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private ListIpamPoolAllocationsRequest(Builder builder) { super(builder); this.cidr = builder.cidr; this.ipamPoolAllocationIds = builder.ipamPoolAllocationIds; this.ipamPoolAllocationName = builder.ipamPoolAllocationName; this.ipamPoolId = builder.ipamPoolId; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static ListIpamPoolAllocationsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return cidr */ public String getCidr() { return this.cidr; } /** * @return ipamPoolAllocationIds */ public java.util.List<String> getIpamPoolAllocationIds() { return this.ipamPoolAllocationIds; } /** * @return ipamPoolAllocationName */ public String getIpamPoolAllocationName() { return this.ipamPoolAllocationName; } /** * @return ipamPoolId */ public String getIpamPoolId() { return this.ipamPoolId; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<ListIpamPoolAllocationsRequest, Builder> { private String cidr; private java.util.List<String> ipamPoolAllocationIds; private String ipamPoolAllocationName; private String ipamPoolId; private Integer maxResults; private String nextToken; private String regionId; private Builder() { super(); } private Builder(ListIpamPoolAllocationsRequest request) { super(request); this.cidr = request.cidr; this.ipamPoolAllocationIds = request.ipamPoolAllocationIds; this.ipamPoolAllocationName = request.ipamPoolAllocationName; this.ipamPoolId = request.ipamPoolId; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.regionId = request.regionId; } /** * <p>Specifies whether to query allocations by specifying allocated CIDR blocks.</p> * <p>**</p> * <p><strong>Usage notes</strong> Only IPv4 CIDR blocks are supported.</p> * * <strong>example:</strong> * <p>192.168.1.0/24</p> */ public Builder cidr(String cidr) { this.putQueryParameter("Cidr", cidr); this.cidr = cidr; return this; } /** * <p>The IDs of the instances to which CIDR blocks are allocated from the IPAM pool.</p> */ public Builder ipamPoolAllocationIds(java.util.List<String> ipamPoolAllocationIds) { this.putQueryParameter("IpamPoolAllocationIds", ipamPoolAllocationIds); this.ipamPoolAllocationIds = ipamPoolAllocationIds; return this; } /** * <p>The name of allocations.</p> * * <strong>example:</strong> * <p>test name</p> */ public Builder ipamPoolAllocationName(String ipamPoolAllocationName) { this.putQueryParameter("IpamPoolAllocationName", ipamPoolAllocationName); this.ipamPoolAllocationName = ipamPoolAllocationName; return this; } /** * <p>The ID of the IPAM pool.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-pool-6rcq3tobayc20t****</p> */ public Builder ipamPoolId(String ipamPoolId) { this.putQueryParameter("IpamPoolId", ipamPoolId); this.ipamPoolId = ipamPoolId; return this; } /** * <p>The number of entries per page. Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, no next page exists.</li> * <li>If a value of <strong>NextToken</strong> is returned, the value indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The ID of the region where you want to perform the operation.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public ListIpamPoolAllocationsRequest build() { return new ListIpamPoolAllocationsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamPoolAllocationsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamPoolAllocationsResponse} extends {@link TeaModel} * * <p>ListIpamPoolAllocationsResponse</p> */ public class ListIpamPoolAllocationsResponse 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 ListIpamPoolAllocationsResponseBody body; private ListIpamPoolAllocationsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListIpamPoolAllocationsResponse 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 ListIpamPoolAllocationsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListIpamPoolAllocationsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListIpamPoolAllocationsResponseBody body); @Override ListIpamPoolAllocationsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListIpamPoolAllocationsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListIpamPoolAllocationsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListIpamPoolAllocationsResponse 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(ListIpamPoolAllocationsResponseBody body) { this.body = body; return this; } @Override public ListIpamPoolAllocationsResponse build() { return new ListIpamPoolAllocationsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamPoolAllocationsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamPoolAllocationsResponseBody} extends {@link TeaModel} * * <p>ListIpamPoolAllocationsResponseBody</p> */ public class ListIpamPoolAllocationsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Long count; @com.aliyun.core.annotation.NameInMap("IpamPoolAllocations") private java.util.List<IpamPoolAllocations> ipamPoolAllocations; @com.aliyun.core.annotation.NameInMap("MaxResults") private Long maxResults; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private ListIpamPoolAllocationsResponseBody(Builder builder) { this.count = builder.count; this.ipamPoolAllocations = builder.ipamPoolAllocations; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListIpamPoolAllocationsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Long getCount() { return this.count; } /** * @return ipamPoolAllocations */ public java.util.List<IpamPoolAllocations> getIpamPoolAllocations() { return this.ipamPoolAllocations; } /** * @return maxResults */ public Long getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private Long count; private java.util.List<IpamPoolAllocations> ipamPoolAllocations; private Long maxResults; private String nextToken; private String requestId; private Long totalCount; private Builder() { } private Builder(ListIpamPoolAllocationsResponseBody model) { this.count = model.count; this.ipamPoolAllocations = model.ipamPoolAllocations; this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder count(Long count) { this.count = count; return this; } /** * <p>The IDs of the instances to which CIDR blocks are allocated from the IPAM pool.</p> */ public Builder ipamPoolAllocations(java.util.List<IpamPoolAllocations> ipamPoolAllocations) { this.ipamPoolAllocations = ipamPoolAllocations; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Long maxResults) { this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, no next page exists.</li> * <li>If a value of <strong>NextToken</strong> is returned, the value indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>3748DEFF-68BE-5EED-9937-7C1D0C21BAB4</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>1000</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public ListIpamPoolAllocationsResponseBody build() { return new ListIpamPoolAllocationsResponseBody(this); } } /** * * {@link ListIpamPoolAllocationsResponseBody} extends {@link TeaModel} * * <p>ListIpamPoolAllocationsResponseBody</p> */ public static class IpamPoolAllocations extends TeaModel { @com.aliyun.core.annotation.NameInMap("Cidr") private String cidr; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("IpamPoolAllocationDescription") private String ipamPoolAllocationDescription; @com.aliyun.core.annotation.NameInMap("IpamPoolAllocationId") private String ipamPoolAllocationId; @com.aliyun.core.annotation.NameInMap("IpamPoolAllocationName") private String ipamPoolAllocationName; @com.aliyun.core.annotation.NameInMap("IpamPoolId") private String ipamPoolId; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceId") private String resourceId; @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.NameInMap("ResourceRegionId") private String resourceRegionId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("SourceCidr") private String sourceCidr; @com.aliyun.core.annotation.NameInMap("Status") private String status; private IpamPoolAllocations(Builder builder) { this.cidr = builder.cidr; this.creationTime = builder.creationTime; this.ipamPoolAllocationDescription = builder.ipamPoolAllocationDescription; this.ipamPoolAllocationId = builder.ipamPoolAllocationId; this.ipamPoolAllocationName = builder.ipamPoolAllocationName; this.ipamPoolId = builder.ipamPoolId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceOwnerId = builder.resourceOwnerId; this.resourceRegionId = builder.resourceRegionId; this.resourceType = builder.resourceType; this.sourceCidr = builder.sourceCidr; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static IpamPoolAllocations create() { return builder().build(); } /** * @return cidr */ public String getCidr() { return this.cidr; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return ipamPoolAllocationDescription */ public String getIpamPoolAllocationDescription() { return this.ipamPoolAllocationDescription; } /** * @return ipamPoolAllocationId */ public String getIpamPoolAllocationId() { return this.ipamPoolAllocationId; } /** * @return ipamPoolAllocationName */ public String getIpamPoolAllocationName() { return this.ipamPoolAllocationName; } /** * @return ipamPoolId */ public String getIpamPoolId() { return this.ipamPoolId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceRegionId */ public String getResourceRegionId() { return this.resourceRegionId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return sourceCidr */ public String getSourceCidr() { return this.sourceCidr; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String cidr; private String creationTime; private String ipamPoolAllocationDescription; private String ipamPoolAllocationId; private String ipamPoolAllocationName; private String ipamPoolId; private String regionId; private String resourceId; private Long resourceOwnerId; private String resourceRegionId; private String resourceType; private String sourceCidr; private String status; private Builder() { } private Builder(IpamPoolAllocations model) { this.cidr = model.cidr; this.creationTime = model.creationTime; this.ipamPoolAllocationDescription = model.ipamPoolAllocationDescription; this.ipamPoolAllocationId = model.ipamPoolAllocationId; this.ipamPoolAllocationName = model.ipamPoolAllocationName; this.ipamPoolId = model.ipamPoolId; this.regionId = model.regionId; this.resourceId = model.resourceId; this.resourceOwnerId = model.resourceOwnerId; this.resourceRegionId = model.resourceRegionId; this.resourceType = model.resourceType; this.sourceCidr = model.sourceCidr; this.status = model.status; } /** * <p>The allocated CIDR block.</p> * * <strong>example:</strong> * <p>192.168.1.0/24</p> */ public Builder cidr(String cidr) { this.cidr = cidr; return this; } /** * <p>The time when the instance was created.</p> * * <strong>example:</strong> * <p>2023-05-19T08:59:18Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The description of the allocation.</p> * * <strong>example:</strong> * <p>test description</p> */ public Builder ipamPoolAllocationDescription(String ipamPoolAllocationDescription) { this.ipamPoolAllocationDescription = ipamPoolAllocationDescription; return this; } /** * <p>The ID of the instance to which CIDR blocks are allocated from the IPAM pool.</p> * * <strong>example:</strong> * <p>ipam-pool-alloc-112za33e4****</p> */ public Builder ipamPoolAllocationId(String ipamPoolAllocationId) { this.ipamPoolAllocationId = ipamPoolAllocationId; return this; } /** * <p>The name of the allocation.</p> * * <strong>example:</strong> * <p>test name</p> */ public Builder ipamPoolAllocationName(String ipamPoolAllocationName) { this.ipamPoolAllocationName = ipamPoolAllocationName; return this; } /** * <p>The ID of the IPAM pool.</p> * * <strong>example:</strong> * <p>ipam-pool-6rcq3tobayc20t****</p> */ public Builder ipamPoolId(String ipamPoolId) { this.ipamPoolId = ipamPoolId; return this; } /** * <p>The region ID of the resource.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The ID of the resource to which the CIDR block is allocated.</p> * * <strong>example:</strong> * <p>vpc-bp16qjewdsunr41m1****</p> */ public Builder resourceId(String resourceId) { this.resourceId = resourceId; return this; } /** * <p>The ID of the Alibaba Cloud account to which the resource belongs.</p> * * <strong>example:</strong> * <p>132193271328****</p> */ public Builder resourceOwnerId(Long resourceOwnerId) { this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The effective region ID of the resource.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder resourceRegionId(String resourceRegionId) { this.resourceRegionId = resourceRegionId; return this; } /** * <p>The type of the resource to which the CIDR block is allocated. Valid values:</p> * <ul> * <li><strong>VPC</strong></li> * <li><strong>IpamPool</strong></li> * <li><strong>Custom</strong></li> * </ul> * * <strong>example:</strong> * <p>Custom</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The source CIDR block.</p> * * <strong>example:</strong> * <p>192.168.0.0/16</p> */ public Builder sourceCidr(String sourceCidr) { this.sourceCidr = sourceCidr; return this; } /** * <p>The status of the instance. Valid values:</p> * <ul> * <li><strong>Created</strong></li> * <li><strong>Deleted</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder status(String status) { this.status = status; return this; } public IpamPoolAllocations build() { return new IpamPoolAllocations(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamPoolCidrsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamPoolCidrsRequest} extends {@link RequestModel} * * <p>ListIpamPoolCidrsRequest</p> */ public class ListIpamPoolCidrsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Cidr") private String cidr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolId") @com.aliyun.core.annotation.Validation(required = true) private String ipamPoolId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") private Integer maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private ListIpamPoolCidrsRequest(Builder builder) { super(builder); this.cidr = builder.cidr; this.ipamPoolId = builder.ipamPoolId; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static ListIpamPoolCidrsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return cidr */ public String getCidr() { return this.cidr; } /** * @return ipamPoolId */ public String getIpamPoolId() { return this.ipamPoolId; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<ListIpamPoolCidrsRequest, Builder> { private String cidr; private String ipamPoolId; private Integer maxResults; private String nextToken; private String regionId; private Builder() { super(); } private Builder(ListIpamPoolCidrsRequest request) { super(request); this.cidr = request.cidr; this.ipamPoolId = request.ipamPoolId; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.regionId = request.regionId; } /** * <p>The provisioned CIDR block that you want to query.</p> * <blockquote> * <p> Only IPv4 CIDR blocks are supported.</p> * </blockquote> * * <strong>example:</strong> * <p>192.168.1.0/24</p> */ public Builder cidr(String cidr) { this.putQueryParameter("Cidr", cidr); this.cidr = cidr; return this; } /** * <p>The ID of the IPAM pool.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-pool-6rcq3tobayc20t****</p> */ public Builder ipamPoolId(String ipamPoolId) { this.putQueryParameter("IpamPoolId", ipamPoolId); this.ipamPoolId = ipamPoolId; return this; } /** * <p>The number of entries per page. Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, no next page exists.</li> * <li>If a value of <strong>NextToken</strong> is returned, the value indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The ID of the region where the IPAM instance is hosted.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public ListIpamPoolCidrsRequest build() { return new ListIpamPoolCidrsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamPoolCidrsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamPoolCidrsResponse} extends {@link TeaModel} * * <p>ListIpamPoolCidrsResponse</p> */ public class ListIpamPoolCidrsResponse 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 ListIpamPoolCidrsResponseBody body; private ListIpamPoolCidrsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListIpamPoolCidrsResponse 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 ListIpamPoolCidrsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListIpamPoolCidrsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListIpamPoolCidrsResponseBody body); @Override ListIpamPoolCidrsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListIpamPoolCidrsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListIpamPoolCidrsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListIpamPoolCidrsResponse 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(ListIpamPoolCidrsResponseBody body) { this.body = body; return this; } @Override public ListIpamPoolCidrsResponse build() { return new ListIpamPoolCidrsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamPoolCidrsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamPoolCidrsResponseBody} extends {@link TeaModel} * * <p>ListIpamPoolCidrsResponseBody</p> */ public class ListIpamPoolCidrsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Long count; @com.aliyun.core.annotation.NameInMap("IpamPoolCidrs") private java.util.List<IpamPoolCidrs> ipamPoolCidrs; @com.aliyun.core.annotation.NameInMap("MaxResults") private Long maxResults; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private ListIpamPoolCidrsResponseBody(Builder builder) { this.count = builder.count; this.ipamPoolCidrs = builder.ipamPoolCidrs; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListIpamPoolCidrsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Long getCount() { return this.count; } /** * @return ipamPoolCidrs */ public java.util.List<IpamPoolCidrs> getIpamPoolCidrs() { return this.ipamPoolCidrs; } /** * @return maxResults */ public Long getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private Long count; private java.util.List<IpamPoolCidrs> ipamPoolCidrs; private Long maxResults; private String nextToken; private String requestId; private Long totalCount; private Builder() { } private Builder(ListIpamPoolCidrsResponseBody model) { this.count = model.count; this.ipamPoolCidrs = model.ipamPoolCidrs; this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder count(Long count) { this.count = count; return this; } /** * <p>The IDs of IPAM pools.</p> */ public Builder ipamPoolCidrs(java.util.List<IpamPoolCidrs> ipamPoolCidrs) { this.ipamPoolCidrs = ipamPoolCidrs; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Long maxResults) { this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, no next page exists.</li> * <li>If a value of <strong>NextToken</strong> is returned, the value indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>9E7CCB95-62E0-534D-9B9A-71F27E8B71B1</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>1000</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public ListIpamPoolCidrsResponseBody build() { return new ListIpamPoolCidrsResponseBody(this); } } /** * * {@link ListIpamPoolCidrsResponseBody} extends {@link TeaModel} * * <p>ListIpamPoolCidrsResponseBody</p> */ public static class IpamPoolCidrs extends TeaModel { @com.aliyun.core.annotation.NameInMap("Cidr") private String cidr; @com.aliyun.core.annotation.NameInMap("IpamPoolId") private String ipamPoolId; @com.aliyun.core.annotation.NameInMap("Status") private String status; private IpamPoolCidrs(Builder builder) { this.cidr = builder.cidr; this.ipamPoolId = builder.ipamPoolId; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static IpamPoolCidrs create() { return builder().build(); } /** * @return cidr */ public String getCidr() { return this.cidr; } /** * @return ipamPoolId */ public String getIpamPoolId() { return this.ipamPoolId; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String cidr; private String ipamPoolId; private String status; private Builder() { } private Builder(IpamPoolCidrs model) { this.cidr = model.cidr; this.ipamPoolId = model.ipamPoolId; this.status = model.status; } /** * <p>The provisioned CIDR block.</p> * * <strong>example:</strong> * <p>192.168.1.0/24</p> */ public Builder cidr(String cidr) { this.cidr = cidr; return this; } /** * <p>The ID of the IPAM pool.</p> * * <strong>example:</strong> * <p>ipam-pool-6rcq3tobayc20t****</p> */ public Builder ipamPoolId(String ipamPoolId) { this.ipamPoolId = ipamPoolId; return this; } /** * <p>The status of the CIDR block provisioned to the IPAM pool. Valid values:</p> * <ul> * <li><strong>Created</strong></li> * <li><strong>Deleted</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder status(String status) { this.status = status; return this; } public IpamPoolCidrs build() { return new IpamPoolCidrs(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamPoolsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamPoolsRequest} extends {@link RequestModel} * * <p>ListIpamPoolsRequest</p> */ public class ListIpamPoolsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpVersion") private String ipVersion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolIds") private java.util.List<String> ipamPoolIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolName") private String ipamPoolName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamScopeId") private String ipamScopeId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ipv6Isp") private String ipv6Isp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IsShared") private Boolean isShared; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Integer maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PoolRegionId") private String poolRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceIpamPoolId") private String sourceIpamPoolId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; private ListIpamPoolsRequest(Builder builder) { super(builder); this.ipVersion = builder.ipVersion; this.ipamPoolIds = builder.ipamPoolIds; this.ipamPoolName = builder.ipamPoolName; this.ipamScopeId = builder.ipamScopeId; this.ipv6Isp = builder.ipv6Isp; this.isShared = builder.isShared; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.poolRegionId = builder.poolRegionId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.sourceIpamPoolId = builder.sourceIpamPoolId; this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static ListIpamPoolsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ipVersion */ public String getIpVersion() { return this.ipVersion; } /** * @return ipamPoolIds */ public java.util.List<String> getIpamPoolIds() { return this.ipamPoolIds; } /** * @return ipamPoolName */ public String getIpamPoolName() { return this.ipamPoolName; } /** * @return ipamScopeId */ public String getIpamScopeId() { return this.ipamScopeId; } /** * @return ipv6Isp */ public String getIpv6Isp() { return this.ipv6Isp; } /** * @return isShared */ public Boolean getIsShared() { return this.isShared; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return poolRegionId */ public String getPoolRegionId() { return this.poolRegionId; } /** * @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 resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return sourceIpamPoolId */ public String getSourceIpamPoolId() { return this.sourceIpamPoolId; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder extends Request.Builder<ListIpamPoolsRequest, Builder> { private String ipVersion; private java.util.List<String> ipamPoolIds; private String ipamPoolName; private String ipamScopeId; private String ipv6Isp; private Boolean isShared; private Integer maxResults; private String nextToken; private String ownerAccount; private Long ownerId; private String poolRegionId; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private String sourceIpamPoolId; private java.util.List<Tags> tags; private Builder() { super(); } private Builder(ListIpamPoolsRequest request) { super(request); this.ipVersion = request.ipVersion; this.ipamPoolIds = request.ipamPoolIds; this.ipamPoolName = request.ipamPoolName; this.ipamScopeId = request.ipamScopeId; this.ipv6Isp = request.ipv6Isp; this.isShared = request.isShared; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.poolRegionId = request.poolRegionId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.sourceIpamPoolId = request.sourceIpamPoolId; this.tags = request.tags; } /** * IpVersion. */ public Builder ipVersion(String ipVersion) { this.putQueryParameter("IpVersion", ipVersion); this.ipVersion = ipVersion; return this; } /** * <p>The IDs of IPAM pools. Valid values of N: 1 to 100. A maximum of 100 IPAM pools can be queried at a time.</p> */ public Builder ipamPoolIds(java.util.List<String> ipamPoolIds) { this.putQueryParameter("IpamPoolIds", ipamPoolIds); this.ipamPoolIds = ipamPoolIds; return this; } /** * <p>The name of the IPAM pool. You can enter at most 20 names.</p> * <p>It must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipamPoolName(String ipamPoolName) { this.putQueryParameter("IpamPoolName", ipamPoolName); this.ipamPoolName = ipamPoolName; return this; } /** * <p>The ID of the IPAM scope.</p> * * <strong>example:</strong> * <p>ipam-scope-glfmcyldpm8lsy****</p> */ public Builder ipamScopeId(String ipamScopeId) { this.putQueryParameter("IpamScopeId", ipamScopeId); this.ipamScopeId = ipamScopeId; return this; } /** * Ipv6Isp. */ public Builder ipv6Isp(String ipv6Isp) { this.putQueryParameter("Ipv6Isp", ipv6Isp); this.ipv6Isp = ipv6Isp; return this; } /** * <p>Whether it is a shared pool.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder isShared(Boolean isShared) { this.putQueryParameter("IsShared", isShared); this.isShared = isShared; return this; } /** * <p>The number of entries per page. Valid values: 1 to 100. Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If NextToken is empty, no next page exists.</li> * <li>You must specify the token that is obtained from the previous query as the value of NextToken.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The effective region of the IPAM pool.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder poolRegionId(String poolRegionId) { this.putQueryParameter("PoolRegionId", poolRegionId); this.poolRegionId = poolRegionId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the IPAM pool belongs.</p> * * <strong>example:</strong> * <p>rg-aek2sermdd6****</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; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the source IPAM pool.</p> * * <strong>example:</strong> * <p>ipam-pool-lfnwi4jok1ss0g****</p> */ public Builder sourceIpamPoolId(String sourceIpamPoolId) { this.putQueryParameter("SourceIpamPoolId", sourceIpamPoolId); this.sourceIpamPoolId = sourceIpamPoolId; return this; } /** * <p>The tag information.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } @Override public ListIpamPoolsRequest build() { return new ListIpamPoolsRequest(this); } } /** * * {@link ListIpamPoolsRequest} extends {@link TeaModel} * * <p>ListIpamPoolsRequest</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key. You can specify at most 20 tag keys. It cannot be an empty string.</p> * <p>The tag key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The tag key must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. The tag key cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value. You can specify at most 20 tag values. It can be an empty string.</p> * <p>The tag value can be up to 128 characters in length. It must start with a letter and can contain digits, periods (.), underscores (_), and hyphens (-). It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamPoolsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamPoolsResponse} extends {@link TeaModel} * * <p>ListIpamPoolsResponse</p> */ public class ListIpamPoolsResponse 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 ListIpamPoolsResponseBody body; private ListIpamPoolsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListIpamPoolsResponse 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 ListIpamPoolsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListIpamPoolsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListIpamPoolsResponseBody body); @Override ListIpamPoolsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListIpamPoolsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListIpamPoolsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListIpamPoolsResponse 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(ListIpamPoolsResponseBody body) { this.body = body; return this; } @Override public ListIpamPoolsResponse build() { return new ListIpamPoolsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamPoolsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamPoolsResponseBody} extends {@link TeaModel} * * <p>ListIpamPoolsResponseBody</p> */ public class ListIpamPoolsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Long count; @com.aliyun.core.annotation.NameInMap("IpamPools") private java.util.List<IpamPools> ipamPools; @com.aliyun.core.annotation.NameInMap("MaxResults") private Long maxResults; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private ListIpamPoolsResponseBody(Builder builder) { this.count = builder.count; this.ipamPools = builder.ipamPools; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListIpamPoolsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Long getCount() { return this.count; } /** * @return ipamPools */ public java.util.List<IpamPools> getIpamPools() { return this.ipamPools; } /** * @return maxResults */ public Long getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private Long count; private java.util.List<IpamPools> ipamPools; private Long maxResults; private String nextToken; private String requestId; private Long totalCount; private Builder() { } private Builder(ListIpamPoolsResponseBody model) { this.count = model.count; this.ipamPools = model.ipamPools; this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder count(Long count) { this.count = count; return this; } /** * <p>The IPAM pools.</p> */ public Builder ipamPools(java.util.List<IpamPools> ipamPools) { this.ipamPools = ipamPools; return this; } /** * <p>The number of entries per page. Valid values: 1 to 100. Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Long maxResults) { this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, no next page exists.</li> * <li>If a value of <strong>NextToken</strong> is returned, the value indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>B54867DE-83DC-56B4-A57E-69A03119D0B1</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>1000</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public ListIpamPoolsResponseBody build() { return new ListIpamPoolsResponseBody(this); } } /** * * {@link ListIpamPoolsResponseBody} extends {@link TeaModel} * * <p>ListIpamPoolsResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link ListIpamPoolsResponseBody} extends {@link TeaModel} * * <p>ListIpamPoolsResponseBody</p> */ public static class IpamPools extends TeaModel { @com.aliyun.core.annotation.NameInMap("AllocationDefaultCidrMask") private Integer allocationDefaultCidrMask; @com.aliyun.core.annotation.NameInMap("AllocationMaxCidrMask") private Integer allocationMaxCidrMask; @com.aliyun.core.annotation.NameInMap("AllocationMinCidrMask") private Integer allocationMinCidrMask; @com.aliyun.core.annotation.NameInMap("AutoImport") private Boolean autoImport; @com.aliyun.core.annotation.NameInMap("Cidrs") private java.util.List<String> cidrs; @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("HasSubPool") private Boolean hasSubPool; @com.aliyun.core.annotation.NameInMap("IpVersion") private String ipVersion; @com.aliyun.core.annotation.NameInMap("IpamId") private String ipamId; @com.aliyun.core.annotation.NameInMap("IpamPoolDescription") private String ipamPoolDescription; @com.aliyun.core.annotation.NameInMap("IpamPoolId") private String ipamPoolId; @com.aliyun.core.annotation.NameInMap("IpamPoolName") private String ipamPoolName; @com.aliyun.core.annotation.NameInMap("IpamRegionId") private String ipamRegionId; @com.aliyun.core.annotation.NameInMap("IpamScopeId") private String ipamScopeId; @com.aliyun.core.annotation.NameInMap("IpamScopeType") private String ipamScopeType; @com.aliyun.core.annotation.NameInMap("Ipv6Isp") private String ipv6Isp; @com.aliyun.core.annotation.NameInMap("IsShared") private Boolean isShared; @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.NameInMap("PoolDepth") private Integer poolDepth; @com.aliyun.core.annotation.NameInMap("PoolRegionId") private String poolRegionId; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("SourceIpamPoolId") private String sourceIpamPoolId; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; private IpamPools(Builder builder) { this.allocationDefaultCidrMask = builder.allocationDefaultCidrMask; this.allocationMaxCidrMask = builder.allocationMaxCidrMask; this.allocationMinCidrMask = builder.allocationMinCidrMask; this.autoImport = builder.autoImport; this.cidrs = builder.cidrs; this.createTime = builder.createTime; this.hasSubPool = builder.hasSubPool; this.ipVersion = builder.ipVersion; this.ipamId = builder.ipamId; this.ipamPoolDescription = builder.ipamPoolDescription; this.ipamPoolId = builder.ipamPoolId; this.ipamPoolName = builder.ipamPoolName; this.ipamRegionId = builder.ipamRegionId; this.ipamScopeId = builder.ipamScopeId; this.ipamScopeType = builder.ipamScopeType; this.ipv6Isp = builder.ipv6Isp; this.isShared = builder.isShared; this.ownerId = builder.ownerId; this.poolDepth = builder.poolDepth; this.poolRegionId = builder.poolRegionId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.sourceIpamPoolId = builder.sourceIpamPoolId; this.status = builder.status; this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static IpamPools create() { return builder().build(); } /** * @return allocationDefaultCidrMask */ public Integer getAllocationDefaultCidrMask() { return this.allocationDefaultCidrMask; } /** * @return allocationMaxCidrMask */ public Integer getAllocationMaxCidrMask() { return this.allocationMaxCidrMask; } /** * @return allocationMinCidrMask */ public Integer getAllocationMinCidrMask() { return this.allocationMinCidrMask; } /** * @return autoImport */ public Boolean getAutoImport() { return this.autoImport; } /** * @return cidrs */ public java.util.List<String> getCidrs() { return this.cidrs; } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return hasSubPool */ public Boolean getHasSubPool() { return this.hasSubPool; } /** * @return ipVersion */ public String getIpVersion() { return this.ipVersion; } /** * @return ipamId */ public String getIpamId() { return this.ipamId; } /** * @return ipamPoolDescription */ public String getIpamPoolDescription() { return this.ipamPoolDescription; } /** * @return ipamPoolId */ public String getIpamPoolId() { return this.ipamPoolId; } /** * @return ipamPoolName */ public String getIpamPoolName() { return this.ipamPoolName; } /** * @return ipamRegionId */ public String getIpamRegionId() { return this.ipamRegionId; } /** * @return ipamScopeId */ public String getIpamScopeId() { return this.ipamScopeId; } /** * @return ipamScopeType */ public String getIpamScopeType() { return this.ipamScopeType; } /** * @return ipv6Isp */ public String getIpv6Isp() { return this.ipv6Isp; } /** * @return isShared */ public Boolean getIsShared() { return this.isShared; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return poolDepth */ public Integer getPoolDepth() { return this.poolDepth; } /** * @return poolRegionId */ public String getPoolRegionId() { return this.poolRegionId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return sourceIpamPoolId */ public String getSourceIpamPoolId() { return this.sourceIpamPoolId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder { private Integer allocationDefaultCidrMask; private Integer allocationMaxCidrMask; private Integer allocationMinCidrMask; private Boolean autoImport; private java.util.List<String> cidrs; private String createTime; private Boolean hasSubPool; private String ipVersion; private String ipamId; private String ipamPoolDescription; private String ipamPoolId; private String ipamPoolName; private String ipamRegionId; private String ipamScopeId; private String ipamScopeType; private String ipv6Isp; private Boolean isShared; private Long ownerId; private Integer poolDepth; private String poolRegionId; private String regionId; private String resourceGroupId; private String sourceIpamPoolId; private String status; private java.util.List<Tags> tags; private Builder() { } private Builder(IpamPools model) { this.allocationDefaultCidrMask = model.allocationDefaultCidrMask; this.allocationMaxCidrMask = model.allocationMaxCidrMask; this.allocationMinCidrMask = model.allocationMinCidrMask; this.autoImport = model.autoImport; this.cidrs = model.cidrs; this.createTime = model.createTime; this.hasSubPool = model.hasSubPool; this.ipVersion = model.ipVersion; this.ipamId = model.ipamId; this.ipamPoolDescription = model.ipamPoolDescription; this.ipamPoolId = model.ipamPoolId; this.ipamPoolName = model.ipamPoolName; this.ipamRegionId = model.ipamRegionId; this.ipamScopeId = model.ipamScopeId; this.ipamScopeType = model.ipamScopeType; this.ipv6Isp = model.ipv6Isp; this.isShared = model.isShared; this.ownerId = model.ownerId; this.poolDepth = model.poolDepth; this.poolRegionId = model.poolRegionId; this.regionId = model.regionId; this.resourceGroupId = model.resourceGroupId; this.sourceIpamPoolId = model.sourceIpamPoolId; this.status = model.status; this.tags = model.tags; } /** * <p>The default network mask assigned to the IPAM pool.</p> * <p>An IPv4 mask must be <strong>0 to 32</strong> bits in length.</p> * * <strong>example:</strong> * <p>28</p> */ public Builder allocationDefaultCidrMask(Integer allocationDefaultCidrMask) { this.allocationDefaultCidrMask = allocationDefaultCidrMask; return this; } /** * <p>The maximum network mask assigned to the IPAM pool.</p> * <p>An IPv4 mask must be <strong>0 to 32</strong> bits in length.</p> * * <strong>example:</strong> * <p>32</p> */ public Builder allocationMaxCidrMask(Integer allocationMaxCidrMask) { this.allocationMaxCidrMask = allocationMaxCidrMask; return this; } /** * <p>The minimum network mask assigned to the IPAM pool.</p> * <p>An IPv4 mask must be <strong>0 to 32</strong> bits in length.</p> * * <strong>example:</strong> * <p>8</p> */ public Builder allocationMinCidrMask(Integer allocationMinCidrMask) { this.allocationMinCidrMask = allocationMinCidrMask; return this; } /** * <p>Whether the pool has the auto-import feature enabled.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder autoImport(Boolean autoImport) { this.autoImport = autoImport; return this; } /** * Cidrs. */ public Builder cidrs(java.util.List<String> cidrs) { this.cidrs = cidrs; return this; } /** * <p>The time when the IPAM pool was created.</p> * * <strong>example:</strong> * <p>2023-04-19T16:49:01Z</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>Indicates whether the pool is a subpool. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder hasSubPool(Boolean hasSubPool) { this.hasSubPool = hasSubPool; return this; } /** * <p>The IP version. Only <strong>IPv4</strong> may be returned.</p> * * <strong>example:</strong> * <p>IPv4</p> */ public Builder ipVersion(String ipVersion) { this.ipVersion = ipVersion; return this; } /** * <p>The ID of the IPAM.</p> * * <strong>example:</strong> * <p>ipam-b5mtlx3q7xcnyr****</p> */ public Builder ipamId(String ipamId) { this.ipamId = ipamId; return this; } /** * <p>The description of the IPAM pool.</p> * * <strong>example:</strong> * <p>test description</p> */ public Builder ipamPoolDescription(String ipamPoolDescription) { this.ipamPoolDescription = ipamPoolDescription; return this; } /** * <p>The ID of the IPAM pool.</p> * * <strong>example:</strong> * <p>ipam-pool-6rcq3tobayc20t****</p> */ public Builder ipamPoolId(String ipamPoolId) { this.ipamPoolId = ipamPoolId; return this; } /** * <p>The name of the IPAM pool.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipamPoolName(String ipamPoolName) { this.ipamPoolName = ipamPoolName; return this; } /** * <p>The ID of the region where the IPAM to which the IPAM pool belongs is hosted.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder ipamRegionId(String ipamRegionId) { this.ipamRegionId = ipamRegionId; return this; } /** * <p>The ID of the IPAM scope.</p> * * <strong>example:</strong> * <p>ipam-scope-glfmcyldpm8lsy****</p> */ public Builder ipamScopeId(String ipamScopeId) { this.ipamScopeId = ipamScopeId; return this; } /** * <p>The type of the IPAM scope. Valid values:</p> * <ul> * <li><strong>public</strong></li> * <li><strong>private</strong></li> * </ul> * * <strong>example:</strong> * <p>private</p> */ public Builder ipamScopeType(String ipamScopeType) { this.ipamScopeType = ipamScopeType; return this; } /** * Ipv6Isp. */ public Builder ipv6Isp(String ipv6Isp) { this.ipv6Isp = ipv6Isp; return this; } /** * <p>Whether it is a shared pool.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder isShared(Boolean isShared) { this.isShared = isShared; return this; } /** * <p>The Alibaba Cloud account of the owner for the IPAM pool.</p> * * <strong>example:</strong> * <p>1210123456******</p> */ public Builder ownerId(Long ownerId) { this.ownerId = ownerId; return this; } /** * <p>The depth of the IPAM pool. Valid values: <strong>0 to 10</strong>.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder poolDepth(Integer poolDepth) { this.poolDepth = poolDepth; return this; } /** * <p>The effective region of the IPAM pool. The ID of the effective region for the IPAM pool.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder poolRegionId(String poolRegionId) { this.poolRegionId = poolRegionId; return this; } /** * <p>The ID of the region where the operation is called.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The resource group ID.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The ID of the source IPAM pool.</p> * * <strong>example:</strong> * <p>ipam-pool-lfnwi4jok1ss0g****</p> */ public Builder sourceIpamPoolId(String sourceIpamPoolId) { this.sourceIpamPoolId = sourceIpamPoolId; return this; } /** * <p>The status of the IPAM pool. Valid values:</p> * <ul> * <li><strong>Creating</strong></li> * <li><strong>Created</strong>: indicates that the creation is complete.</li> * <li><strong>Modifying</strong></li> * <li><strong>Deleting</strong></li> * <li><strong>Deleted</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tag list.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } public IpamPools build() { return new IpamPools(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamResourceCidrsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamResourceCidrsRequest} extends {@link RequestModel} * * <p>ListIpamResourceCidrsRequest</p> */ public class ListIpamResourceCidrsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolId") private String ipamPoolId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamScopeId") private String ipamScopeId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") private Integer maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceId") private String resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; private ListIpamResourceCidrsRequest(Builder builder) { super(builder); this.ipamPoolId = builder.ipamPoolId; this.ipamScopeId = builder.ipamScopeId; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceOwnerId = builder.resourceOwnerId; this.resourceType = builder.resourceType; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static ListIpamResourceCidrsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ipamPoolId */ public String getIpamPoolId() { return this.ipamPoolId; } /** * @return ipamScopeId */ public String getIpamScopeId() { return this.ipamScopeId; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder extends Request.Builder<ListIpamResourceCidrsRequest, Builder> { private String ipamPoolId; private String ipamScopeId; private Integer maxResults; private String nextToken; private String regionId; private String resourceId; private Long resourceOwnerId; private String resourceType; private String vpcId; private Builder() { super(); } private Builder(ListIpamResourceCidrsRequest request) { super(request); this.ipamPoolId = request.ipamPoolId; this.ipamScopeId = request.ipamScopeId; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceOwnerId = request.resourceOwnerId; this.resourceType = request.resourceType; this.vpcId = request.vpcId; } /** * <p>The ID of the IPAM pool.</p> * <blockquote> * <p> You must specify at least one of <strong>IpamScopeId</strong> and <strong>IpamPoolId</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>ipam-pool-6rcq3tobayc20t****</p> */ public Builder ipamPoolId(String ipamPoolId) { this.putQueryParameter("IpamPoolId", ipamPoolId); this.ipamPoolId = ipamPoolId; return this; } /** * <p>The ID of the IPAM scope.</p> * <blockquote> * <p> You must specify at least one of <strong>IpamScopeId</strong> and <strong>IpamPoolId</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>ipam-scope-glfmcyldpm8lsy****</p> */ public Builder ipamScopeId(String ipamScopeId) { this.putQueryParameter("IpamScopeId", ipamScopeId); this.ipamScopeId = ipamScopeId; return this; } /** * <p>The number of entries per page. Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>You do not need to specify this parameter for the first request.</li> * <li>You must specify the token that is obtained from the previous query as the value of <strong>NextToken</strong>.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The ID of the region where the IPAM instance is hosted.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The resource ID.</p> * * <strong>example:</strong> * <p>vpc-bp16qjewdsunr41m1****</p> */ public Builder resourceId(String resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The type of resource. Valid values:</p> * <ul> * <li><strong>VPC</strong></li> * <li><strong>VSwitch</strong></li> * </ul> * * <strong>example:</strong> * <p>VPC</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The VPC ID.</p> * * <strong>example:</strong> * <p>vpc-bp1fjfnrg3av6zb9e****</p> */ public Builder vpcId(String vpcId) { this.putQueryParameter("VpcId", vpcId); this.vpcId = vpcId; return this; } @Override public ListIpamResourceCidrsRequest build() { return new ListIpamResourceCidrsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamResourceCidrsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamResourceCidrsResponse} extends {@link TeaModel} * * <p>ListIpamResourceCidrsResponse</p> */ public class ListIpamResourceCidrsResponse 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 ListIpamResourceCidrsResponseBody body; private ListIpamResourceCidrsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListIpamResourceCidrsResponse 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 ListIpamResourceCidrsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListIpamResourceCidrsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListIpamResourceCidrsResponseBody body); @Override ListIpamResourceCidrsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListIpamResourceCidrsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListIpamResourceCidrsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListIpamResourceCidrsResponse 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(ListIpamResourceCidrsResponseBody body) { this.body = body; return this; } @Override public ListIpamResourceCidrsResponse build() { return new ListIpamResourceCidrsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamResourceCidrsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamResourceCidrsResponseBody} extends {@link TeaModel} * * <p>ListIpamResourceCidrsResponseBody</p> */ public class ListIpamResourceCidrsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Long count; @com.aliyun.core.annotation.NameInMap("IpamResourceCidrs") private java.util.List<IpamResourceCidrs> ipamResourceCidrs; @com.aliyun.core.annotation.NameInMap("MaxResults") private Long maxResults; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private ListIpamResourceCidrsResponseBody(Builder builder) { this.count = builder.count; this.ipamResourceCidrs = builder.ipamResourceCidrs; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListIpamResourceCidrsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Long getCount() { return this.count; } /** * @return ipamResourceCidrs */ public java.util.List<IpamResourceCidrs> getIpamResourceCidrs() { return this.ipamResourceCidrs; } /** * @return maxResults */ public Long getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private Long count; private java.util.List<IpamResourceCidrs> ipamResourceCidrs; private Long maxResults; private String nextToken; private String requestId; private Long totalCount; private Builder() { } private Builder(ListIpamResourceCidrsResponseBody model) { this.count = model.count; this.ipamResourceCidrs = model.ipamResourceCidrs; this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder count(Long count) { this.count = count; return this; } /** * <p>The list of resources in the IPAM pool.</p> */ public Builder ipamResourceCidrs(java.util.List<IpamResourceCidrs> ipamResourceCidrs) { this.ipamResourceCidrs = ipamResourceCidrs; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Long maxResults) { this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, no next page exists.</li> * <li>If a value of <strong>NextToken</strong> is returned, the value indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>49A9DE56-B68C-5FFC-BC06-509D086F287C</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>1000</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public ListIpamResourceCidrsResponseBody build() { return new ListIpamResourceCidrsResponseBody(this); } } /** * * {@link ListIpamResourceCidrsResponseBody} extends {@link TeaModel} * * <p>ListIpamResourceCidrsResponseBody</p> */ public static class IpCountDetail extends TeaModel { @com.aliyun.core.annotation.NameInMap("FreeIpCount") private String freeIpCount; @com.aliyun.core.annotation.NameInMap("TotalIpCount") private String totalIpCount; @com.aliyun.core.annotation.NameInMap("UsedIpCount") private String usedIpCount; private IpCountDetail(Builder builder) { this.freeIpCount = builder.freeIpCount; this.totalIpCount = builder.totalIpCount; this.usedIpCount = builder.usedIpCount; } public static Builder builder() { return new Builder(); } public static IpCountDetail create() { return builder().build(); } /** * @return freeIpCount */ public String getFreeIpCount() { return this.freeIpCount; } /** * @return totalIpCount */ public String getTotalIpCount() { return this.totalIpCount; } /** * @return usedIpCount */ public String getUsedIpCount() { return this.usedIpCount; } public static final class Builder { private String freeIpCount; private String totalIpCount; private String usedIpCount; private Builder() { } private Builder(IpCountDetail model) { this.freeIpCount = model.freeIpCount; this.totalIpCount = model.totalIpCount; this.usedIpCount = model.usedIpCount; } /** * FreeIpCount. */ public Builder freeIpCount(String freeIpCount) { this.freeIpCount = freeIpCount; return this; } /** * TotalIpCount. */ public Builder totalIpCount(String totalIpCount) { this.totalIpCount = totalIpCount; return this; } /** * UsedIpCount. */ public Builder usedIpCount(String usedIpCount) { this.usedIpCount = usedIpCount; return this; } public IpCountDetail build() { return new IpCountDetail(this); } } } /** * * {@link ListIpamResourceCidrsResponseBody} extends {@link TeaModel} * * <p>ListIpamResourceCidrsResponseBody</p> */ public static class OverlapDetail extends TeaModel { @com.aliyun.core.annotation.NameInMap("OverlapResourceCidr") private String overlapResourceCidr; @com.aliyun.core.annotation.NameInMap("OverlapResourceId") private String overlapResourceId; @com.aliyun.core.annotation.NameInMap("OverlapResourceRegion") private String overlapResourceRegion; private OverlapDetail(Builder builder) { this.overlapResourceCidr = builder.overlapResourceCidr; this.overlapResourceId = builder.overlapResourceId; this.overlapResourceRegion = builder.overlapResourceRegion; } public static Builder builder() { return new Builder(); } public static OverlapDetail create() { return builder().build(); } /** * @return overlapResourceCidr */ public String getOverlapResourceCidr() { return this.overlapResourceCidr; } /** * @return overlapResourceId */ public String getOverlapResourceId() { return this.overlapResourceId; } /** * @return overlapResourceRegion */ public String getOverlapResourceRegion() { return this.overlapResourceRegion; } public static final class Builder { private String overlapResourceCidr; private String overlapResourceId; private String overlapResourceRegion; private Builder() { } private Builder(OverlapDetail model) { this.overlapResourceCidr = model.overlapResourceCidr; this.overlapResourceId = model.overlapResourceId; this.overlapResourceRegion = model.overlapResourceRegion; } /** * <p>The CIDR that overlaps with the current resource.</p> * * <strong>example:</strong> * <p>192.168.1.0/24</p> */ public Builder overlapResourceCidr(String overlapResourceCidr) { this.overlapResourceCidr = overlapResourceCidr; return this; } /** * <p>Instance ID that overlaps with the current resource.</p> * * <strong>example:</strong> * <p>vpc-aq3fjgnig5av6jb8d****</p> */ public Builder overlapResourceId(String overlapResourceId) { this.overlapResourceId = overlapResourceId; return this; } /** * <p>The region of instance that overlaps with the current resource.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder overlapResourceRegion(String overlapResourceRegion) { this.overlapResourceRegion = overlapResourceRegion; return this; } public OverlapDetail build() { return new OverlapDetail(this); } } } /** * * {@link ListIpamResourceCidrsResponseBody} extends {@link TeaModel} * * <p>ListIpamResourceCidrsResponseBody</p> */ public static class IpamResourceCidrs extends TeaModel { @com.aliyun.core.annotation.NameInMap("AliUid") private Long aliUid; @com.aliyun.core.annotation.NameInMap("Cidr") private String cidr; @com.aliyun.core.annotation.NameInMap("ComplianceStatus") private String complianceStatus; @com.aliyun.core.annotation.NameInMap("IpCountDetail") private IpCountDetail ipCountDetail; @com.aliyun.core.annotation.NameInMap("IpUsage") private String ipUsage; @com.aliyun.core.annotation.NameInMap("IpamAllocationId") private String ipamAllocationId; @com.aliyun.core.annotation.NameInMap("IpamId") private String ipamId; @com.aliyun.core.annotation.NameInMap("IpamPoolId") private String ipamPoolId; @com.aliyun.core.annotation.NameInMap("IpamScopeId") private String ipamScopeId; @com.aliyun.core.annotation.NameInMap("ManagementStatus") private String managementStatus; @com.aliyun.core.annotation.NameInMap("OverlapDetail") private java.util.List<OverlapDetail> overlapDetail; @com.aliyun.core.annotation.NameInMap("OverlapStatus") private String overlapStatus; @com.aliyun.core.annotation.NameInMap("ResourceId") private String resourceId; @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.NameInMap("ResourceRegionId") private String resourceRegionId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("SourceCidr") private String sourceCidr; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; private IpamResourceCidrs(Builder builder) { this.aliUid = builder.aliUid; this.cidr = builder.cidr; this.complianceStatus = builder.complianceStatus; this.ipCountDetail = builder.ipCountDetail; this.ipUsage = builder.ipUsage; this.ipamAllocationId = builder.ipamAllocationId; this.ipamId = builder.ipamId; this.ipamPoolId = builder.ipamPoolId; this.ipamScopeId = builder.ipamScopeId; this.managementStatus = builder.managementStatus; this.overlapDetail = builder.overlapDetail; this.overlapStatus = builder.overlapStatus; this.resourceId = builder.resourceId; this.resourceOwnerId = builder.resourceOwnerId; this.resourceRegionId = builder.resourceRegionId; this.resourceType = builder.resourceType; this.sourceCidr = builder.sourceCidr; this.status = builder.status; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static IpamResourceCidrs create() { return builder().build(); } /** * @return aliUid */ public Long getAliUid() { return this.aliUid; } /** * @return cidr */ public String getCidr() { return this.cidr; } /** * @return complianceStatus */ public String getComplianceStatus() { return this.complianceStatus; } /** * @return ipCountDetail */ public IpCountDetail getIpCountDetail() { return this.ipCountDetail; } /** * @return ipUsage */ public String getIpUsage() { return this.ipUsage; } /** * @return ipamAllocationId */ public String getIpamAllocationId() { return this.ipamAllocationId; } /** * @return ipamId */ public String getIpamId() { return this.ipamId; } /** * @return ipamPoolId */ public String getIpamPoolId() { return this.ipamPoolId; } /** * @return ipamScopeId */ public String getIpamScopeId() { return this.ipamScopeId; } /** * @return managementStatus */ public String getManagementStatus() { return this.managementStatus; } /** * @return overlapDetail */ public java.util.List<OverlapDetail> getOverlapDetail() { return this.overlapDetail; } /** * @return overlapStatus */ public String getOverlapStatus() { return this.overlapStatus; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceRegionId */ public String getResourceRegionId() { return this.resourceRegionId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return sourceCidr */ public String getSourceCidr() { return this.sourceCidr; } /** * @return status */ public String getStatus() { return this.status; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder { private Long aliUid; private String cidr; private String complianceStatus; private IpCountDetail ipCountDetail; private String ipUsage; private String ipamAllocationId; private String ipamId; private String ipamPoolId; private String ipamScopeId; private String managementStatus; private java.util.List<OverlapDetail> overlapDetail; private String overlapStatus; private String resourceId; private Long resourceOwnerId; private String resourceRegionId; private String resourceType; private String sourceCidr; private String status; private String vpcId; private Builder() { } private Builder(IpamResourceCidrs model) { this.aliUid = model.aliUid; this.cidr = model.cidr; this.complianceStatus = model.complianceStatus; this.ipCountDetail = model.ipCountDetail; this.ipUsage = model.ipUsage; this.ipamAllocationId = model.ipamAllocationId; this.ipamId = model.ipamId; this.ipamPoolId = model.ipamPoolId; this.ipamScopeId = model.ipamScopeId; this.managementStatus = model.managementStatus; this.overlapDetail = model.overlapDetail; this.overlapStatus = model.overlapStatus; this.resourceId = model.resourceId; this.resourceOwnerId = model.resourceOwnerId; this.resourceRegionId = model.resourceRegionId; this.resourceType = model.resourceType; this.sourceCidr = model.sourceCidr; this.status = model.status; this.vpcId = model.vpcId; } /** * <p>The ID of the Alibaba Cloud account.</p> * * <strong>example:</strong> * <p>132193271328****</p> */ public Builder aliUid(Long aliUid) { this.aliUid = aliUid; return this; } /** * <p>The CIDR block of the resource.</p> * * <strong>example:</strong> * <p>192.168.1.0/32</p> */ public Builder cidr(String cidr) { this.cidr = cidr; return this; } /** * <p>The compliance status of the resource.</p> * <ul> * <li><strong>Compliant</strong></li> * <li><strong>Noncompliant</strong></li> * <li><strong>Ignored</strong> Ignored resources are not monitored.</li> * <li><strong>Unmanaged</strong>: The resource does not have a CIDR block allocated from the IPAM pool. IPAM does not monitor whether the CIDR block of the resource meets the allocation rules of the IP address pool.</li> * </ul> * * <strong>example:</strong> * <p>Compliant</p> */ public Builder complianceStatus(String complianceStatus) { this.complianceStatus = complianceStatus; return this; } /** * IpCountDetail. */ public Builder ipCountDetail(IpCountDetail ipCountDetail) { this.ipCountDetail = ipCountDetail; return this; } /** * <p>The IP usage that is displayed in decimal form.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder ipUsage(String ipUsage) { this.ipUsage = ipUsage; return this; } /** * <p>The ID of the instance to which CIDR blocks are allocated from the IPAM pool.</p> * * <strong>example:</strong> * <p>ipam-pool-alloc-112za33e4****</p> */ public Builder ipamAllocationId(String ipamAllocationId) { this.ipamAllocationId = ipamAllocationId; return this; } /** * <p>The ID of the IPAM.</p> * * <strong>example:</strong> * <p>ipam-uq5dcfc2eqhpf4****</p> */ public Builder ipamId(String ipamId) { this.ipamId = ipamId; return this; } /** * <p>The ID of the IPAM pool.</p> * * <strong>example:</strong> * <p>ipam-pool-6rcq3tobayc20t***</p> */ public Builder ipamPoolId(String ipamPoolId) { this.ipamPoolId = ipamPoolId; return this; } /** * <p>The ID of the IPAM scope.</p> * * <strong>example:</strong> * <p>ipam-scope-glfmcyldpm8lsy****</p> */ public Builder ipamScopeId(String ipamScopeId) { this.ipamScopeId = ipamScopeId; return this; } /** * <p>The management status of the resource.</p> * <ul> * <li><strong>Managed</strong>: The resource has a CIDR block allocated from an IPAM pool. IPAM is monitoring whether the allocated CIDR block overlaps with other CIDR blocks and whether the allocated CIDR block meets the allocation rules.</li> * <li><strong>Unmanaged</strong>: The resource does not have a CIDR block allocated from the IPAM pool. IPAM is monitoring whether the resource has CIDR blocks that meet the allocation rules. Monitor whether CIDR blocks overlap with each other.</li> * <li><strong>Ignored</strong>: The resource is not monitored. Ignored resources are not monitored. If you ignore a resource, CIDR blocks allocated to the resource are returned to the IPAM pool and will not be automatically allocated to the resource (if automatic allocation rules are specified).</li> * </ul> * * <strong>example:</strong> * <p>Managed</p> */ public Builder managementStatus(String managementStatus) { this.managementStatus = managementStatus; return this; } /** * <p>List of resources that overlap with the current resource.</p> */ public Builder overlapDetail(java.util.List<OverlapDetail> overlapDetail) { this.overlapDetail = overlapDetail; return this; } /** * <p>The overlapping status of the resource.</p> * <ul> * <li><strong>Nonoverlapping</strong></li> * <li><strong>Overlapping</strong></li> * <li><strong>Ignored</strong> Ignored resources are not monitored.</li> * </ul> * * <strong>example:</strong> * <p>Nonoverlapping</p> */ public Builder overlapStatus(String overlapStatus) { this.overlapStatus = overlapStatus; return this; } /** * <p>The resource ID.</p> * * <strong>example:</strong> * <p>vpc-bp16qjewdsunr41m1****</p> */ public Builder resourceId(String resourceId) { this.resourceId = resourceId; return this; } /** * <p>The ID of the Alibaba Cloud account to which the resource belongs.</p> * * <strong>example:</strong> * <p>132193271328****</p> */ public Builder resourceOwnerId(Long resourceOwnerId) { this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The effective region ID of the resource.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder resourceRegionId(String resourceRegionId) { this.resourceRegionId = resourceRegionId; return this; } /** * <p>The type of resource. Valid values:</p> * <ul> * <li><strong>VPC</strong></li> * <li><strong>VSwitch</strong></li> * </ul> * * <strong>example:</strong> * <p>VPC</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The source CIDR block.</p> * * <strong>example:</strong> * <p>192.168.1.0/24</p> */ public Builder sourceCidr(String sourceCidr) { this.sourceCidr = sourceCidr; return this; } /** * <p>The status of the resource in the IPAM pool. Valid values:</p> * <ul> * <li><strong>Created</strong></li> * <li><strong>Deleted</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The VPC ID.</p> * * <strong>example:</strong> * <p>vpc-bp1fjfnrg3av6zb9e****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } public IpamResourceCidrs build() { return new IpamResourceCidrs(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamResourceDiscoveriesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamResourceDiscoveriesRequest} extends {@link RequestModel} * * <p>ListIpamResourceDiscoveriesRequest</p> */ public class ListIpamResourceDiscoveriesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryIds") private java.util.List<String> ipamResourceDiscoveryIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryName") private String ipamResourceDiscoveryName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IsShared") private Boolean isShared; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Integer maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Type") private String type; private ListIpamResourceDiscoveriesRequest(Builder builder) { super(builder); this.ipamResourceDiscoveryIds = builder.ipamResourceDiscoveryIds; this.ipamResourceDiscoveryName = builder.ipamResourceDiscoveryName; this.isShared = builder.isShared; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tags = builder.tags; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static ListIpamResourceDiscoveriesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ipamResourceDiscoveryIds */ public java.util.List<String> getIpamResourceDiscoveryIds() { return this.ipamResourceDiscoveryIds; } /** * @return ipamResourceDiscoveryName */ public String getIpamResourceDiscoveryName() { return this.ipamResourceDiscoveryName; } /** * @return isShared */ public Boolean getIsShared() { return this.isShared; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @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 resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder<ListIpamResourceDiscoveriesRequest, Builder> { private java.util.List<String> ipamResourceDiscoveryIds; private String ipamResourceDiscoveryName; private Boolean isShared; private Integer maxResults; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List<Tags> tags; private String type; private Builder() { super(); } private Builder(ListIpamResourceDiscoveriesRequest request) { super(request); this.ipamResourceDiscoveryIds = request.ipamResourceDiscoveryIds; this.ipamResourceDiscoveryName = request.ipamResourceDiscoveryName; this.isShared = request.isShared; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tags = request.tags; this.type = request.type; } /** * <p>The IDs of resource discovery instances. Valid values of N: 1 to 100. A maximum of 100 resource discoveries can be queried at a time.</p> */ public Builder ipamResourceDiscoveryIds(java.util.List<String> ipamResourceDiscoveryIds) { this.putQueryParameter("IpamResourceDiscoveryIds", ipamResourceDiscoveryIds); this.ipamResourceDiscoveryIds = ipamResourceDiscoveryIds; return this; } /** * <p>The name of the resource discovery.</p> * <p>The name must be 1 to 128 characters in length and cannot start with http:// or https://.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipamResourceDiscoveryName(String ipamResourceDiscoveryName) { this.putQueryParameter("IpamResourceDiscoveryName", ipamResourceDiscoveryName); this.ipamResourceDiscoveryName = ipamResourceDiscoveryName; return this; } /** * <p>Whether it is a shared resource discovery.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder isShared(Boolean isShared) { this.putQueryParameter("IsShared", isShared); this.isShared = isShared; return this; } /** * <p>The maximum number of entries on each page. Valid values: 1 to 100. Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, there is no next page.</li> * <li>If a value of <strong>NextToken</strong> is returned, it indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where you want to query resource discovery. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group that resource discovery belongs.</p> * * <strong>example:</strong> * <p>rg-aek2sermdd6****</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; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The tag.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } /** * <p>The type of resource discovery.</p> * <blockquote> * <p>Supported types:</p> * <ul> * <li>system: default resource discovery created by the system.</li> * <li>custom: custom resource discovery created by users.</li> * </ul> * </blockquote> * * <strong>example:</strong> * <p>system</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } @Override public ListIpamResourceDiscoveriesRequest build() { return new ListIpamResourceDiscoveriesRequest(this); } } /** * * {@link ListIpamResourceDiscoveriesRequest} extends {@link TeaModel} * * <p>ListIpamResourceDiscoveriesRequest</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The key of the tag. You can specify at most 20 tag keys. It cannot be an empty string.</p> * <p>The tag key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The tag key must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. The tag key cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of the tag. You can specify at most 20 tag values. The tag value cannot be an empty string.</p> * <p>A tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamResourceDiscoveriesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamResourceDiscoveriesResponse} extends {@link TeaModel} * * <p>ListIpamResourceDiscoveriesResponse</p> */ public class ListIpamResourceDiscoveriesResponse 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 ListIpamResourceDiscoveriesResponseBody body; private ListIpamResourceDiscoveriesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListIpamResourceDiscoveriesResponse 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 ListIpamResourceDiscoveriesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListIpamResourceDiscoveriesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListIpamResourceDiscoveriesResponseBody body); @Override ListIpamResourceDiscoveriesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListIpamResourceDiscoveriesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListIpamResourceDiscoveriesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListIpamResourceDiscoveriesResponse 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(ListIpamResourceDiscoveriesResponseBody body) { this.body = body; return this; } @Override public ListIpamResourceDiscoveriesResponse build() { return new ListIpamResourceDiscoveriesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamResourceDiscoveriesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamResourceDiscoveriesResponseBody} extends {@link TeaModel} * * <p>ListIpamResourceDiscoveriesResponseBody</p> */ public class ListIpamResourceDiscoveriesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveries") private java.util.List<IpamResourceDiscoveries> ipamResourceDiscoveries; @com.aliyun.core.annotation.NameInMap("MaxResults") private Integer maxResults; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private ListIpamResourceDiscoveriesResponseBody(Builder builder) { this.count = builder.count; this.ipamResourceDiscoveries = builder.ipamResourceDiscoveries; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListIpamResourceDiscoveriesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return ipamResourceDiscoveries */ public java.util.List<IpamResourceDiscoveries> getIpamResourceDiscoveries() { return this.ipamResourceDiscoveries; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private java.util.List<IpamResourceDiscoveries> ipamResourceDiscoveries; private Integer maxResults; private String nextToken; private String requestId; private Long totalCount; private Builder() { } private Builder(ListIpamResourceDiscoveriesResponseBody model) { this.count = model.count; this.ipamResourceDiscoveries = model.ipamResourceDiscoveries; this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The maximum number of entries on each page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The list of resource discovery instances.</p> */ public Builder ipamResourceDiscoveries(java.util.List<IpamResourceDiscoveries> ipamResourceDiscoveries) { this.ipamResourceDiscoveries = ipamResourceDiscoveries; return this; } /** * <p>The maximum number of entries on each page. Valid values: 1 to 100. Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, there is no next page.</li> * <li>If a value of <strong>NextToken</strong> is returned, it indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>86137597-443F-5B66-B9B6-8514E0C50B8F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public ListIpamResourceDiscoveriesResponseBody build() { return new ListIpamResourceDiscoveriesResponseBody(this); } } /** * * {@link ListIpamResourceDiscoveriesResponseBody} extends {@link TeaModel} * * <p>ListIpamResourceDiscoveriesResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link ListIpamResourceDiscoveriesResponseBody} extends {@link TeaModel} * * <p>ListIpamResourceDiscoveriesResponseBody</p> */ public static class IpamResourceDiscoveries extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryDescription") private String ipamResourceDiscoveryDescription; @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryId") private String ipamResourceDiscoveryId; @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryName") private String ipamResourceDiscoveryName; @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryStatus") private String ipamResourceDiscoveryStatus; @com.aliyun.core.annotation.NameInMap("OperatingRegionList") private java.util.List<String> operatingRegionList; @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("ShareType") private String shareType; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.NameInMap("Type") private String type; private IpamResourceDiscoveries(Builder builder) { this.createTime = builder.createTime; this.ipamResourceDiscoveryDescription = builder.ipamResourceDiscoveryDescription; this.ipamResourceDiscoveryId = builder.ipamResourceDiscoveryId; this.ipamResourceDiscoveryName = builder.ipamResourceDiscoveryName; this.ipamResourceDiscoveryStatus = builder.ipamResourceDiscoveryStatus; this.operatingRegionList = builder.operatingRegionList; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.shareType = builder.shareType; this.tags = builder.tags; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static IpamResourceDiscoveries create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return ipamResourceDiscoveryDescription */ public String getIpamResourceDiscoveryDescription() { return this.ipamResourceDiscoveryDescription; } /** * @return ipamResourceDiscoveryId */ public String getIpamResourceDiscoveryId() { return this.ipamResourceDiscoveryId; } /** * @return ipamResourceDiscoveryName */ public String getIpamResourceDiscoveryName() { return this.ipamResourceDiscoveryName; } /** * @return ipamResourceDiscoveryStatus */ public String getIpamResourceDiscoveryStatus() { return this.ipamResourceDiscoveryStatus; } /** * @return operatingRegionList */ public java.util.List<String> getOperatingRegionList() { return this.operatingRegionList; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return shareType */ public String getShareType() { return this.shareType; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String createTime; private String ipamResourceDiscoveryDescription; private String ipamResourceDiscoveryId; private String ipamResourceDiscoveryName; private String ipamResourceDiscoveryStatus; private java.util.List<String> operatingRegionList; private Long ownerId; private String regionId; private String resourceGroupId; private String shareType; private java.util.List<Tags> tags; private String type; private Builder() { } private Builder(IpamResourceDiscoveries model) { this.createTime = model.createTime; this.ipamResourceDiscoveryDescription = model.ipamResourceDiscoveryDescription; this.ipamResourceDiscoveryId = model.ipamResourceDiscoveryId; this.ipamResourceDiscoveryName = model.ipamResourceDiscoveryName; this.ipamResourceDiscoveryStatus = model.ipamResourceDiscoveryStatus; this.operatingRegionList = model.operatingRegionList; this.ownerId = model.ownerId; this.regionId = model.regionId; this.resourceGroupId = model.resourceGroupId; this.shareType = model.shareType; this.tags = model.tags; this.type = model.type; } /** * <p>The time when the resource was discovered.</p> * * <strong>example:</strong> * <p>2022-07-01T02:05:23Z</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The description of the resource discovery.</p> * * <strong>example:</strong> * <p>test description</p> */ public Builder ipamResourceDiscoveryDescription(String ipamResourceDiscoveryDescription) { this.ipamResourceDiscoveryDescription = ipamResourceDiscoveryDescription; return this; } /** * <p>The ID of resource discovery instance.</p> * * <strong>example:</strong> * <p>ipam-res-disco-jt5f2af2u6nk2z321****</p> */ public Builder ipamResourceDiscoveryId(String ipamResourceDiscoveryId) { this.ipamResourceDiscoveryId = ipamResourceDiscoveryId; return this; } /** * <p>The name of the resource discovery.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipamResourceDiscoveryName(String ipamResourceDiscoveryName) { this.ipamResourceDiscoveryName = ipamResourceDiscoveryName; return this; } /** * <p>The status of the resource discovery instance. Valid values:</p> * <ul> * <li><strong>Creating</strong></li> * <li><strong>Created</strong></li> * <li><strong>Modifying</strong></li> * <li><strong>Deleting</strong></li> * <li><strong>Deleted</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder ipamResourceDiscoveryStatus(String ipamResourceDiscoveryStatus) { this.ipamResourceDiscoveryStatus = ipamResourceDiscoveryStatus; return this; } /** * <p>The list of resource discovery regions.</p> */ public Builder operatingRegionList(java.util.List<String> operatingRegionList) { this.operatingRegionList = operatingRegionList; return this; } /** * <p>The Alibaba Cloud account that owns the resource discovery.</p> * * <strong>example:</strong> * <p>1210123456******</p> */ public Builder ownerId(Long ownerId) { this.ownerId = ownerId; return this; } /** * <p>The region ID of the queried resource discovery instance.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The ID of the resource group that resource discovery belongs.</p> * * <strong>example:</strong> * <p>rg-aek2sermdd6****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The sharing status of the resource.</p> * <ul> * <li>If the value is empty, the resource is as an average instance.</li> * <li>If the value is Shared, the resource discovery comes from a shared source.</li> * <li>If the value is Sharing, the resource discovery is being shared.</li> * </ul> * * <strong>example:</strong> * <p>Shared</p> */ public Builder shareType(String shareType) { this.shareType = shareType; return this; } /** * <p>The tag list.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The type of resource discovery.</p> * * <strong>example:</strong> * <p>system</p> */ public Builder type(String type) { this.type = type; return this; } public IpamResourceDiscoveries build() { return new IpamResourceDiscoveries(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamResourceDiscoveryAssociationsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamResourceDiscoveryAssociationsRequest} extends {@link RequestModel} * * <p>ListIpamResourceDiscoveryAssociationsRequest</p> */ public class ListIpamResourceDiscoveryAssociationsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamId") private String ipamId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryId") private String ipamResourceDiscoveryId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Integer maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ListIpamResourceDiscoveryAssociationsRequest(Builder builder) { super(builder); this.ipamId = builder.ipamId; this.ipamResourceDiscoveryId = builder.ipamResourceDiscoveryId; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ListIpamResourceDiscoveryAssociationsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ipamId */ public String getIpamId() { return this.ipamId; } /** * @return ipamResourceDiscoveryId */ public String getIpamResourceDiscoveryId() { return this.ipamResourceDiscoveryId; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ListIpamResourceDiscoveryAssociationsRequest, Builder> { private String ipamId; private String ipamResourceDiscoveryId; private Integer maxResults; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ListIpamResourceDiscoveryAssociationsRequest request) { super(request); this.ipamId = request.ipamId; this.ipamResourceDiscoveryId = request.ipamResourceDiscoveryId; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The ID of the IPAM.</p> * * <strong>example:</strong> * <p>ipam-ccxbnsbhew0d6t****</p> */ public Builder ipamId(String ipamId) { this.putQueryParameter("IpamId", ipamId); this.ipamId = ipamId; return this; } /** * <p>The ID of resource discovery instance.</p> * * <strong>example:</strong> * <p>ipam-res-disco-jt5f2af2u6nk2z321****</p> */ public Builder ipamResourceDiscoveryId(String ipamResourceDiscoveryId) { this.putQueryParameter("IpamResourceDiscoveryId", ipamResourceDiscoveryId); this.ipamResourceDiscoveryId = ipamResourceDiscoveryId; return this; } /** * <p>The maximum number of entries on each page. Valid values: 1 to 100. Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If this is your first or only query, this parameter is left empty.</li> * <li>If a next query is to be sent, the returned value is the value of NextToken that was returned last time this operation was called.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The request region.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public ListIpamResourceDiscoveryAssociationsRequest build() { return new ListIpamResourceDiscoveryAssociationsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamResourceDiscoveryAssociationsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamResourceDiscoveryAssociationsResponse} extends {@link TeaModel} * * <p>ListIpamResourceDiscoveryAssociationsResponse</p> */ public class ListIpamResourceDiscoveryAssociationsResponse 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 ListIpamResourceDiscoveryAssociationsResponseBody body; private ListIpamResourceDiscoveryAssociationsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListIpamResourceDiscoveryAssociationsResponse 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 ListIpamResourceDiscoveryAssociationsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListIpamResourceDiscoveryAssociationsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListIpamResourceDiscoveryAssociationsResponseBody body); @Override ListIpamResourceDiscoveryAssociationsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListIpamResourceDiscoveryAssociationsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListIpamResourceDiscoveryAssociationsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListIpamResourceDiscoveryAssociationsResponse 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(ListIpamResourceDiscoveryAssociationsResponseBody body) { this.body = body; return this; } @Override public ListIpamResourceDiscoveryAssociationsResponse build() { return new ListIpamResourceDiscoveryAssociationsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamResourceDiscoveryAssociationsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamResourceDiscoveryAssociationsResponseBody} extends {@link TeaModel} * * <p>ListIpamResourceDiscoveryAssociationsResponseBody</p> */ public class ListIpamResourceDiscoveryAssociationsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryAssociations") private java.util.List<IpamResourceDiscoveryAssociations> ipamResourceDiscoveryAssociations; @com.aliyun.core.annotation.NameInMap("MaxResults") private Integer maxResults; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private ListIpamResourceDiscoveryAssociationsResponseBody(Builder builder) { this.count = builder.count; this.ipamResourceDiscoveryAssociations = builder.ipamResourceDiscoveryAssociations; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListIpamResourceDiscoveryAssociationsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return ipamResourceDiscoveryAssociations */ public java.util.List<IpamResourceDiscoveryAssociations> getIpamResourceDiscoveryAssociations() { return this.ipamResourceDiscoveryAssociations; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private java.util.List<IpamResourceDiscoveryAssociations> ipamResourceDiscoveryAssociations; private Integer maxResults; private String nextToken; private String requestId; private Long totalCount; private Builder() { } private Builder(ListIpamResourceDiscoveryAssociationsResponseBody model) { this.count = model.count; this.ipamResourceDiscoveryAssociations = model.ipamResourceDiscoveryAssociations; this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The number of entries on each page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The list of associations.</p> */ public Builder ipamResourceDiscoveryAssociations(java.util.List<IpamResourceDiscoveryAssociations> ipamResourceDiscoveryAssociations) { this.ipamResourceDiscoveryAssociations = ipamResourceDiscoveryAssociations; return this; } /** * <p>The maximum number of entries on each page. Valid values: 1 to 100. Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, there is no next page.</li> * <li>If a value of <strong>NextToken</strong> is returned, it indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>F28A239E-F88D-500E-ADE7-FA5E8CA3A170</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public ListIpamResourceDiscoveryAssociationsResponseBody build() { return new ListIpamResourceDiscoveryAssociationsResponseBody(this); } } /** * * {@link ListIpamResourceDiscoveryAssociationsResponseBody} extends {@link TeaModel} * * <p>ListIpamResourceDiscoveryAssociationsResponseBody</p> */ public static class IpamResourceDiscoveryAssociations extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpamId") private String ipamId; @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryId") private String ipamResourceDiscoveryId; @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryOwnerId") private String ipamResourceDiscoveryOwnerId; @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryStatus") private String ipamResourceDiscoveryStatus; @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryType") private String ipamResourceDiscoveryType; @com.aliyun.core.annotation.NameInMap("Status") private String status; private IpamResourceDiscoveryAssociations(Builder builder) { this.ipamId = builder.ipamId; this.ipamResourceDiscoveryId = builder.ipamResourceDiscoveryId; this.ipamResourceDiscoveryOwnerId = builder.ipamResourceDiscoveryOwnerId; this.ipamResourceDiscoveryStatus = builder.ipamResourceDiscoveryStatus; this.ipamResourceDiscoveryType = builder.ipamResourceDiscoveryType; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static IpamResourceDiscoveryAssociations create() { return builder().build(); } /** * @return ipamId */ public String getIpamId() { return this.ipamId; } /** * @return ipamResourceDiscoveryId */ public String getIpamResourceDiscoveryId() { return this.ipamResourceDiscoveryId; } /** * @return ipamResourceDiscoveryOwnerId */ public String getIpamResourceDiscoveryOwnerId() { return this.ipamResourceDiscoveryOwnerId; } /** * @return ipamResourceDiscoveryStatus */ public String getIpamResourceDiscoveryStatus() { return this.ipamResourceDiscoveryStatus; } /** * @return ipamResourceDiscoveryType */ public String getIpamResourceDiscoveryType() { return this.ipamResourceDiscoveryType; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String ipamId; private String ipamResourceDiscoveryId; private String ipamResourceDiscoveryOwnerId; private String ipamResourceDiscoveryStatus; private String ipamResourceDiscoveryType; private String status; private Builder() { } private Builder(IpamResourceDiscoveryAssociations model) { this.ipamId = model.ipamId; this.ipamResourceDiscoveryId = model.ipamResourceDiscoveryId; this.ipamResourceDiscoveryOwnerId = model.ipamResourceDiscoveryOwnerId; this.ipamResourceDiscoveryStatus = model.ipamResourceDiscoveryStatus; this.ipamResourceDiscoveryType = model.ipamResourceDiscoveryType; this.status = model.status; } /** * <p>The ID of the IPAM.</p> * * <strong>example:</strong> * <p>ipam-ccxbnsbhew0d6t****</p> */ public Builder ipamId(String ipamId) { this.ipamId = ipamId; return this; } /** * <p>The ID of resource discovery instance.</p> * * <strong>example:</strong> * <p>ipam-res-disco-jt5f2af2u6nk2z321****</p> */ public Builder ipamResourceDiscoveryId(String ipamResourceDiscoveryId) { this.ipamResourceDiscoveryId = ipamResourceDiscoveryId; return this; } /** * <p>The ID of the Alibaba Cloud account to which the resource discovery belongs.</p> * * <strong>example:</strong> * <p>1210123456******</p> */ public Builder ipamResourceDiscoveryOwnerId(String ipamResourceDiscoveryOwnerId) { this.ipamResourceDiscoveryOwnerId = ipamResourceDiscoveryOwnerId; return this; } /** * <p>The status of the resource discovery instance. Valid values:</p> * <ul> * <li><strong>Creating</strong></li> * <li><strong>Created</strong></li> * <li><strong>Modifying</strong></li> * <li><strong>Deleting</strong></li> * <li><strong>Deleted</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder ipamResourceDiscoveryStatus(String ipamResourceDiscoveryStatus) { this.ipamResourceDiscoveryStatus = ipamResourceDiscoveryStatus; return this; } /** * <p>The type of resource discovery. Valid values:</p> * <ul> * <li><strong>system</strong>: default resource discovery created by the system.</li> * <li><strong>custom</strong>: custom resource discovery created by users.</li> * </ul> * * <strong>example:</strong> * <p>custom</p> */ public Builder ipamResourceDiscoveryType(String ipamResourceDiscoveryType) { this.ipamResourceDiscoveryType = ipamResourceDiscoveryType; return this; } /** * <p>The status of the associations. Valid values:</p> * <ul> * <li><strong>Created</strong></li> * <li><strong>Deleted</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder status(String status) { this.status = status; return this; } public IpamResourceDiscoveryAssociations build() { return new IpamResourceDiscoveryAssociations(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamScopesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamScopesRequest} extends {@link RequestModel} * * <p>ListIpamScopesRequest</p> */ public class ListIpamScopesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamId") private String ipamId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamScopeIds") private java.util.List<String> ipamScopeIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamScopeName") private String ipamScopeName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamScopeType") private String ipamScopeType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Long maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; private ListIpamScopesRequest(Builder builder) { super(builder); this.ipamId = builder.ipamId; this.ipamScopeIds = builder.ipamScopeIds; this.ipamScopeName = builder.ipamScopeName; this.ipamScopeType = builder.ipamScopeType; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static ListIpamScopesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ipamId */ public String getIpamId() { return this.ipamId; } /** * @return ipamScopeIds */ public java.util.List<String> getIpamScopeIds() { return this.ipamScopeIds; } /** * @return ipamScopeName */ public String getIpamScopeName() { return this.ipamScopeName; } /** * @return ipamScopeType */ public String getIpamScopeType() { return this.ipamScopeType; } /** * @return maxResults */ public Long getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @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 resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder extends Request.Builder<ListIpamScopesRequest, Builder> { private String ipamId; private java.util.List<String> ipamScopeIds; private String ipamScopeName; private String ipamScopeType; private Long maxResults; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List<Tags> tags; private Builder() { super(); } private Builder(ListIpamScopesRequest request) { super(request); this.ipamId = request.ipamId; this.ipamScopeIds = request.ipamScopeIds; this.ipamScopeName = request.ipamScopeName; this.ipamScopeType = request.ipamScopeType; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tags = request.tags; } /** * <p>The ID of the IPAM.</p> * * <strong>example:</strong> * <p>ipam-ccxbnsbhew0d6t****</p> */ public Builder ipamId(String ipamId) { this.putQueryParameter("IpamId", ipamId); this.ipamId = ipamId; return this; } /** * <p>The IDs of IPAM scopes.</p> */ public Builder ipamScopeIds(java.util.List<String> ipamScopeIds) { this.putQueryParameter("IpamScopeIds", ipamScopeIds); this.ipamScopeIds = ipamScopeIds; return this; } /** * <p>The name of the IPAM scope.</p> * <p>It must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipamScopeName(String ipamScopeName) { this.putQueryParameter("IpamScopeName", ipamScopeName); this.ipamScopeName = ipamScopeName; return this; } /** * <p>The type of the IPAM scope. Valid values:</p> * <ul> * <li><strong>public</strong></li> * <li><strong>private</strong></li> * </ul> * * <strong>example:</strong> * <p>private</p> */ public Builder ipamScopeType(String ipamScopeType) { this.putQueryParameter("IpamScopeType", ipamScopeType); this.ipamScopeType = ipamScopeType; return this; } /** * <p>The number of entries per page. Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Long maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>You do not need to specify this parameter for the first request.</li> * <li>You must specify the token that is obtained from the previous query as the value of NextToken.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The resource group ID of the IPAM scope.</p> * * <strong>example:</strong> * <p>rg-aek2sermdd6****</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; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The tag list.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } @Override public ListIpamScopesRequest build() { return new ListIpamScopesRequest(this); } } /** * * {@link ListIpamScopesRequest} extends {@link TeaModel} * * <p>ListIpamScopesRequest</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p> * <p>The tag key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The tag key must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. The tag key cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value. You can specify up to 20 tag values. The tag value can be an empty string.</p> * <p>The tag value can be up to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It cannot start with a <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamScopesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamScopesResponse} extends {@link TeaModel} * * <p>ListIpamScopesResponse</p> */ public class ListIpamScopesResponse 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 ListIpamScopesResponseBody body; private ListIpamScopesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListIpamScopesResponse 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 ListIpamScopesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListIpamScopesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListIpamScopesResponseBody body); @Override ListIpamScopesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListIpamScopesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListIpamScopesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListIpamScopesResponse 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(ListIpamScopesResponseBody body) { this.body = body; return this; } @Override public ListIpamScopesResponse build() { return new ListIpamScopesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamScopesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamScopesResponseBody} extends {@link TeaModel} * * <p>ListIpamScopesResponseBody</p> */ public class ListIpamScopesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Long count; @com.aliyun.core.annotation.NameInMap("IpamScopes") private java.util.List<IpamScopes> ipamScopes; @com.aliyun.core.annotation.NameInMap("MaxResults") private Long maxResults; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private ListIpamScopesResponseBody(Builder builder) { this.count = builder.count; this.ipamScopes = builder.ipamScopes; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListIpamScopesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Long getCount() { return this.count; } /** * @return ipamScopes */ public java.util.List<IpamScopes> getIpamScopes() { return this.ipamScopes; } /** * @return maxResults */ public Long getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private Long count; private java.util.List<IpamScopes> ipamScopes; private Long maxResults; private String nextToken; private String requestId; private Long totalCount; private Builder() { } private Builder(ListIpamScopesResponseBody model) { this.count = model.count; this.ipamScopes = model.ipamScopes; this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder count(Long count) { this.count = count; return this; } /** * <p>The IPAM scopes.</p> */ public Builder ipamScopes(java.util.List<IpamScopes> ipamScopes) { this.ipamScopes = ipamScopes; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Long maxResults) { this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, no next page exists.</li> * <li>If a value of <strong>NextToken</strong> is returned, the value indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>8859C501-97E7-53D4-B94B-2A9E16003B22</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>1000</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public ListIpamScopesResponseBody build() { return new ListIpamScopesResponseBody(this); } } /** * * {@link ListIpamScopesResponseBody} extends {@link TeaModel} * * <p>ListIpamScopesResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link ListIpamScopesResponseBody} extends {@link TeaModel} * * <p>ListIpamScopesResponseBody</p> */ public static class IpamScopes extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("IpamId") private String ipamId; @com.aliyun.core.annotation.NameInMap("IpamScopeDescription") private String ipamScopeDescription; @com.aliyun.core.annotation.NameInMap("IpamScopeId") private String ipamScopeId; @com.aliyun.core.annotation.NameInMap("IpamScopeName") private String ipamScopeName; @com.aliyun.core.annotation.NameInMap("IpamScopeType") private String ipamScopeType; @com.aliyun.core.annotation.NameInMap("IsDefault") private Boolean isDefault; @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.NameInMap("PoolCount") private Integer poolCount; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; private IpamScopes(Builder builder) { this.createTime = builder.createTime; this.ipamId = builder.ipamId; this.ipamScopeDescription = builder.ipamScopeDescription; this.ipamScopeId = builder.ipamScopeId; this.ipamScopeName = builder.ipamScopeName; this.ipamScopeType = builder.ipamScopeType; this.isDefault = builder.isDefault; this.ownerId = builder.ownerId; this.poolCount = builder.poolCount; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.status = builder.status; this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static IpamScopes create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return ipamId */ public String getIpamId() { return this.ipamId; } /** * @return ipamScopeDescription */ public String getIpamScopeDescription() { return this.ipamScopeDescription; } /** * @return ipamScopeId */ public String getIpamScopeId() { return this.ipamScopeId; } /** * @return ipamScopeName */ public String getIpamScopeName() { return this.ipamScopeName; } /** * @return ipamScopeType */ public String getIpamScopeType() { return this.ipamScopeType; } /** * @return isDefault */ public Boolean getIsDefault() { return this.isDefault; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return poolCount */ public Integer getPoolCount() { return this.poolCount; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder { private String createTime; private String ipamId; private String ipamScopeDescription; private String ipamScopeId; private String ipamScopeName; private String ipamScopeType; private Boolean isDefault; private Long ownerId; private Integer poolCount; private String regionId; private String resourceGroupId; private String status; private java.util.List<Tags> tags; private Builder() { } private Builder(IpamScopes model) { this.createTime = model.createTime; this.ipamId = model.ipamId; this.ipamScopeDescription = model.ipamScopeDescription; this.ipamScopeId = model.ipamScopeId; this.ipamScopeName = model.ipamScopeName; this.ipamScopeType = model.ipamScopeType; this.isDefault = model.isDefault; this.ownerId = model.ownerId; this.poolCount = model.poolCount; this.regionId = model.regionId; this.resourceGroupId = model.resourceGroupId; this.status = model.status; this.tags = model.tags; } /** * <p>The time when the IPAM scope was created.</p> * * <strong>example:</strong> * <p>2022-04-18T03:12:37Z</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The ID of the IPAM.</p> * * <strong>example:</strong> * <p>ipam-ccxbnsbhew0d6t****</p> */ public Builder ipamId(String ipamId) { this.ipamId = ipamId; return this; } /** * <p>The description of the IPAM scope.</p> * * <strong>example:</strong> * <p>test description</p> */ public Builder ipamScopeDescription(String ipamScopeDescription) { this.ipamScopeDescription = ipamScopeDescription; return this; } /** * <p>The ID of the IPAM scope.</p> * * <strong>example:</strong> * <p>ipam-scope-glfmcyldpm8lsy****</p> */ public Builder ipamScopeId(String ipamScopeId) { this.ipamScopeId = ipamScopeId; return this; } /** * <p>The name of the IPAM scope.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipamScopeName(String ipamScopeName) { this.ipamScopeName = ipamScopeName; return this; } /** * <p>The type of the IPAM scope. Valid values:</p> * <ul> * <li><strong>public</strong></li> * <li><strong>private</strong></li> * </ul> * * <strong>example:</strong> * <p>private</p> */ public Builder ipamScopeType(String ipamScopeType) { this.ipamScopeType = ipamScopeType; return this; } /** * <p>Indicates whether the scope is the default scope. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder isDefault(Boolean isDefault) { this.isDefault = isDefault; return this; } /** * <p>The Alibaba Cloud account that owns the IPAM scope.</p> * * <strong>example:</strong> * <p>1210123456******</p> */ public Builder ownerId(Long ownerId) { this.ownerId = ownerId; return this; } /** * <p>The number of pools in the IPAM scope.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder poolCount(Integer poolCount) { this.poolCount = poolCount; return this; } /** * <p>The region ID of the IPAM.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The resource group ID.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The status of the IPAM scope. Valid values:</p> * <ul> * <li><strong>Creating</strong></li> * <li><strong>Created</strong></li> * <li><strong>Deleting</strong></li> * <li><strong>Deleted</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tag list.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } public IpamScopes build() { return new IpamScopes(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamsRequest} extends {@link RequestModel} * * <p>ListIpamsRequest</p> */ public class ListIpamsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamIds") private java.util.List<String> ipamIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamName") private String ipamName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Long maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; private ListIpamsRequest(Builder builder) { super(builder); this.ipamIds = builder.ipamIds; this.ipamName = builder.ipamName; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static ListIpamsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ipamIds */ public java.util.List<String> getIpamIds() { return this.ipamIds; } /** * @return ipamName */ public String getIpamName() { return this.ipamName; } /** * @return maxResults */ public Long getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @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 resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder extends Request.Builder<ListIpamsRequest, Builder> { private java.util.List<String> ipamIds; private String ipamName; private Long maxResults; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List<Tags> tags; private Builder() { super(); } private Builder(ListIpamsRequest request) { super(request); this.ipamIds = request.ipamIds; this.ipamName = request.ipamName; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tags = request.tags; } /** * <p>The IDs of IPAMs. Valid values of N: 1 to 100. A maximum of 100 IPAMs can be queried at a time.</p> */ public Builder ipamIds(java.util.List<String> ipamIds) { this.putQueryParameter("IpamIds", ipamIds); this.ipamIds = ipamIds; return this; } /** * <p>The name of the IPAM.</p> * <p>It must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipamName(String ipamName) { this.putQueryParameter("IpamName", ipamName); this.ipamName = ipamName; return this; } /** * <p>The number of entries per page. Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Long maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>You do not need to specify this parameter for the first request.</li> * <li>You must specify the token that is obtained from the previous query as the value of NextToken.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The resource group ID of the IPAM.</p> * * <strong>example:</strong> * <p>rg-aek2sermdd6****</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; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The tag information.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } @Override public ListIpamsRequest build() { return new ListIpamsRequest(this); } } /** * * {@link ListIpamsRequest} extends {@link TeaModel} * * <p>ListIpamsRequest</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p> * <p>The tag key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The tag key must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. The tag key cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value. You can specify at most 20 tag values. The tag value can be an empty string.</p> * <p>The tag value can be up to 128 characters in length. It must start with a letter and can contain digits, periods (.), underscores (_), and hyphens (-). It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamsResponse} extends {@link TeaModel} * * <p>ListIpamsResponse</p> */ public class ListIpamsResponse 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 ListIpamsResponseBody body; private ListIpamsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListIpamsResponse 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 ListIpamsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListIpamsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListIpamsResponseBody body); @Override ListIpamsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListIpamsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListIpamsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListIpamsResponse 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(ListIpamsResponseBody body) { this.body = body; return this; } @Override public ListIpamsResponse build() { return new ListIpamsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListIpamsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpamsResponseBody} extends {@link TeaModel} * * <p>ListIpamsResponseBody</p> */ public class ListIpamsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Long count; @com.aliyun.core.annotation.NameInMap("Ipams") private java.util.List<Ipams> ipams; @com.aliyun.core.annotation.NameInMap("MaxResults") private Long maxResults; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private ListIpamsResponseBody(Builder builder) { this.count = builder.count; this.ipams = builder.ipams; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListIpamsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Long getCount() { return this.count; } /** * @return ipams */ public java.util.List<Ipams> getIpams() { return this.ipams; } /** * @return maxResults */ public Long getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private Long count; private java.util.List<Ipams> ipams; private Long maxResults; private String nextToken; private String requestId; private Long totalCount; private Builder() { } private Builder(ListIpamsResponseBody model) { this.count = model.count; this.ipams = model.ipams; this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder count(Long count) { this.count = count; return this; } /** * <p>The IPAMs.</p> */ public Builder ipams(java.util.List<Ipams> ipams) { this.ipams = ipams; return this; } /** * <p>The number of entries per page. Valid values: 1 to 100. Default value: 10.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder maxResults(Long maxResults) { this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, no next page exists.</li> * <li>If a value of <strong>NextToken</strong> is returned, the value indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>23CA0A0B-B0F5-5495-B355-7D9A9203A46B</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The number of entries.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public ListIpamsResponseBody build() { return new ListIpamsResponseBody(this); } } /** * * {@link ListIpamsResponseBody} extends {@link TeaModel} * * <p>ListIpamsResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link ListIpamsResponseBody} extends {@link TeaModel} * * <p>ListIpamsResponseBody</p> */ public static class Ipams extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("DefaultResourceDiscoveryAssociationId") private String defaultResourceDiscoveryAssociationId; @com.aliyun.core.annotation.NameInMap("DefaultResourceDiscoveryId") private String defaultResourceDiscoveryId; @com.aliyun.core.annotation.NameInMap("IpamDescription") private String ipamDescription; @com.aliyun.core.annotation.NameInMap("IpamId") private String ipamId; @com.aliyun.core.annotation.NameInMap("IpamName") private String ipamName; @com.aliyun.core.annotation.NameInMap("IpamStatus") private String ipamStatus; @com.aliyun.core.annotation.NameInMap("OperatingRegionList") private java.util.List<String> operatingRegionList; @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.NameInMap("PrivateDefaultScopeId") private String privateDefaultScopeId; @com.aliyun.core.annotation.NameInMap("PublicDefaultScopeId") private String publicDefaultScopeId; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceDiscoveryAssociationCount") private Integer resourceDiscoveryAssociationCount; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("ScopeCount") private Integer scopeCount; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; private Ipams(Builder builder) { this.createTime = builder.createTime; this.defaultResourceDiscoveryAssociationId = builder.defaultResourceDiscoveryAssociationId; this.defaultResourceDiscoveryId = builder.defaultResourceDiscoveryId; this.ipamDescription = builder.ipamDescription; this.ipamId = builder.ipamId; this.ipamName = builder.ipamName; this.ipamStatus = builder.ipamStatus; this.operatingRegionList = builder.operatingRegionList; this.ownerId = builder.ownerId; this.privateDefaultScopeId = builder.privateDefaultScopeId; this.publicDefaultScopeId = builder.publicDefaultScopeId; this.regionId = builder.regionId; this.resourceDiscoveryAssociationCount = builder.resourceDiscoveryAssociationCount; this.resourceGroupId = builder.resourceGroupId; this.scopeCount = builder.scopeCount; this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static Ipams create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return defaultResourceDiscoveryAssociationId */ public String getDefaultResourceDiscoveryAssociationId() { return this.defaultResourceDiscoveryAssociationId; } /** * @return defaultResourceDiscoveryId */ public String getDefaultResourceDiscoveryId() { return this.defaultResourceDiscoveryId; } /** * @return ipamDescription */ public String getIpamDescription() { return this.ipamDescription; } /** * @return ipamId */ public String getIpamId() { return this.ipamId; } /** * @return ipamName */ public String getIpamName() { return this.ipamName; } /** * @return ipamStatus */ public String getIpamStatus() { return this.ipamStatus; } /** * @return operatingRegionList */ public java.util.List<String> getOperatingRegionList() { return this.operatingRegionList; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return privateDefaultScopeId */ public String getPrivateDefaultScopeId() { return this.privateDefaultScopeId; } /** * @return publicDefaultScopeId */ public String getPublicDefaultScopeId() { return this.publicDefaultScopeId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceDiscoveryAssociationCount */ public Integer getResourceDiscoveryAssociationCount() { return this.resourceDiscoveryAssociationCount; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return scopeCount */ public Integer getScopeCount() { return this.scopeCount; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder { private String createTime; private String defaultResourceDiscoveryAssociationId; private String defaultResourceDiscoveryId; private String ipamDescription; private String ipamId; private String ipamName; private String ipamStatus; private java.util.List<String> operatingRegionList; private Long ownerId; private String privateDefaultScopeId; private String publicDefaultScopeId; private String regionId; private Integer resourceDiscoveryAssociationCount; private String resourceGroupId; private Integer scopeCount; private java.util.List<Tags> tags; private Builder() { } private Builder(Ipams model) { this.createTime = model.createTime; this.defaultResourceDiscoveryAssociationId = model.defaultResourceDiscoveryAssociationId; this.defaultResourceDiscoveryId = model.defaultResourceDiscoveryId; this.ipamDescription = model.ipamDescription; this.ipamId = model.ipamId; this.ipamName = model.ipamName; this.ipamStatus = model.ipamStatus; this.operatingRegionList = model.operatingRegionList; this.ownerId = model.ownerId; this.privateDefaultScopeId = model.privateDefaultScopeId; this.publicDefaultScopeId = model.publicDefaultScopeId; this.regionId = model.regionId; this.resourceDiscoveryAssociationCount = model.resourceDiscoveryAssociationCount; this.resourceGroupId = model.resourceGroupId; this.scopeCount = model.scopeCount; this.tags = model.tags; } /** * <p>The time when the IPAM was created.</p> * * <strong>example:</strong> * <p>2022-07-01T02:05:23Z</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>Default resource discovery association ID.</p> * * <strong>example:</strong> * <p>ipam-res-disco-assoc-jt5fac8twugdbbgip****</p> */ public Builder defaultResourceDiscoveryAssociationId(String defaultResourceDiscoveryAssociationId) { this.defaultResourceDiscoveryAssociationId = defaultResourceDiscoveryAssociationId; return this; } /** * <p>Default resource discovery instance ID.</p> * * <strong>example:</strong> * <p>ipam-res-disco-jt5f2af2u6nk2z321****</p> */ public Builder defaultResourceDiscoveryId(String defaultResourceDiscoveryId) { this.defaultResourceDiscoveryId = defaultResourceDiscoveryId; return this; } /** * <p>The description of the IPAM.</p> * * <strong>example:</strong> * <p>test description</p> */ public Builder ipamDescription(String ipamDescription) { this.ipamDescription = ipamDescription; return this; } /** * <p>The ID of the IPAM.</p> * * <strong>example:</strong> * <p>ipam-ccxbnsbhew0d6t****</p> */ public Builder ipamId(String ipamId) { this.ipamId = ipamId; return this; } /** * <p>The name of the IPAM.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipamName(String ipamName) { this.ipamName = ipamName; return this; } /** * <p>The status of the IPAM. Valid values:</p> * <ul> * <li><strong>Creating</strong></li> * <li><strong>Created</strong></li> * <li><strong>Deleting</strong></li> * <li><strong>Deleted</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder ipamStatus(String ipamStatus) { this.ipamStatus = ipamStatus; return this; } /** * <p>The effective regions of the IPAM.</p> */ public Builder operatingRegionList(java.util.List<String> operatingRegionList) { this.operatingRegionList = operatingRegionList; return this; } /** * <p>The Alibaba Cloud account that owns the IPAM.</p> * * <strong>example:</strong> * <p>1210123456******</p> */ public Builder ownerId(Long ownerId) { this.ownerId = ownerId; return this; } /** * <p>The default private scope created by the system after the IPAM is created.</p> * * <strong>example:</strong> * <p>ipam-scope-okoerbco6unqfr****</p> */ public Builder privateDefaultScopeId(String privateDefaultScopeId) { this.privateDefaultScopeId = privateDefaultScopeId; return this; } /** * <p>The default public scope created by the system after the IPAM is created.</p> * * <strong>example:</strong> * <p>ipam-scope-ovb76p1g1m19dr****</p> */ public Builder publicDefaultScopeId(String publicDefaultScopeId) { this.publicDefaultScopeId = publicDefaultScopeId; return this; } /** * <p>The region ID of the IPAM.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>Number of resource discovery associations.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder resourceDiscoveryAssociationCount(Integer resourceDiscoveryAssociationCount) { this.resourceDiscoveryAssociationCount = resourceDiscoveryAssociationCount; return this; } /** * <p>The resource group ID of the IPAM.</p> * * <strong>example:</strong> * <p>rg-aek2dbprgpt****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The number of IPAM scopes. Value: <strong>2 to 5</strong>.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder scopeCount(Integer scopeCount) { this.scopeCount = scopeCount; return this; } /** * <p>The tag list.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } public Ipams build() { return new Ipams(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListTagResourcesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; 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("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 50) private Integer maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceId") private java.util.List<String> resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @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.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; 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 maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public java.util.List<String> getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @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 Integer maxResults; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private java.util.List<String> resourceId; private String resourceOwnerAccount; private Long resourceOwnerId; private String resourceType; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(ListTagResourcesRequest request) { super(request); this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.resourceType = request.resourceType; this.tag = request.tag; } /** * <p>The number of entries per page. Valid values: <strong>1</strong> to <strong>50</strong>. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>You do not need to specify this parameter for the first request.</li> * <li>If a value is returned for NextToken, you must specify the token that is obtained from the previous query as the value of <strong>NextToken</strong>.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the resource.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The resource IDs.</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; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The resource type. Valid values:</p> * <ul> * <li><strong>IPAM</strong></li> * <li><strong>IPAMSCOPE</strong></li> * <li><strong>IPAMPOOL</strong></li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>IPAM</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The tag list.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public ListTagResourcesRequest build() { return new ListTagResourcesRequest(this); } } /** * * {@link ListTagResourcesRequest} extends {@link TeaModel} * * <p>ListTagResourcesRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p> * <p>The tag key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It cannot start with a <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * <blockquote> * <p> You must specify <strong>ResourceId.N</strong> or <strong>Tag.N</strong> that consists of <strong>Tag.N.Key</strong> and <strong>Tag.N.Value</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value. You can specify at most 20 tag values. The tag value can be an empty string.</p> * <p>The tag value can be up to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It cannot start with a <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * <blockquote> * <p> You must specify <strong>ResourceId.N</strong> or <strong>Tag.N</strong> that consists of <strong>Tag.N.Key</strong> and <strong>Tag.N.Value</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListTagResourcesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; 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-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/ListTagResourcesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListTagResourcesResponseBody} extends {@link TeaModel} * * <p>ListTagResourcesResponseBody</p> */ public class ListTagResourcesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TagResources") private java.util.List<TagResources> tagResources; private ListTagResourcesResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.tagResources = builder.tagResources; } public static Builder builder() { return new Builder(); } public static ListTagResourcesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return tagResources */ public java.util.List<TagResources> getTagResources() { return this.tagResources; } public static final class Builder { private String nextToken; private String requestId; private java.util.List<TagResources> tagResources; private Builder() { } private Builder(ListTagResourcesResponseBody model) { this.nextToken = model.nextToken; this.requestId = model.requestId; this.tagResources = model.tagResources; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, no next page exists.</li> * <li>If a value of <strong>NextToken</strong> is returned, the value indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>672053AB-90C9-5693-AB96-458F137A5ED6</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The resources to which the tags are added.</p> */ public Builder tagResources(java.util.List<TagResources> tagResources) { this.tagResources = tagResources; return this; } public ListTagResourcesResponseBody build() { return new ListTagResourcesResponseBody(this); } } /** * * {@link ListTagResourcesResponseBody} extends {@link TeaModel} * * <p>ListTagResourcesResponseBody</p> */ public static class TagResources extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceId") private String resourceId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("TagKey") private String tagKey; @com.aliyun.core.annotation.NameInMap("TagValue") private String tagValue; private TagResources(Builder builder) { this.resourceId = builder.resourceId; this.resourceType = builder.resourceType; this.tagKey = builder.tagKey; this.tagValue = builder.tagValue; } public static Builder builder() { return new Builder(); } public static TagResources create() { return builder().build(); } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return tagKey */ public String getTagKey() { return this.tagKey; } /** * @return tagValue */ public String getTagValue() { return this.tagValue; } public static final class Builder { private String resourceId; private String resourceType; private String tagKey; private String tagValue; private Builder() { } private Builder(TagResources model) { this.resourceId = model.resourceId; this.resourceType = model.resourceType; this.tagKey = model.tagKey; this.tagValue = model.tagValue; } /** * <p>The resource ID.</p> * * <strong>example:</strong> * <p>ipam-uq5dcfc2eqhpf4****</p> */ public Builder resourceId(String resourceId) { this.resourceId = resourceId; return this; } /** * <p>The resource type. Valid values:</p> * <ul> * <li><strong>IPAM</strong></li> * <li><strong>IPAMSCOPE</strong></li> * <li><strong>IPAMPOOL</strong></li> * </ul> * * <strong>example:</strong> * <p>IPAM</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The tag key.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder tagKey(String tagKey) { this.tagKey = tagKey; return this; } /** * <p>The tag value.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder tagValue(String tagValue) { this.tagValue = tagValue; return this; } public TagResources build() { return new TagResources(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/OpenVpcIpamServiceRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenVpcIpamServiceRequest} extends {@link RequestModel} * * <p>OpenVpcIpamServiceRequest</p> */ public class OpenVpcIpamServiceRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private OpenVpcIpamServiceRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static OpenVpcIpamServiceRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<OpenVpcIpamServiceRequest, Builder> { private String clientToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(OpenVpcIpamServiceRequest request) { super(request); this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>Client token, used to ensure the idempotence of requests.</p> * <p>Generate a unique value for this parameter from your client to ensure it is unique across different requests. ClientToken supports only ASCII characters.</p> * <blockquote> * <p>If not specified, the system automatically uses the RequestId of the API request as the ClientToken identifier. The RequestId may differ for each API request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public OpenVpcIpamServiceRequest build() { return new OpenVpcIpamServiceRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/OpenVpcIpamServiceResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenVpcIpamServiceResponse} extends {@link TeaModel} * * <p>OpenVpcIpamServiceResponse</p> */ public class OpenVpcIpamServiceResponse 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 OpenVpcIpamServiceResponseBody body; private OpenVpcIpamServiceResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static OpenVpcIpamServiceResponse 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 OpenVpcIpamServiceResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<OpenVpcIpamServiceResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(OpenVpcIpamServiceResponseBody body); @Override OpenVpcIpamServiceResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<OpenVpcIpamServiceResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private OpenVpcIpamServiceResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(OpenVpcIpamServiceResponse 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(OpenVpcIpamServiceResponseBody body) { this.body = body; return this; } @Override public OpenVpcIpamServiceResponse build() { return new OpenVpcIpamServiceResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/OpenVpcIpamServiceResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenVpcIpamServiceResponseBody} extends {@link TeaModel} * * <p>OpenVpcIpamServiceResponseBody</p> */ public class OpenVpcIpamServiceResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private OpenVpcIpamServiceResponseBody(Builder builder) { this.code = builder.code; this.message = builder.message; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static OpenVpcIpamServiceResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String code; private String message; private String requestId; private Builder() { } private Builder(OpenVpcIpamServiceResponseBody model) { this.code = model.code; this.message = model.message; this.requestId = model.requestId; } /** * <p>Status code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>Information returned upon successful IPAM activation.</p> * * <strong>example:</strong> * <p>successful</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>Request ID.</p> * * <strong>example:</strong> * <p>3F814C37-B032-5477-AF5A-2925D0593CD4</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public OpenVpcIpamServiceResponseBody build() { return new OpenVpcIpamServiceResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/TagResourcesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; 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("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @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.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; 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 ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public java.util.List<String> getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<TagResourcesRequest, Builder> { private String ownerAccount; private Long ownerId; private String regionId; private java.util.List<String> resourceId; private String resourceOwnerAccount; private Long resourceOwnerId; private String resourceType; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(TagResourcesRequest request) { super(request); this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.resourceType = request.resourceType; this.tag = request.tag; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the resource.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-beijing</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The IDs of the resources.</p> * <p>This parameter is required.</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; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The resource type. Valid values:</p> * <ul> * <li><strong>IPAM</strong></li> * <li><strong>IPAMSCOPE</strong></li> * <li><strong>IPAMPOOL</strong></li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>IPAM</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The tags to add to the resources.</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 tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p> * <p>The tag key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It cannot start with a <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value. You can specify at most 20 tag values. The tag value can be an empty string.</p> * <p>The tag value can be up to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It cannot start with a <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/TagResourcesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; 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-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/TagResourcesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; 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>BF872550-9700-52FD-839C-4D3F05543FA8</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public TagResourcesResponseBody build() { return new TagResourcesResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UntagResourcesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; 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("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @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.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; 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 ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public java.util.List<String> getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return tagKey */ public java.util.List<String> getTagKey() { return this.tagKey; } public static final class Builder extends Request.Builder<UntagResourcesRequest, Builder> { private Boolean all; private String ownerAccount; private Long ownerId; private String regionId; private java.util.List<String> resourceId; private String resourceOwnerAccount; private Long resourceOwnerId; private String resourceType; private java.util.List<String> tagKey; private Builder() { super(); } private Builder(UntagResourcesRequest request) { super(request); this.all = request.all; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.resourceType = request.resourceType; this.tagKey = request.tagKey; } /** * <p>Specifies whether to remove all tags from the specified resource. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder all(Boolean all) { this.putQueryParameter("All", all); this.all = all; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the resource.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The resource IDs.</p> * <p>This parameter is required.</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; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The resource type. Valid values:</p> * <ul> * <li><strong>IPAM</strong></li> * <li><strong>IPAMSCOPE</strong></li> * <li><strong>IPAMPOOL</strong></li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>IPAM</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The keys of the tags that you want to remove from the resource.</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-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UntagResourcesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; 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-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UntagResourcesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; 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>44C884BD-2D56-5637-A523-1FA920A01E7D</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public UntagResourcesResponseBody build() { return new UntagResourcesResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamPoolAllocationRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamPoolAllocationRequest} extends {@link RequestModel} * * <p>UpdateIpamPoolAllocationRequest</p> */ public class UpdateIpamPoolAllocationRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolAllocationDescription") private String ipamPoolAllocationDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolAllocationId") @com.aliyun.core.annotation.Validation(required = true) private String ipamPoolAllocationId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolAllocationName") private String ipamPoolAllocationName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private UpdateIpamPoolAllocationRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamPoolAllocationDescription = builder.ipamPoolAllocationDescription; this.ipamPoolAllocationId = builder.ipamPoolAllocationId; this.ipamPoolAllocationName = builder.ipamPoolAllocationName; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static UpdateIpamPoolAllocationRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamPoolAllocationDescription */ public String getIpamPoolAllocationDescription() { return this.ipamPoolAllocationDescription; } /** * @return ipamPoolAllocationId */ public String getIpamPoolAllocationId() { return this.ipamPoolAllocationId; } /** * @return ipamPoolAllocationName */ public String getIpamPoolAllocationName() { return this.ipamPoolAllocationName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<UpdateIpamPoolAllocationRequest, Builder> { private String clientToken; private Boolean dryRun; private String ipamPoolAllocationDescription; private String ipamPoolAllocationId; private String ipamPoolAllocationName; private String regionId; private Builder() { super(); } private Builder(UpdateIpamPoolAllocationRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamPoolAllocationDescription = request.ipamPoolAllocationDescription; this.ipamPoolAllocationId = request.ipamPoolAllocationId; this.ipamPoolAllocationName = request.ipamPoolAllocationName; this.regionId = request.regionId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to precheck this request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs a dry run without modifying the CIDR blocks of IPAM pools. The system checks the required parameters, request syntax, and limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.</li> * <li><strong>false</strong> (default): performs a dry run and the actual request. If the request passes the check, an HTTP 2xx status code is returned and the CIDR allocation information of the IPAM address pool is modified.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The description of the CIDR allocation of the IPAM pool.</p> * <p>The description must be 1 to 256 characters in length and start with a letter, but cannot start with a <code>http://</code> or <code>https://</code>. This parameter is empty by default.</p> * * <strong>example:</strong> * <p>test description</p> */ public Builder ipamPoolAllocationDescription(String ipamPoolAllocationDescription) { this.putQueryParameter("IpamPoolAllocationDescription", ipamPoolAllocationDescription); this.ipamPoolAllocationDescription = ipamPoolAllocationDescription; return this; } /** * <p>The ID of the instance to which CIDR blocks are allocated from the IPAM pool.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-pool-alloc-112za33e4****</p> */ public Builder ipamPoolAllocationId(String ipamPoolAllocationId) { this.putQueryParameter("IpamPoolAllocationId", ipamPoolAllocationId); this.ipamPoolAllocationId = ipamPoolAllocationId; return this; } /** * <p>The name of the CIDR allocation of the IPAM pool.</p> * <p>It must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test name</p> */ public Builder ipamPoolAllocationName(String ipamPoolAllocationName) { this.putQueryParameter("IpamPoolAllocationName", ipamPoolAllocationName); this.ipamPoolAllocationName = ipamPoolAllocationName; return this; } /** * <p>The ID of the region where you want to perform the operation. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public UpdateIpamPoolAllocationRequest build() { return new UpdateIpamPoolAllocationRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamPoolAllocationResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamPoolAllocationResponse} extends {@link TeaModel} * * <p>UpdateIpamPoolAllocationResponse</p> */ public class UpdateIpamPoolAllocationResponse 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 UpdateIpamPoolAllocationResponseBody body; private UpdateIpamPoolAllocationResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UpdateIpamPoolAllocationResponse 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 UpdateIpamPoolAllocationResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UpdateIpamPoolAllocationResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UpdateIpamPoolAllocationResponseBody body); @Override UpdateIpamPoolAllocationResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UpdateIpamPoolAllocationResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UpdateIpamPoolAllocationResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UpdateIpamPoolAllocationResponse 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(UpdateIpamPoolAllocationResponseBody body) { this.body = body; return this; } @Override public UpdateIpamPoolAllocationResponse build() { return new UpdateIpamPoolAllocationResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamPoolAllocationResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamPoolAllocationResponseBody} extends {@link TeaModel} * * <p>UpdateIpamPoolAllocationResponseBody</p> */ public class UpdateIpamPoolAllocationResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private UpdateIpamPoolAllocationResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static UpdateIpamPoolAllocationResponseBody 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(UpdateIpamPoolAllocationResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>F4650E33-895C-53F0-9CD5-D1338F322DE8</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public UpdateIpamPoolAllocationResponseBody build() { return new UpdateIpamPoolAllocationResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamPoolRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamPoolRequest} extends {@link RequestModel} * * <p>UpdateIpamPoolRequest</p> */ public class UpdateIpamPoolRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AllocationDefaultCidrMask") private Integer allocationDefaultCidrMask; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AllocationMaxCidrMask") private Integer allocationMaxCidrMask; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AllocationMinCidrMask") private Integer allocationMinCidrMask; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AutoImport") private Boolean autoImport; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClearAllocationDefaultCidrMask") private Boolean clearAllocationDefaultCidrMask; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolDescription") private String ipamPoolDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolId") @com.aliyun.core.annotation.Validation(required = true) private String ipamPoolId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamPoolName") private String ipamPoolName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private UpdateIpamPoolRequest(Builder builder) { super(builder); this.allocationDefaultCidrMask = builder.allocationDefaultCidrMask; this.allocationMaxCidrMask = builder.allocationMaxCidrMask; this.allocationMinCidrMask = builder.allocationMinCidrMask; this.autoImport = builder.autoImport; this.clearAllocationDefaultCidrMask = builder.clearAllocationDefaultCidrMask; this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamPoolDescription = builder.ipamPoolDescription; this.ipamPoolId = builder.ipamPoolId; this.ipamPoolName = builder.ipamPoolName; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static UpdateIpamPoolRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return allocationDefaultCidrMask */ public Integer getAllocationDefaultCidrMask() { return this.allocationDefaultCidrMask; } /** * @return allocationMaxCidrMask */ public Integer getAllocationMaxCidrMask() { return this.allocationMaxCidrMask; } /** * @return allocationMinCidrMask */ public Integer getAllocationMinCidrMask() { return this.allocationMinCidrMask; } /** * @return autoImport */ public Boolean getAutoImport() { return this.autoImport; } /** * @return clearAllocationDefaultCidrMask */ public Boolean getClearAllocationDefaultCidrMask() { return this.clearAllocationDefaultCidrMask; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamPoolDescription */ public String getIpamPoolDescription() { return this.ipamPoolDescription; } /** * @return ipamPoolId */ public String getIpamPoolId() { return this.ipamPoolId; } /** * @return ipamPoolName */ public String getIpamPoolName() { return this.ipamPoolName; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<UpdateIpamPoolRequest, Builder> { private Integer allocationDefaultCidrMask; private Integer allocationMaxCidrMask; private Integer allocationMinCidrMask; private Boolean autoImport; private Boolean clearAllocationDefaultCidrMask; private String clientToken; private Boolean dryRun; private String ipamPoolDescription; private String ipamPoolId; private String ipamPoolName; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(UpdateIpamPoolRequest request) { super(request); this.allocationDefaultCidrMask = request.allocationDefaultCidrMask; this.allocationMaxCidrMask = request.allocationMaxCidrMask; this.allocationMinCidrMask = request.allocationMinCidrMask; this.autoImport = request.autoImport; this.clearAllocationDefaultCidrMask = request.clearAllocationDefaultCidrMask; this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamPoolDescription = request.ipamPoolDescription; this.ipamPoolId = request.ipamPoolId; this.ipamPoolName = request.ipamPoolName; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The new default network mask for the IPAM pool.</p> * <p>The mask must be <strong>0 to 32</strong> bits in length.</p> * * <strong>example:</strong> * <p>28</p> */ public Builder allocationDefaultCidrMask(Integer allocationDefaultCidrMask) { this.putQueryParameter("AllocationDefaultCidrMask", allocationDefaultCidrMask); this.allocationDefaultCidrMask = allocationDefaultCidrMask; return this; } /** * <p>The new maximum network mask for the IPAM pool.</p> * <p>The mask must be <strong>0 to 32</strong> bits in length.</p> * * <strong>example:</strong> * <p>32</p> */ public Builder allocationMaxCidrMask(Integer allocationMaxCidrMask) { this.putQueryParameter("AllocationMaxCidrMask", allocationMaxCidrMask); this.allocationMaxCidrMask = allocationMaxCidrMask; return this; } /** * <p>The new minimum network mask for the IPAM pool.</p> * <p>The mask must be <strong>0 to 32</strong> bits in length.</p> * * <strong>example:</strong> * <p>8</p> */ public Builder allocationMinCidrMask(Integer allocationMinCidrMask) { this.putQueryParameter("AllocationMinCidrMask", allocationMinCidrMask); this.allocationMinCidrMask = allocationMinCidrMask; return this; } /** * <p>Whether the pool has the auto-import feature enabled.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder autoImport(Boolean autoImport) { this.putQueryParameter("AutoImport", autoImport); this.autoImport = autoImport; return this; } /** * <p>Specifies whether to delete the default network mask for the IPAM pool. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder clearAllocationDefaultCidrMask(Boolean clearAllocationDefaultCidrMask) { this.putQueryParameter("ClearAllocationDefaultCidrMask", clearAllocationDefaultCidrMask); this.clearAllocationDefaultCidrMask = clearAllocationDefaultCidrMask; return this; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.</li> * <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The new description of the IPAM pool.</p> * <p>It must be 2 to 268 characters in length. It must start with a letter but cannot start with a <code>http://</code> or <code>https://</code>. This parameter is empty by default.</p> * * <strong>example:</strong> * <p>test description</p> */ public Builder ipamPoolDescription(String ipamPoolDescription) { this.putQueryParameter("IpamPoolDescription", ipamPoolDescription); this.ipamPoolDescription = ipamPoolDescription; return this; } /** * <p>The ID of the IPAM pool.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-pool-6rcq3tobayc20t****</p> */ public Builder ipamPoolId(String ipamPoolId) { this.putQueryParameter("IpamPoolId", ipamPoolId); this.ipamPoolId = ipamPoolId; return this; } /** * <p>The new name of the IPAM pool.</p> * <p>It must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipamPoolName(String ipamPoolName) { this.putQueryParameter("IpamPoolName", ipamPoolName); this.ipamPoolName = ipamPoolName; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public UpdateIpamPoolRequest build() { return new UpdateIpamPoolRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamPoolResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamPoolResponse} extends {@link TeaModel} * * <p>UpdateIpamPoolResponse</p> */ public class UpdateIpamPoolResponse 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 UpdateIpamPoolResponseBody body; private UpdateIpamPoolResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UpdateIpamPoolResponse 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 UpdateIpamPoolResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UpdateIpamPoolResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UpdateIpamPoolResponseBody body); @Override UpdateIpamPoolResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UpdateIpamPoolResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UpdateIpamPoolResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UpdateIpamPoolResponse 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(UpdateIpamPoolResponseBody body) { this.body = body; return this; } @Override public UpdateIpamPoolResponse build() { return new UpdateIpamPoolResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamPoolResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamPoolResponseBody} extends {@link TeaModel} * * <p>UpdateIpamPoolResponseBody</p> */ public class UpdateIpamPoolResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private UpdateIpamPoolResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static UpdateIpamPoolResponseBody 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(UpdateIpamPoolResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>9DED57B9-7654-5B6D-93F7-BCA5839FEE38</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public UpdateIpamPoolResponseBody build() { return new UpdateIpamPoolResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamRequest} extends {@link RequestModel} * * <p>UpdateIpamRequest</p> */ public class UpdateIpamRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AddOperatingRegion") private java.util.List<String> addOperatingRegion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamDescription") private String ipamDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamId") @com.aliyun.core.annotation.Validation(required = true) private String ipamId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamName") private String ipamName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RemoveOperatingRegion") private java.util.List<String> removeOperatingRegion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private UpdateIpamRequest(Builder builder) { super(builder); this.addOperatingRegion = builder.addOperatingRegion; this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamDescription = builder.ipamDescription; this.ipamId = builder.ipamId; this.ipamName = builder.ipamName; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.removeOperatingRegion = builder.removeOperatingRegion; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static UpdateIpamRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return addOperatingRegion */ public java.util.List<String> getAddOperatingRegion() { return this.addOperatingRegion; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamDescription */ public String getIpamDescription() { return this.ipamDescription; } /** * @return ipamId */ public String getIpamId() { return this.ipamId; } /** * @return ipamName */ public String getIpamName() { return this.ipamName; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return removeOperatingRegion */ public java.util.List<String> getRemoveOperatingRegion() { return this.removeOperatingRegion; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<UpdateIpamRequest, Builder> { private java.util.List<String> addOperatingRegion; private String clientToken; private Boolean dryRun; private String ipamDescription; private String ipamId; private String ipamName; private String ownerAccount; private Long ownerId; private String regionId; private java.util.List<String> removeOperatingRegion; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(UpdateIpamRequest request) { super(request); this.addOperatingRegion = request.addOperatingRegion; this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamDescription = request.ipamDescription; this.ipamId = request.ipamId; this.ipamName = request.ipamName; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.removeOperatingRegion = request.removeOperatingRegion; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The effective region that you want to add.</p> */ public Builder addOperatingRegion(java.util.List<String> addOperatingRegion) { this.putQueryParameter("AddOperatingRegion", addOperatingRegion); this.addOperatingRegion = addOperatingRegion; return this; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.</li> * <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The description of the IPAM.</p> * <p>It must be 2 to 256 characters in length and must start with a letter. It cannot start with <code>http://</code> or <code>https://</code>. The default value is empty.</p> * * <strong>example:</strong> * <p>test description</p> */ public Builder ipamDescription(String ipamDescription) { this.putQueryParameter("IpamDescription", ipamDescription); this.ipamDescription = ipamDescription; return this; } /** * <p>The ID of the IPAM.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-ccxbnsbhew0d6t****</p> */ public Builder ipamId(String ipamId) { this.putQueryParameter("IpamId", ipamId); this.ipamId = ipamId; return this; } /** * <p>The name of the IPAM.</p> * <p>It must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipamName(String ipamName) { this.putQueryParameter("IpamName", ipamName); this.ipamName = ipamName; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The effective region that you want to remove.</p> */ public Builder removeOperatingRegion(java.util.List<String> removeOperatingRegion) { this.putQueryParameter("RemoveOperatingRegion", removeOperatingRegion); this.removeOperatingRegion = removeOperatingRegion; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public UpdateIpamRequest build() { return new UpdateIpamRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamResourceDiscoveryRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamResourceDiscoveryRequest} extends {@link RequestModel} * * <p>UpdateIpamResourceDiscoveryRequest</p> */ public class UpdateIpamResourceDiscoveryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AddOperatingRegion") private java.util.List<String> addOperatingRegion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryDescription") private String ipamResourceDiscoveryDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryId") @com.aliyun.core.annotation.Validation(required = true) private String ipamResourceDiscoveryId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamResourceDiscoveryName") private String ipamResourceDiscoveryName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RemoveOperatingRegion") private java.util.List<String> removeOperatingRegion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private UpdateIpamResourceDiscoveryRequest(Builder builder) { super(builder); this.addOperatingRegion = builder.addOperatingRegion; this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamResourceDiscoveryDescription = builder.ipamResourceDiscoveryDescription; this.ipamResourceDiscoveryId = builder.ipamResourceDiscoveryId; this.ipamResourceDiscoveryName = builder.ipamResourceDiscoveryName; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.removeOperatingRegion = builder.removeOperatingRegion; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static UpdateIpamResourceDiscoveryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return addOperatingRegion */ public java.util.List<String> getAddOperatingRegion() { return this.addOperatingRegion; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamResourceDiscoveryDescription */ public String getIpamResourceDiscoveryDescription() { return this.ipamResourceDiscoveryDescription; } /** * @return ipamResourceDiscoveryId */ public String getIpamResourceDiscoveryId() { return this.ipamResourceDiscoveryId; } /** * @return ipamResourceDiscoveryName */ public String getIpamResourceDiscoveryName() { return this.ipamResourceDiscoveryName; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return removeOperatingRegion */ public java.util.List<String> getRemoveOperatingRegion() { return this.removeOperatingRegion; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<UpdateIpamResourceDiscoveryRequest, Builder> { private java.util.List<String> addOperatingRegion; private String clientToken; private Boolean dryRun; private String ipamResourceDiscoveryDescription; private String ipamResourceDiscoveryId; private String ipamResourceDiscoveryName; private String ownerAccount; private Long ownerId; private String regionId; private java.util.List<String> removeOperatingRegion; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(UpdateIpamResourceDiscoveryRequest request) { super(request); this.addOperatingRegion = request.addOperatingRegion; this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamResourceDiscoveryDescription = request.ipamResourceDiscoveryDescription; this.ipamResourceDiscoveryId = request.ipamResourceDiscoveryId; this.ipamResourceDiscoveryName = request.ipamResourceDiscoveryName; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.removeOperatingRegion = request.removeOperatingRegion; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The list of effective regions to add.</p> */ public Builder addOperatingRegion(java.util.List<String> addOperatingRegion) { this.putQueryParameter("AddOperatingRegion", addOperatingRegion); this.addOperatingRegion = addOperatingRegion; return this; } /** * <p>The client token used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform the dry run. Valid values:</p> * <ul> * <li><strong>true</strong>: Performs a dry run without modifying the resource discovery instance. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error code is returned. If the request passes the dry run, the DryRunOperation error code is returned.</li> * <li><strong>false</strong> (default): Performs a dry run and the actual request. If the request passes the check, an HTTP 2xx status code is returned and the resource discovery instance is modified.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The description of resource discovery.</p> * * <strong>example:</strong> * <p>test description</p> */ public Builder ipamResourceDiscoveryDescription(String ipamResourceDiscoveryDescription) { this.putQueryParameter("IpamResourceDiscoveryDescription", ipamResourceDiscoveryDescription); this.ipamResourceDiscoveryDescription = ipamResourceDiscoveryDescription; return this; } /** * <p>The ID of resource discovery instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-res-disco-jt5f2af2u6nk2z321****</p> */ public Builder ipamResourceDiscoveryId(String ipamResourceDiscoveryId) { this.putQueryParameter("IpamResourceDiscoveryId", ipamResourceDiscoveryId); this.ipamResourceDiscoveryId = ipamResourceDiscoveryId; return this; } /** * <p>The name of the resource discovery.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipamResourceDiscoveryName(String ipamResourceDiscoveryName) { this.putQueryParameter("IpamResourceDiscoveryName", ipamResourceDiscoveryName); this.ipamResourceDiscoveryName = ipamResourceDiscoveryName; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The request region.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The list of effective regions to remove.</p> */ public Builder removeOperatingRegion(java.util.List<String> removeOperatingRegion) { this.putQueryParameter("RemoveOperatingRegion", removeOperatingRegion); this.removeOperatingRegion = removeOperatingRegion; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public UpdateIpamResourceDiscoveryRequest build() { return new UpdateIpamResourceDiscoveryRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamResourceDiscoveryResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamResourceDiscoveryResponse} extends {@link TeaModel} * * <p>UpdateIpamResourceDiscoveryResponse</p> */ public class UpdateIpamResourceDiscoveryResponse 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 UpdateIpamResourceDiscoveryResponseBody body; private UpdateIpamResourceDiscoveryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UpdateIpamResourceDiscoveryResponse 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 UpdateIpamResourceDiscoveryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UpdateIpamResourceDiscoveryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UpdateIpamResourceDiscoveryResponseBody body); @Override UpdateIpamResourceDiscoveryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UpdateIpamResourceDiscoveryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UpdateIpamResourceDiscoveryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UpdateIpamResourceDiscoveryResponse 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(UpdateIpamResourceDiscoveryResponseBody body) { this.body = body; return this; } @Override public UpdateIpamResourceDiscoveryResponse build() { return new UpdateIpamResourceDiscoveryResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamResourceDiscoveryResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamResourceDiscoveryResponseBody} extends {@link TeaModel} * * <p>UpdateIpamResourceDiscoveryResponseBody</p> */ public class UpdateIpamResourceDiscoveryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private UpdateIpamResourceDiscoveryResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static UpdateIpamResourceDiscoveryResponseBody 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(UpdateIpamResourceDiscoveryResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>BB2C39DE-CEB8-595A-981A-F2EFCBE7324E</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public UpdateIpamResourceDiscoveryResponseBody build() { return new UpdateIpamResourceDiscoveryResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamResponse} extends {@link TeaModel} * * <p>UpdateIpamResponse</p> */ public class UpdateIpamResponse 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 UpdateIpamResponseBody body; private UpdateIpamResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UpdateIpamResponse 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 UpdateIpamResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UpdateIpamResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UpdateIpamResponseBody body); @Override UpdateIpamResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UpdateIpamResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UpdateIpamResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UpdateIpamResponse 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(UpdateIpamResponseBody body) { this.body = body; return this; } @Override public UpdateIpamResponse build() { return new UpdateIpamResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamResponseBody} extends {@link TeaModel} * * <p>UpdateIpamResponseBody</p> */ public class UpdateIpamResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private UpdateIpamResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static UpdateIpamResponseBody 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(UpdateIpamResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>F4650E33-895C-53F0-9CD5-D1338F322DE8</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public UpdateIpamResponseBody build() { return new UpdateIpamResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamScopeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamScopeRequest} extends {@link RequestModel} * * <p>UpdateIpamScopeRequest</p> */ public class UpdateIpamScopeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamScopeDescription") private String ipamScopeDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamScopeId") @com.aliyun.core.annotation.Validation(required = true) private String ipamScopeId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpamScopeName") private String ipamScopeName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private UpdateIpamScopeRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipamScopeDescription = builder.ipamScopeDescription; this.ipamScopeId = builder.ipamScopeId; this.ipamScopeName = builder.ipamScopeName; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static UpdateIpamScopeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipamScopeDescription */ public String getIpamScopeDescription() { return this.ipamScopeDescription; } /** * @return ipamScopeId */ public String getIpamScopeId() { return this.ipamScopeId; } /** * @return ipamScopeName */ public String getIpamScopeName() { return this.ipamScopeName; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<UpdateIpamScopeRequest, Builder> { private String clientToken; private Boolean dryRun; private String ipamScopeDescription; private String ipamScopeId; private String ipamScopeName; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(UpdateIpamScopeRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipamScopeDescription = request.ipamScopeDescription; this.ipamScopeId = request.ipamScopeId; this.ipamScopeName = request.ipamScopeName; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, DryRunOperation is returned.</li> * <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The new description of the IPAM scope.</p> * <p>It must be 2 to 256 characters in length. It must start with a letter but cannot start with <code>http://</code> or <code>https://</code>. This parameter is empty by default.</p> * * <strong>example:</strong> * <p>test description</p> */ public Builder ipamScopeDescription(String ipamScopeDescription) { this.putQueryParameter("IpamScopeDescription", ipamScopeDescription); this.ipamScopeDescription = ipamScopeDescription; return this; } /** * <p>The ID of the IPAM scope.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipam-scope-glfmcyldpm8lsy****</p> */ public Builder ipamScopeId(String ipamScopeId) { this.putQueryParameter("IpamScopeId", ipamScopeId); this.ipamScopeId = ipamScopeId; return this; } /** * <p>The new name of the IPAM scope.</p> * <p>It must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipamScopeName(String ipamScopeName) { this.putQueryParameter("IpamScopeName", ipamScopeName); this.ipamScopeName = ipamScopeName; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the IPAM instance is hosted. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public UpdateIpamScopeRequest build() { return new UpdateIpamScopeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamScopeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamScopeResponse} extends {@link TeaModel} * * <p>UpdateIpamScopeResponse</p> */ public class UpdateIpamScopeResponse 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 UpdateIpamScopeResponseBody body; private UpdateIpamScopeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UpdateIpamScopeResponse 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 UpdateIpamScopeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UpdateIpamScopeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UpdateIpamScopeResponseBody body); @Override UpdateIpamScopeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UpdateIpamScopeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UpdateIpamScopeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UpdateIpamScopeResponse 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(UpdateIpamScopeResponseBody body) { this.body = body; return this; } @Override public UpdateIpamScopeResponse build() { return new UpdateIpamScopeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228
java-sources/com/aliyun/alibabacloud-vpcipam20230228/2.0.6/com/aliyun/sdk/service/vpcipam20230228/models/UpdateIpamScopeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcipam20230228.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link UpdateIpamScopeResponseBody} extends {@link TeaModel} * * <p>UpdateIpamScopeResponseBody</p> */ public class UpdateIpamScopeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private UpdateIpamScopeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static UpdateIpamScopeResponseBody 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(UpdateIpamScopeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>BA8054F5-852A-570A-ACFF-BCA63E0B02D5</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public UpdateIpamScopeResponseBody build() { return new UpdateIpamScopeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpcpeer20220101/2.0.5/com/aliyun/sdk/service
java-sources/com/aliyun/alibabacloud-vpcpeer20220101/2.0.5/com/aliyun/sdk/service/vpcpeer20220101/AsyncClient.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcpeer20220101; import com.aliyun.core.utils.SdkAutoCloseable; import com.aliyun.sdk.service.vpcpeer20220101.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(); } /** * <b>description</b> : * <p> For a cross-account VPC peering connection, the connection is activated only after the accepter VPC accepts the connection request.</p> * <ul> * <li><strong>AcceptVpcPeerConnection</strong> is an asynchronous operation. After a request is sent, the system returns a <strong>request ID</strong> and runs the operation in the background. You can call the <a href="https://help.aliyun.com/document_detail/426100.html">GetVpcPeerConnectionAttribute</a> operation to query the status of the task.<ul> * <li>If a VPC peering connection is in the <strong>Updating</strong> state, the VPC peering connection is being activated.</li> * <li>If a VPC peering connection is in the <strong>Activated</strong> state, the VPC peering connection is activated.</li> * </ul> * </li> * <li>You cannot repeatedly call the <strong>AcceptVpcPeerConnection</strong> operation within a specific period of time.</li> * </ul> * * @param request the request parameters of AcceptVpcPeerConnection AcceptVpcPeerConnectionRequest * @return AcceptVpcPeerConnectionResponse */ CompletableFuture<AcceptVpcPeerConnectionResponse> acceptVpcPeerConnection(AcceptVpcPeerConnectionRequest request); /** * <b>description</b> : * <p>Before you create a VPC peering connection, take note of the following items:</p> * <ul> * <li><strong>CreateVpcPeerConnection</strong> is an asynchronous operation. After a request is sent, the system returns an <strong>instance ID</strong> and runs the task in the background. You can call <a href="https://help.aliyun.com/document_detail/426095.html">GetVpcPeerConnectionAttribute</a> to query the status of the task.<ul> * <li>If the VPC peering connection is in the <strong>Creating</strong> state, the VPC peering connection is being created.</li> * <li>If the VPC peering connection is in the <strong>Activated</strong> state, the VPC peering connection is created.</li> * <li>If the VPC peering connection is in the <strong>Accepting</strong> state, it is a cross-account connection. The connection needs to be accepted on the accepter side.</li> * </ul> * </li> * <li>You cannot repeatedly call <strong>CreateVpcPeerConnection</strong> within the specified period of time. * When you create a VPC peering connection, the system automatically activates Cloud Data Transfer (CDT) for you.</li> * </ul> * * @param request the request parameters of CreateVpcPeerConnection CreateVpcPeerConnectionRequest * @return CreateVpcPeerConnectionResponse */ CompletableFuture<CreateVpcPeerConnectionResponse> createVpcPeerConnection(CreateVpcPeerConnectionRequest request); /** * <b>description</b> : * <p> You can delete VPC peering connections. After you delete a VPC peering connection, your service is affected. Proceed with caution. * * If you forcefully delete a VPC peering connection, the system deletes the routes that point to the VPC peering connection from the VPC route table. * * If you do not forcefully delete a VPC peering connection, the system does not delete these routes. You must manually delete them.</p> * <ul> * <li>The <strong>DeleteVpcPeerConnection</strong> operation is asynchronous. After you send a request, the system returns <strong>RequestId</strong>, but the operation is still being performed in the background. You can call the <a href="https://help.aliyun.com/document_detail/426100.html">GetVpcPeerConnectionAttribute</a> operation to query the status of a VPC peering connection.<ul> * <li>If a VPC peering connection is in the <strong>Deleting</strong> state, it is being deleted.</li> * <li>If a VPC peering connection is in the <strong>Deleted</strong> state, it is deleted.</li> * </ul> * </li> * <li>You cannot repeatedly call the <strong>DeleteVpcPeerConnection</strong> operation for the same VPC peering connection within the specified period of time.</li> * </ul> * * @param request the request parameters of DeleteVpcPeerConnection DeleteVpcPeerConnectionRequest * @return DeleteVpcPeerConnectionResponse */ CompletableFuture<DeleteVpcPeerConnectionResponse> deleteVpcPeerConnection(DeleteVpcPeerConnectionRequest request); /** * @param request the request parameters of GetVpcPeerConnectionAttribute GetVpcPeerConnectionAttributeRequest * @return GetVpcPeerConnectionAttributeResponse */ CompletableFuture<GetVpcPeerConnectionAttributeResponse> getVpcPeerConnectionAttribute(GetVpcPeerConnectionAttributeRequest request); /** * <b>description</b> : * <p> Set <strong>ResourceId.N</strong> or <strong>Tag.N</strong> that consists of <strong>Tag.N.Key</strong> and <strong>Tag.N.Value</strong> in the request to specify the object to be queried.</p> * <ul> * <li><strong>Tag.N</strong> is a resource tag that consists of a key-value pair. If you set only <strong>Tag.N.Key</strong>, all tag values that are associated with the specified key are returned. If you set only <strong>Tag.N.Value</strong>, an error message is returned.</li> * <li>If you set <strong>Tag.N</strong> and <strong>ResourceId.N</strong> to filter tags, <strong>ResourceId.N</strong> must match all specified key-value pairs.</li> * <li>If you specify multiple key-value pairs, resources that contain these key-value pairs are returned.</li> * </ul> * * @param request the request parameters of ListTagResources ListTagResourcesRequest * @return ListTagResourcesResponse */ CompletableFuture<ListTagResourcesResponse> listTagResources(ListTagResourcesRequest request); /** * @param request the request parameters of ListVpcPeerConnections ListVpcPeerConnectionsRequest * @return ListVpcPeerConnectionsResponse */ CompletableFuture<ListVpcPeerConnectionsResponse> listVpcPeerConnections(ListVpcPeerConnectionsRequest request); /** * <b>description</b> : * <p> The <strong>ModifyVpcPeerConnection</strong> operation is asynchronous. After you send a request, the system returns <strong>RequestId</strong>, but the operation is still being performed in the background. You can call the <a href="https://help.aliyun.com/document_detail/426100.html">GetVpcPeerConnectionAttribute</a> operation to query the status of a VPC peering connection. * * If a VPC peering connection is in the <strong>Updating</strong> state, the VPC peering connection is being modified. * * If a VPC peering connection is in the <strong>Activated</strong> state, the VPC peering connection is modified.</p> * <ul> * <li>You cannot repeatedly call the <strong>ModifyVpcPeerConnection</strong> operation for the same VPC peering connection within the specified period of time.</li> * </ul> * * @param request the request parameters of ModifyVpcPeerConnection ModifyVpcPeerConnectionRequest * @return ModifyVpcPeerConnectionResponse */ CompletableFuture<ModifyVpcPeerConnectionResponse> modifyVpcPeerConnection(ModifyVpcPeerConnectionRequest request); /** * @param request the request parameters of MoveResourceGroup MoveResourceGroupRequest * @return MoveResourceGroupResponse */ CompletableFuture<MoveResourceGroupResponse> moveResourceGroup(MoveResourceGroupRequest request); /** * <b>description</b> : * <p> An acceptor VPC can reject a connection request from the requester VPC of a cross-account VPC peering connection. After the connection request is rejected, the VPC peering connection enters the <strong>Rejected</strong> state.</p> * <ul> * <li>You cannot repeatedly call the <strong>RejectVpcPeerConnection</strong> operation for the same VPC peering connection within the specified period of time.</li> * </ul> * * @param request the request parameters of RejectVpcPeerConnection RejectVpcPeerConnectionRequest * @return RejectVpcPeerConnectionResponse */ CompletableFuture<RejectVpcPeerConnectionResponse> rejectVpcPeerConnection(RejectVpcPeerConnectionRequest request); /** * <b>description</b> : * <p>Tags are used to classify instances. Each tag consists of a key-value pair. Before you use tags, take note of the following limits:</p> * <ul> * <li>The keys of tags that are added to the same instance must be unique.</li> * <li>You cannot create tags without adding them to instances. All tags must be added to instances.</li> * <li>Tag information is not shared across regions. * For example, you cannot view the tags that are created in the China (Hangzhou) region from the China (Shanghai) region.</li> * <li>For the same account and region, tags added to different VPC peering connections are shared. * For example, if a tag is added to a VPC peering connection, the tag can also be added to other VPC peering connections within the same account and region. You can modify the key and the value of a tag or remove a tag from an instance. After you delete an instance, all tags that are added to the instance are deleted.</li> * <li>You can add up to 20 tags to each instance. Before you add a tag to an instance, the system automatically checks the number of existing tags. An error message is returned if the maximum number of tags is reached.</li> * </ul> * * @param request the request parameters of TagResources TagResourcesRequest * @return TagResourcesResponse */ CompletableFuture<TagResourcesResponse> tagResources(TagResourcesRequest request); /** * @param request the request parameters of UnTagResources UnTagResourcesRequest * @return UnTagResourcesResponse */ CompletableFuture<UnTagResourcesResponse> unTagResources(UnTagResourcesRequest request); }
0
java-sources/com/aliyun/alibabacloud-vpcpeer20220101/2.0.5/com/aliyun/sdk/service
java-sources/com/aliyun/alibabacloud-vpcpeer20220101/2.0.5/com/aliyun/sdk/service/vpcpeer20220101/DefaultAsyncClient.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpcpeer20220101; import com.aliyun.core.http.*; import com.aliyun.sdk.service.vpcpeer20220101.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 = "VpcPeer"; this.version = "2022-01-01"; this.endpointRule = "central"; 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(); } /** * <b>description</b> : * <p> For a cross-account VPC peering connection, the connection is activated only after the accepter VPC accepts the connection request.</p> * <ul> * <li><strong>AcceptVpcPeerConnection</strong> is an asynchronous operation. After a request is sent, the system returns a <strong>request ID</strong> and runs the operation in the background. You can call the <a href="https://help.aliyun.com/document_detail/426100.html">GetVpcPeerConnectionAttribute</a> operation to query the status of the task.<ul> * <li>If a VPC peering connection is in the <strong>Updating</strong> state, the VPC peering connection is being activated.</li> * <li>If a VPC peering connection is in the <strong>Activated</strong> state, the VPC peering connection is activated.</li> * </ul> * </li> * <li>You cannot repeatedly call the <strong>AcceptVpcPeerConnection</strong> operation within a specific period of time.</li> * </ul> * * @param request the request parameters of AcceptVpcPeerConnection AcceptVpcPeerConnectionRequest * @return AcceptVpcPeerConnectionResponse */ @Override public CompletableFuture<AcceptVpcPeerConnectionResponse> acceptVpcPeerConnection(AcceptVpcPeerConnectionRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AcceptVpcPeerConnection").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AcceptVpcPeerConnectionResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<AcceptVpcPeerConnectionResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Before you create a VPC peering connection, take note of the following items:</p> * <ul> * <li><strong>CreateVpcPeerConnection</strong> is an asynchronous operation. After a request is sent, the system returns an <strong>instance ID</strong> and runs the task in the background. You can call <a href="https://help.aliyun.com/document_detail/426095.html">GetVpcPeerConnectionAttribute</a> to query the status of the task.<ul> * <li>If the VPC peering connection is in the <strong>Creating</strong> state, the VPC peering connection is being created.</li> * <li>If the VPC peering connection is in the <strong>Activated</strong> state, the VPC peering connection is created.</li> * <li>If the VPC peering connection is in the <strong>Accepting</strong> state, it is a cross-account connection. The connection needs to be accepted on the accepter side.</li> * </ul> * </li> * <li>You cannot repeatedly call <strong>CreateVpcPeerConnection</strong> within the specified period of time. * When you create a VPC peering connection, the system automatically activates Cloud Data Transfer (CDT) for you.</li> * </ul> * * @param request the request parameters of CreateVpcPeerConnection CreateVpcPeerConnectionRequest * @return CreateVpcPeerConnectionResponse */ @Override public CompletableFuture<CreateVpcPeerConnectionResponse> createVpcPeerConnection(CreateVpcPeerConnectionRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateVpcPeerConnection").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateVpcPeerConnectionResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateVpcPeerConnectionResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p> You can delete VPC peering connections. After you delete a VPC peering connection, your service is affected. Proceed with caution. * * If you forcefully delete a VPC peering connection, the system deletes the routes that point to the VPC peering connection from the VPC route table. * * If you do not forcefully delete a VPC peering connection, the system does not delete these routes. You must manually delete them.</p> * <ul> * <li>The <strong>DeleteVpcPeerConnection</strong> operation is asynchronous. After you send a request, the system returns <strong>RequestId</strong>, but the operation is still being performed in the background. You can call the <a href="https://help.aliyun.com/document_detail/426100.html">GetVpcPeerConnectionAttribute</a> operation to query the status of a VPC peering connection.<ul> * <li>If a VPC peering connection is in the <strong>Deleting</strong> state, it is being deleted.</li> * <li>If a VPC peering connection is in the <strong>Deleted</strong> state, it is deleted.</li> * </ul> * </li> * <li>You cannot repeatedly call the <strong>DeleteVpcPeerConnection</strong> operation for the same VPC peering connection within the specified period of time.</li> * </ul> * * @param request the request parameters of DeleteVpcPeerConnection DeleteVpcPeerConnectionRequest * @return DeleteVpcPeerConnectionResponse */ @Override public CompletableFuture<DeleteVpcPeerConnectionResponse> deleteVpcPeerConnection(DeleteVpcPeerConnectionRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteVpcPeerConnection").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteVpcPeerConnectionResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteVpcPeerConnectionResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of GetVpcPeerConnectionAttribute GetVpcPeerConnectionAttributeRequest * @return GetVpcPeerConnectionAttributeResponse */ @Override public CompletableFuture<GetVpcPeerConnectionAttributeResponse> getVpcPeerConnectionAttribute(GetVpcPeerConnectionAttributeRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetVpcPeerConnectionAttribute").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetVpcPeerConnectionAttributeResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<GetVpcPeerConnectionAttributeResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p> Set <strong>ResourceId.N</strong> or <strong>Tag.N</strong> that consists of <strong>Tag.N.Key</strong> and <strong>Tag.N.Value</strong> in the request to specify the object to be queried.</p> * <ul> * <li><strong>Tag.N</strong> is a resource tag that consists of a key-value pair. If you set only <strong>Tag.N.Key</strong>, all tag values that are associated with the specified key are returned. If you set only <strong>Tag.N.Value</strong>, an error message is returned.</li> * <li>If you set <strong>Tag.N</strong> and <strong>ResourceId.N</strong> to filter tags, <strong>ResourceId.N</strong> must match all specified key-value pairs.</li> * <li>If you specify multiple key-value pairs, resources that contain these key-value pairs are returned.</li> * </ul> * * @param request the request parameters of ListTagResources ListTagResourcesRequest * @return ListTagResourcesResponse */ @Override public CompletableFuture<ListTagResourcesResponse> listTagResources(ListTagResourcesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListTagResources").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListTagResourcesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListTagResourcesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ListVpcPeerConnections ListVpcPeerConnectionsRequest * @return ListVpcPeerConnectionsResponse */ @Override public CompletableFuture<ListVpcPeerConnectionsResponse> listVpcPeerConnections(ListVpcPeerConnectionsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListVpcPeerConnections").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListVpcPeerConnectionsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListVpcPeerConnectionsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p> The <strong>ModifyVpcPeerConnection</strong> operation is asynchronous. After you send a request, the system returns <strong>RequestId</strong>, but the operation is still being performed in the background. You can call the <a href="https://help.aliyun.com/document_detail/426100.html">GetVpcPeerConnectionAttribute</a> operation to query the status of a VPC peering connection. * * If a VPC peering connection is in the <strong>Updating</strong> state, the VPC peering connection is being modified. * * If a VPC peering connection is in the <strong>Activated</strong> state, the VPC peering connection is modified.</p> * <ul> * <li>You cannot repeatedly call the <strong>ModifyVpcPeerConnection</strong> operation for the same VPC peering connection within the specified period of time.</li> * </ul> * * @param request the request parameters of ModifyVpcPeerConnection ModifyVpcPeerConnectionRequest * @return ModifyVpcPeerConnectionResponse */ @Override public CompletableFuture<ModifyVpcPeerConnectionResponse> modifyVpcPeerConnection(ModifyVpcPeerConnectionRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyVpcPeerConnection").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyVpcPeerConnectionResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ModifyVpcPeerConnectionResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of MoveResourceGroup MoveResourceGroupRequest * @return MoveResourceGroupResponse */ @Override public CompletableFuture<MoveResourceGroupResponse> moveResourceGroup(MoveResourceGroupRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("MoveResourceGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(MoveResourceGroupResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<MoveResourceGroupResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p> An acceptor VPC can reject a connection request from the requester VPC of a cross-account VPC peering connection. After the connection request is rejected, the VPC peering connection enters the <strong>Rejected</strong> state.</p> * <ul> * <li>You cannot repeatedly call the <strong>RejectVpcPeerConnection</strong> operation for the same VPC peering connection within the specified period of time.</li> * </ul> * * @param request the request parameters of RejectVpcPeerConnection RejectVpcPeerConnectionRequest * @return RejectVpcPeerConnectionResponse */ @Override public CompletableFuture<RejectVpcPeerConnectionResponse> rejectVpcPeerConnection(RejectVpcPeerConnectionRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RejectVpcPeerConnection").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RejectVpcPeerConnectionResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<RejectVpcPeerConnectionResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Tags are used to classify instances. Each tag consists of a key-value pair. Before you use tags, take note of the following limits:</p> * <ul> * <li>The keys of tags that are added to the same instance must be unique.</li> * <li>You cannot create tags without adding them to instances. All tags must be added to instances.</li> * <li>Tag information is not shared across regions. * For example, you cannot view the tags that are created in the China (Hangzhou) region from the China (Shanghai) region.</li> * <li>For the same account and region, tags added to different VPC peering connections are shared. * For example, if a tag is added to a VPC peering connection, the tag can also be added to other VPC peering connections within the same account and region. You can modify the key and the value of a tag or remove a tag from an instance. After you delete an instance, all tags that are added to the instance are deleted.</li> * <li>You can add up to 20 tags to each instance. Before you add a tag to an instance, the system automatically checks the number of existing tags. An error message is returned if the maximum number of tags is reached.</li> * </ul> * * @param request the request parameters of TagResources TagResourcesRequest * @return TagResourcesResponse */ @Override public CompletableFuture<TagResourcesResponse> tagResources(TagResourcesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("TagResources").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(TagResourcesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<TagResourcesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of UnTagResources UnTagResourcesRequest * @return UnTagResourcesResponse */ @Override public CompletableFuture<UnTagResourcesResponse> unTagResources(UnTagResourcesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UnTagResources").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UnTagResourcesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UnTagResourcesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } }