index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/com/aliyun/alibabacloud-resourcemanager20200331/1.0.8/com/aliyun/sdk/service/resourcemanager20200331 | java-sources/com/aliyun/alibabacloud-resourcemanager20200331/1.0.8/com/aliyun/sdk/service/resourcemanager20200331/models/UpdateFolderResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcemanager20200331.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateFolderResponseBody} extends {@link TeaModel}
*
* <p>UpdateFolderResponseBody</p>
*/
public class UpdateFolderResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Folder")
private Folder folder;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private UpdateFolderResponseBody(Builder builder) {
this.folder = builder.folder;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static UpdateFolderResponseBody create() {
return builder().build();
}
/**
* @return folder
*/
public Folder getFolder() {
return this.folder;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Folder folder;
private String requestId;
/**
* <p>The information of the folder.</p>
*/
public Builder folder(Folder folder) {
this.folder = folder;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>C2CBCA30-C8DD-423E-B4AD-4FB694C9180C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public UpdateFolderResponseBody build() {
return new UpdateFolderResponseBody(this);
}
}
/**
*
* {@link UpdateFolderResponseBody} extends {@link TeaModel}
*
* <p>UpdateFolderResponseBody</p>
*/
public static class Folder extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("FolderId")
private String folderId;
@com.aliyun.core.annotation.NameInMap("FolderName")
private String folderName;
@com.aliyun.core.annotation.NameInMap("ParentFolderId")
private String parentFolderId;
private Folder(Builder builder) {
this.createTime = builder.createTime;
this.folderId = builder.folderId;
this.folderName = builder.folderName;
this.parentFolderId = builder.parentFolderId;
}
public static Builder builder() {
return new Builder();
}
public static Folder create() {
return builder().build();
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return folderId
*/
public String getFolderId() {
return this.folderId;
}
/**
* @return folderName
*/
public String getFolderName() {
return this.folderName;
}
/**
* @return parentFolderId
*/
public String getParentFolderId() {
return this.parentFolderId;
}
public static final class Builder {
private String createTime;
private String folderId;
private String folderName;
private String parentFolderId;
/**
* <p>The time when the folder was created.</p>
*
* <strong>example:</strong>
* <p>2019-02-19T09:34:50.757Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the folder.</p>
*
* <strong>example:</strong>
* <p>fd-u8B321****</p>
*/
public Builder folderId(String folderId) {
this.folderId = folderId;
return this;
}
/**
* <p>The name of the folder.</p>
*
* <strong>example:</strong>
* <p>rdFolder</p>
*/
public Builder folderName(String folderName) {
this.folderName = folderName;
return this;
}
/**
* <p>The ID of the parent folder.</p>
*
* <strong>example:</strong>
* <p>r-b1****</p>
*/
public Builder parentFolderId(String parentFolderId) {
this.parentFolderId = parentFolderId;
return this;
}
public Folder build() {
return new Folder(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcemanager20200331/1.0.8/com/aliyun/sdk/service/resourcemanager20200331 | java-sources/com/aliyun/alibabacloud-resourcemanager20200331/1.0.8/com/aliyun/sdk/service/resourcemanager20200331/models/UpdateResourceGroupRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcemanager20200331.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateResourceGroupRequest} extends {@link RequestModel}
*
* <p>UpdateResourceGroupRequest</p>
*/
public class UpdateResourceGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NewDisplayName")
@com.aliyun.core.annotation.Validation(required = true)
private String newDisplayName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceGroupId;
private UpdateResourceGroupRequest(Builder builder) {
super(builder);
this.newDisplayName = builder.newDisplayName;
this.resourceGroupId = builder.resourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static UpdateResourceGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return newDisplayName
*/
public String getNewDisplayName() {
return this.newDisplayName;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
public static final class Builder extends Request.Builder<UpdateResourceGroupRequest, Builder> {
private String newDisplayName;
private String resourceGroupId;
private Builder() {
super();
}
private Builder(UpdateResourceGroupRequest request) {
super(request);
this.newDisplayName = request.newDisplayName;
this.resourceGroupId = request.resourceGroupId;
}
/**
* <p>The display name of the resource group.</p>
* <p>The name must be 1 to 50 characters in length.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>project</p>
*/
public Builder newDisplayName(String newDisplayName) {
this.putQueryParameter("NewDisplayName", newDisplayName);
this.newDisplayName = newDisplayName;
return this;
}
/**
* <p>The ID of the resource group.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/158855.html">ListResourceGroups</a> operation to obtain the ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rg-9gLOoK****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
@Override
public UpdateResourceGroupRequest build() {
return new UpdateResourceGroupRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcemanager20200331/1.0.8/com/aliyun/sdk/service/resourcemanager20200331 | java-sources/com/aliyun/alibabacloud-resourcemanager20200331/1.0.8/com/aliyun/sdk/service/resourcemanager20200331/models/UpdateResourceGroupResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcemanager20200331.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateResourceGroupResponse} extends {@link TeaModel}
*
* <p>UpdateResourceGroupResponse</p>
*/
public class UpdateResourceGroupResponse 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 UpdateResourceGroupResponseBody body;
private UpdateResourceGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static UpdateResourceGroupResponse 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 UpdateResourceGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<UpdateResourceGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(UpdateResourceGroupResponseBody body);
@Override
UpdateResourceGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<UpdateResourceGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private UpdateResourceGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(UpdateResourceGroupResponse 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(UpdateResourceGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public UpdateResourceGroupResponse build() {
return new UpdateResourceGroupResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcemanager20200331/1.0.8/com/aliyun/sdk/service/resourcemanager20200331 | java-sources/com/aliyun/alibabacloud-resourcemanager20200331/1.0.8/com/aliyun/sdk/service/resourcemanager20200331/models/UpdateResourceGroupResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcemanager20200331.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateResourceGroupResponseBody} extends {@link TeaModel}
*
* <p>UpdateResourceGroupResponseBody</p>
*/
public class UpdateResourceGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroup")
private ResourceGroup resourceGroup;
private UpdateResourceGroupResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.resourceGroup = builder.resourceGroup;
}
public static Builder builder() {
return new Builder();
}
public static UpdateResourceGroupResponseBody create() {
return builder().build();
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroup
*/
public ResourceGroup getResourceGroup() {
return this.resourceGroup;
}
public static final class Builder {
private String requestId;
private ResourceGroup resourceGroup;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>04F0F334-1335-436C-A1D7-6C044FE73368</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information of the resource group.</p>
*/
public Builder resourceGroup(ResourceGroup resourceGroup) {
this.resourceGroup = resourceGroup;
return this;
}
public UpdateResourceGroupResponseBody build() {
return new UpdateResourceGroupResponseBody(this);
}
}
/**
*
* {@link UpdateResourceGroupResponseBody} extends {@link TeaModel}
*
* <p>UpdateResourceGroupResponseBody</p>
*/
public static class ResourceGroup extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccountId")
private String accountId;
@com.aliyun.core.annotation.NameInMap("CreateDate")
private String createDate;
@com.aliyun.core.annotation.NameInMap("DisplayName")
private String displayName;
@com.aliyun.core.annotation.NameInMap("Id")
private String id;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private ResourceGroup(Builder builder) {
this.accountId = builder.accountId;
this.createDate = builder.createDate;
this.displayName = builder.displayName;
this.id = builder.id;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static ResourceGroup create() {
return builder().build();
}
/**
* @return accountId
*/
public String getAccountId() {
return this.accountId;
}
/**
* @return createDate
*/
public String getCreateDate() {
return this.createDate;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return id
*/
public String getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private String accountId;
private String createDate;
private String displayName;
private String id;
private String name;
/**
* <p>The ID of the Alibaba Cloud account to which the resource group belongs.</p>
*
* <strong>example:</strong>
* <p>123456789****</p>
*/
public Builder accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* <p>The time when the resource group was created. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2015-01-23T12:33:18+08:00</p>
*/
public Builder createDate(String createDate) {
this.createDate = createDate;
return this;
}
/**
* <p>The display name of the resource group.</p>
*
* <strong>example:</strong>
* <p>project</p>
*/
public Builder displayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-9gLOoK****</p>
*/
public Builder id(String id) {
this.id = id;
return this;
}
/**
* <p>The unique identifier of the resource group.</p>
*
* <strong>example:</strong>
* <p>my-project</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
public ResourceGroup build() {
return new ResourceGroup(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcemanager20200331/1.0.8/com/aliyun/sdk/service/resourcemanager20200331 | java-sources/com/aliyun/alibabacloud-resourcemanager20200331/1.0.8/com/aliyun/sdk/service/resourcemanager20200331/models/UpdateRoleRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcemanager20200331.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateRoleRequest} extends {@link RequestModel}
*
* <p>UpdateRoleRequest</p>
*/
public class UpdateRoleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NewAssumeRolePolicyDocument")
private String newAssumeRolePolicyDocument;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NewDescription")
private String newDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NewMaxSessionDuration")
private Long newMaxSessionDuration;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RoleName")
@com.aliyun.core.annotation.Validation(required = true)
private String roleName;
private UpdateRoleRequest(Builder builder) {
super(builder);
this.newAssumeRolePolicyDocument = builder.newAssumeRolePolicyDocument;
this.newDescription = builder.newDescription;
this.newMaxSessionDuration = builder.newMaxSessionDuration;
this.roleName = builder.roleName;
}
public static Builder builder() {
return new Builder();
}
public static UpdateRoleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return newAssumeRolePolicyDocument
*/
public String getNewAssumeRolePolicyDocument() {
return this.newAssumeRolePolicyDocument;
}
/**
* @return newDescription
*/
public String getNewDescription() {
return this.newDescription;
}
/**
* @return newMaxSessionDuration
*/
public Long getNewMaxSessionDuration() {
return this.newMaxSessionDuration;
}
/**
* @return roleName
*/
public String getRoleName() {
return this.roleName;
}
public static final class Builder extends Request.Builder<UpdateRoleRequest, Builder> {
private String newAssumeRolePolicyDocument;
private String newDescription;
private Long newMaxSessionDuration;
private String roleName;
private Builder() {
super();
}
private Builder(UpdateRoleRequest request) {
super(request);
this.newAssumeRolePolicyDocument = request.newAssumeRolePolicyDocument;
this.newDescription = request.newDescription;
this.newMaxSessionDuration = request.newMaxSessionDuration;
this.roleName = request.roleName;
}
/**
* <p>The document of the policy that specifies the trusted entity to assume the RAM role.</p>
*
* <strong>example:</strong>
* <p>{ "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "RAM": "acs:ram::12345678901234****:root" } } ], "Version": "1" }</p>
*/
public Builder newAssumeRolePolicyDocument(String newAssumeRolePolicyDocument) {
this.putQueryParameter("NewAssumeRolePolicyDocument", newAssumeRolePolicyDocument);
this.newAssumeRolePolicyDocument = newAssumeRolePolicyDocument;
return this;
}
/**
* <p>The description of the RAM role.</p>
* <p>The description must be 1 to 1,024 characters in length.</p>
*
* <strong>example:</strong>
* <p>ECS administrator</p>
*/
public Builder newDescription(String newDescription) {
this.putQueryParameter("NewDescription", newDescription);
this.newDescription = newDescription;
return this;
}
/**
* <p>The maximum session duration of the RAM role.</p>
* <p>Unit: seconds. Valid values: 3600 to 43200. Default value: 3600.</p>
* <p>If you do not specify this parameter, the default value is used.</p>
*
* <strong>example:</strong>
* <p>3600</p>
*/
public Builder newMaxSessionDuration(Long newMaxSessionDuration) {
this.putQueryParameter("NewMaxSessionDuration", newMaxSessionDuration);
this.newMaxSessionDuration = newMaxSessionDuration;
return this;
}
/**
* <p>The name of the RAM role.</p>
* <p>The name must be 1 to 64 characters in length and can contain letters, digits, periods (.),and hyphens (-).</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ECSAdmin</p>
*/
public Builder roleName(String roleName) {
this.putQueryParameter("RoleName", roleName);
this.roleName = roleName;
return this;
}
@Override
public UpdateRoleRequest build() {
return new UpdateRoleRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcemanager20200331/1.0.8/com/aliyun/sdk/service/resourcemanager20200331 | java-sources/com/aliyun/alibabacloud-resourcemanager20200331/1.0.8/com/aliyun/sdk/service/resourcemanager20200331/models/UpdateRoleResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcemanager20200331.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateRoleResponse} extends {@link TeaModel}
*
* <p>UpdateRoleResponse</p>
*/
public class UpdateRoleResponse 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 UpdateRoleResponseBody body;
private UpdateRoleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static UpdateRoleResponse 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 UpdateRoleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<UpdateRoleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(UpdateRoleResponseBody body);
@Override
UpdateRoleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<UpdateRoleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private UpdateRoleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(UpdateRoleResponse 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(UpdateRoleResponseBody body) {
this.body = body;
return this;
}
@Override
public UpdateRoleResponse build() {
return new UpdateRoleResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcemanager20200331/1.0.8/com/aliyun/sdk/service/resourcemanager20200331 | java-sources/com/aliyun/alibabacloud-resourcemanager20200331/1.0.8/com/aliyun/sdk/service/resourcemanager20200331/models/UpdateRoleResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcemanager20200331.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateRoleResponseBody} extends {@link TeaModel}
*
* <p>UpdateRoleResponseBody</p>
*/
public class UpdateRoleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Role")
private Role role;
private UpdateRoleResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.role = builder.role;
}
public static Builder builder() {
return new Builder();
}
public static UpdateRoleResponseBody create() {
return builder().build();
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return role
*/
public Role getRole() {
return this.role;
}
public static final class Builder {
private String requestId;
private Role role;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>04F0F334-1335-436C-A1D7-6C044FE73368</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information of the RAM role.</p>
*/
public Builder role(Role role) {
this.role = role;
return this;
}
public UpdateRoleResponseBody build() {
return new UpdateRoleResponseBody(this);
}
}
/**
*
* {@link UpdateRoleResponseBody} extends {@link TeaModel}
*
* <p>UpdateRoleResponseBody</p>
*/
public static class Role extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Arn")
private String arn;
@com.aliyun.core.annotation.NameInMap("AssumeRolePolicyDocument")
private String assumeRolePolicyDocument;
@com.aliyun.core.annotation.NameInMap("CreateDate")
private String createDate;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("MaxSessionDuration")
private Long maxSessionDuration;
@com.aliyun.core.annotation.NameInMap("RoleId")
private String roleId;
@com.aliyun.core.annotation.NameInMap("RoleName")
private String roleName;
@com.aliyun.core.annotation.NameInMap("RolePrincipalName")
private String rolePrincipalName;
@com.aliyun.core.annotation.NameInMap("UpdateDate")
private String updateDate;
private Role(Builder builder) {
this.arn = builder.arn;
this.assumeRolePolicyDocument = builder.assumeRolePolicyDocument;
this.createDate = builder.createDate;
this.description = builder.description;
this.maxSessionDuration = builder.maxSessionDuration;
this.roleId = builder.roleId;
this.roleName = builder.roleName;
this.rolePrincipalName = builder.rolePrincipalName;
this.updateDate = builder.updateDate;
}
public static Builder builder() {
return new Builder();
}
public static Role create() {
return builder().build();
}
/**
* @return arn
*/
public String getArn() {
return this.arn;
}
/**
* @return assumeRolePolicyDocument
*/
public String getAssumeRolePolicyDocument() {
return this.assumeRolePolicyDocument;
}
/**
* @return createDate
*/
public String getCreateDate() {
return this.createDate;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return maxSessionDuration
*/
public Long getMaxSessionDuration() {
return this.maxSessionDuration;
}
/**
* @return roleId
*/
public String getRoleId() {
return this.roleId;
}
/**
* @return roleName
*/
public String getRoleName() {
return this.roleName;
}
/**
* @return rolePrincipalName
*/
public String getRolePrincipalName() {
return this.rolePrincipalName;
}
/**
* @return updateDate
*/
public String getUpdateDate() {
return this.updateDate;
}
public static final class Builder {
private String arn;
private String assumeRolePolicyDocument;
private String createDate;
private String description;
private Long maxSessionDuration;
private String roleId;
private String roleName;
private String rolePrincipalName;
private String updateDate;
/**
* <p>The Alibaba Cloud Resource Name (ARN) of the RAM role.</p>
*
* <strong>example:</strong>
* <p>acs:ram::123456789012****:role/ECSAdmin</p>
*/
public Builder arn(String arn) {
this.arn = arn;
return this;
}
/**
* <p>The document of the policy that specifies the trusted entity to assume the RAM role.</p>
*
* <strong>example:</strong>
* <p>{ "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "RAM": "acs:ram::12345678901234****:root" } } ], "Version": "1" }</p>
*/
public Builder assumeRolePolicyDocument(String assumeRolePolicyDocument) {
this.assumeRolePolicyDocument = assumeRolePolicyDocument;
return this;
}
/**
* <p>The time when the RAM role was created.</p>
*
* <strong>example:</strong>
* <p>2015-01-23T12:33:18Z</p>
*/
public Builder createDate(String createDate) {
this.createDate = createDate;
return this;
}
/**
* <p>The description of the RAM role.</p>
*
* <strong>example:</strong>
* <p>ECS administrator</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The maximum session duration of the RAM role.</p>
*
* <strong>example:</strong>
* <p>3600</p>
*/
public Builder maxSessionDuration(Long maxSessionDuration) {
this.maxSessionDuration = maxSessionDuration;
return this;
}
/**
* <p>The ID of the RAM role.</p>
*
* <strong>example:</strong>
* <p>90123456789****</p>
*/
public Builder roleId(String roleId) {
this.roleId = roleId;
return this;
}
/**
* <p>The name of the RAM role.</p>
*
* <strong>example:</strong>
* <p>ECSAdmin</p>
*/
public Builder roleName(String roleName) {
this.roleName = roleName;
return this;
}
/**
* <p>The name of the RAM role after authorization.</p>
*
* <strong>example:</strong>
* <p><a href="mailto:ECSAdmin@role.123456.onaliyunservice.com">ECSAdmin@role.123456.onaliyunservice.com</a></p>
*/
public Builder rolePrincipalName(String rolePrincipalName) {
this.rolePrincipalName = rolePrincipalName;
return this;
}
/**
* <p>The time when the RAM role was updated.</p>
*
* <strong>example:</strong>
* <p>2016-01-23T12:33:18Z</p>
*/
public Builder updateDate(String updateDate) {
this.updateDate = updateDate;
return this;
}
public Role build() {
return new Role(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/AsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110;
import com.aliyun.core.utils.SdkAutoCloseable;
import com.aliyun.sdk.service.resourcesharing20200110.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> :
* <h3><a href="#"></a></h3>
* <ul>
* <li>A principal needs to accept or reject a resource sharing invitation only if the principal is not the management account or a member of a resource directory. If you share resources with an object in a resource directory, the system automatically accepts the resource sharing invitation for the object.</li>
* <li>A resource sharing invitation is valid for seven days. A principal must accept or reject the invitation within the validity period.
* This topic provides an example on how to call the API operation to accept the resource sharing invitation whose ID is <code>i-pMnItMX19fBJ****</code> in the <code>cn-hangzhou</code> region.</li>
* </ul>
*
* @param request the request parameters of AcceptResourceShareInvitation AcceptResourceShareInvitationRequest
* @return AcceptResourceShareInvitationResponse
*/
CompletableFuture<AcceptResourceShareInvitationResponse> acceptResourceShareInvitation(AcceptResourceShareInvitationRequest request);
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to associate the vSwitch <code>vsw-bp183p93qs667muql****</code> and the member <code>172050525300****</code> with the resource share <code>rs-6GRmdD3X****</code> in the <code>cn-hangzhou</code> region. After the association, the vSwitch is shared with the member.</p>
*
* @param request the request parameters of AssociateResourceShare AssociateResourceShareRequest
* @return AssociateResourceShareResponse
*/
CompletableFuture<AssociateResourceShareResponse> associateResourceShare(AssociateResourceShareRequest request);
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to associate the <code>AliyunRSDefaultPermissionVSwitch</code> permission with the <code>rs-6GRmdD3X****</code> resource share in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of AssociateResourceSharePermission AssociateResourceSharePermissionRequest
* @return AssociateResourceSharePermissionResponse
*/
CompletableFuture<AssociateResourceSharePermissionResponse> associateResourceSharePermission(AssociateResourceSharePermissionRequest request);
/**
* @param request the request parameters of ChangeResourceGroup ChangeResourceGroupRequest
* @return ChangeResourceGroupResponse
*/
CompletableFuture<ChangeResourceGroupResponse> changeResourceGroup(ChangeResourceGroupRequest request);
/**
* @param request the request parameters of CheckSharingWithResourceDirectoryStatus CheckSharingWithResourceDirectoryStatusRequest
* @return CheckSharingWithResourceDirectoryStatusResponse
*/
CompletableFuture<CheckSharingWithResourceDirectoryStatusResponse> checkSharingWithResourceDirectoryStatus(CheckSharingWithResourceDirectoryStatusRequest request);
/**
* <b>description</b> :
* <p>Resource Sharing allows you to share your resources with one or more accounts and access the resources shared by other accounts. For more information, see <a href="https://help.aliyun.com/document_detail/160622.html">Resource Sharing overview</a>.
* This topic provides an example on how to call the API operation to create a resource share named <code>test</code> in the <code>cn-hangzhou</code> region to share the vSwitch <code>vsw-bp183p93qs667muql****</code> with the member <code>172050525300****</code> in a resource directory. In this example, the management account of the resource directory is used to call this API operation.</p>
*
* @param request the request parameters of CreateResourceShare CreateResourceShareRequest
* @return CreateResourceShareResponse
*/
CompletableFuture<CreateResourceShareResponse> createResourceShare(CreateResourceShareRequest request);
/**
* <b>description</b> :
* <p>After a resource share is deleted, all principals in the resource share can no longer access the resources in the resource share. However, the resources are not deleted with the resource share.
* A resource share that is deleted is in the <code>Deleted</code> state. The system deletes the record of the resource share within 48 hours to 96 hours.
* This topic provides an example on how to call the API operation to delete the resource share <code>rs-qSkW1HBY****</code> in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of DeleteResourceShare DeleteResourceShareRequest
* @return DeleteResourceShareResponse
*/
CompletableFuture<DeleteResourceShareResponse> deleteResourceShare(DeleteResourceShareRequest request);
/**
* @param request the request parameters of DescribeRegions DescribeRegionsRequest
* @return DescribeRegionsResponse
*/
CompletableFuture<DescribeRegionsResponse> describeRegions(DescribeRegionsRequest request);
/**
* <b>description</b> :
* <p> A resource owner can call this API operation to disassociate shared resources or principals from a resource share.</p>
* <ul>
* <li>If a principal does not belong to a resource directory, the principal can call this API operation to exit the resource share. For more information, see <a href="https://help.aliyun.com/document_detail/440614.html">Exit a resource share</a>.
* This topic provides an example on how to use the management account of a resource directory to call the API operation to disassociate the member <code>172050525300****</code> from the resource share <code>rs-6GRmdD3X****</code> in the <code>cn-hangzhou</code> region. After the member is disassociated from the resource share, the member cannot share the resources in the resource share.</li>
* </ul>
*
* @param request the request parameters of DisassociateResourceShare DisassociateResourceShareRequest
* @return DisassociateResourceShareResponse
*/
CompletableFuture<DisassociateResourceShareResponse> disassociateResourceShare(DisassociateResourceShareRequest request);
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to disassociate the <code>AliyunRSDefaultPermissionVSwitch</code> permission from the <code>rs-6GRmdD3X****</code> resource share in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of DisassociateResourceSharePermission DisassociateResourceSharePermissionRequest
* @return DisassociateResourceSharePermissionResponse
*/
CompletableFuture<DisassociateResourceSharePermissionResponse> disassociateResourceSharePermission(DisassociateResourceSharePermissionRequest request);
/**
* <b>description</b> :
* <p>You can share your resources with all members in your resource directory, all members in a specific folder in your resource directory, or a specific member in your resource directory as a resource owner only after you enable resource sharing for your resource directory.
* You can call this API operation only by using the management account of your resource directory or a RAM user or RAM role to which the required permissions are granted within the management account.</p>
*
* @param request the request parameters of EnableSharingWithResourceDirectory EnableSharingWithResourceDirectoryRequest
* @return EnableSharingWithResourceDirectoryResponse
*/
CompletableFuture<EnableSharingWithResourceDirectoryResponse> enableSharingWithResourceDirectory(EnableSharingWithResourceDirectoryRequest request);
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to query the information about the <code>AliyunRSDefaultPermissionVSwitch</code> permission whose version is <code>v1</code> in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of GetPermission GetPermissionRequest
* @return GetPermissionResponse
*/
CompletableFuture<GetPermissionResponse> getPermission(GetPermissionRequest request);
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to query the versions of the <code>AliyunRSDefaultPermissionVSwitch</code> permission in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of ListPermissionVersions ListPermissionVersionsRequest
* @return ListPermissionVersionsResponse
*/
CompletableFuture<ListPermissionVersionsResponse> listPermissionVersions(ListPermissionVersionsRequest request);
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to query the information about the default permission for the <code>VSwitch</code> resource type in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of ListPermissions ListPermissionsRequest
* @return ListPermissionsResponse
*/
CompletableFuture<ListPermissionsResponse> listPermissions(ListPermissionsRequest request);
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to query the association records of the resource shares that are created by using the current Alibaba Cloud account in the <code>cn-hangzhou</code> region. The response shows the following records:</p>
* <ul>
* <li>The resource <code>vsw-bp1upw03qyz8n7us9****</code> of the <code>VSwitch</code> type has been associated with the resource share <code>rs-6GRmdD3X****</code>. The resource is in the <code>Associated</code> state. This indicates that the resource is being shared.</li>
* <li>The resource <code>vsw-bp183p93qs667muql****</code> of the <code>VSwitch</code> type has been disassociated from the resource share <code>rs-6GRmdD3X****</code>. The resource is in the <code>Disassociated</code> state. This indicates that the sharing of the resource is stopped.</li>
* </ul>
*
* @param request the request parameters of ListResourceShareAssociations ListResourceShareAssociationsRequest
* @return ListResourceShareAssociationsResponse
*/
CompletableFuture<ListResourceShareAssociationsResponse> listResourceShareAssociations(ListResourceShareAssociationsRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a></h3>
* <p>This topic provides an example on how to call the API operation to query the resource sharing invitations that are received by the current account in the <code>cn-hangzhou</code> region. The response shows that one invitation is received by the current account and is waiting for confirmation.</p>
*
* @param request the request parameters of ListResourceShareInvitations ListResourceShareInvitationsRequest
* @return ListResourceShareInvitationsResponse
*/
CompletableFuture<ListResourceShareInvitationsResponse> listResourceShareInvitations(ListResourceShareInvitationsRequest request);
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to query the permissions that are associated with the resource share created by using the current Alibaba Cloud account in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of ListResourceSharePermissions ListResourceSharePermissionsRequest
* @return ListResourceSharePermissionsResponse
*/
CompletableFuture<ListResourceSharePermissionsResponse> listResourceSharePermissions(ListResourceSharePermissionsRequest request);
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to query the resource shares that are created by using the current Alibaba Cloud account in the <code>cn-hangzhou</code> region. The response shows that the following resource shares are created within the account <code>151266687691****</code>:</p>
* <ul>
* <li><code>rs-hX9wC5jO****</code>, which is in the <code>Deleted</code> state</li>
* <li><code>rs-PqysnzIj****</code>, which is in the <code>Active</code> state</li>
* </ul>
*
* @param request the request parameters of ListResourceShares ListResourceSharesRequest
* @return ListResourceSharesResponse
*/
CompletableFuture<ListResourceSharesResponse> listResourceShares(ListResourceSharesRequest request);
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to query the resources that you share with other accounts in the <code>cn-hangzhou</code> region. The response shows that in the resource share <code>rs-6GRmdD3X****</code>, you share the <code>vsw-bp1upw03qyz8n7us9****</code> resource of the <code>VSwitch</code> type with other accounts.</p>
*
* @param request the request parameters of ListSharedResources ListSharedResourcesRequest
* @return ListSharedResourcesResponse
*/
CompletableFuture<ListSharedResourcesResponse> listSharedResources(ListSharedResourcesRequest request);
/**
* <b>description</b> :
* <p>If you are a resource owner, you can query the principals with which you share your resources. If you are a principal, you can query the resources that are shared with you.
* This topic provides an example on how to call the API operation to query the principals with which you share your resources in the <code>cn-hangzhou</code> region. The response shows that you share your resources with the principals <code>114240524784****</code> and <code>172050525300****</code>.</p>
*
* @param request the request parameters of ListSharedTargets ListSharedTargetsRequest
* @return ListSharedTargetsResponse
*/
CompletableFuture<ListSharedTargetsResponse> listSharedTargets(ListSharedTargetsRequest request);
/**
* @param request the request parameters of ListTagResources ListTagResourcesRequest
* @return ListTagResourcesResponse
*/
CompletableFuture<ListTagResourcesResponse> listTagResources(ListTagResourcesRequest request);
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to reject the resource sharing invitation <code>i-yyTWbkjHArYh****</code> in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of RejectResourceShareInvitation RejectResourceShareInvitationRequest
* @return RejectResourceShareInvitationResponse
*/
CompletableFuture<RejectResourceShareInvitationResponse> rejectResourceShareInvitation(RejectResourceShareInvitationRequest request);
/**
* @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);
/**
* <b>description</b> :
* <p>You can call this API operation to change the name or resource sharing scope of a resource share.
* This topic provides an example on how to call the API operation to change the name of the resource share <code>rs-qSkW1HBY****</code> in the <code>cn-hangzhou</code> region from <code>test</code> to <code>new</code>.</p>
*
* @param request the request parameters of UpdateResourceShare UpdateResourceShareRequest
* @return UpdateResourceShareResponse
*/
CompletableFuture<UpdateResourceShareResponse> updateResourceShare(UpdateResourceShareRequest request);
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/DefaultAsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110;
import com.aliyun.core.http.*;
import com.aliyun.sdk.service.resourcesharing20200110.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 = "ResourceSharing";
this.version = "2020-01-10";
this.endpointRule = "regional";
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> :
* <h3><a href="#"></a></h3>
* <ul>
* <li>A principal needs to accept or reject a resource sharing invitation only if the principal is not the management account or a member of a resource directory. If you share resources with an object in a resource directory, the system automatically accepts the resource sharing invitation for the object.</li>
* <li>A resource sharing invitation is valid for seven days. A principal must accept or reject the invitation within the validity period.
* This topic provides an example on how to call the API operation to accept the resource sharing invitation whose ID is <code>i-pMnItMX19fBJ****</code> in the <code>cn-hangzhou</code> region.</li>
* </ul>
*
* @param request the request parameters of AcceptResourceShareInvitation AcceptResourceShareInvitationRequest
* @return AcceptResourceShareInvitationResponse
*/
@Override
public CompletableFuture<AcceptResourceShareInvitationResponse> acceptResourceShareInvitation(AcceptResourceShareInvitationRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AcceptResourceShareInvitation").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AcceptResourceShareInvitationResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<AcceptResourceShareInvitationResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to associate the vSwitch <code>vsw-bp183p93qs667muql****</code> and the member <code>172050525300****</code> with the resource share <code>rs-6GRmdD3X****</code> in the <code>cn-hangzhou</code> region. After the association, the vSwitch is shared with the member.</p>
*
* @param request the request parameters of AssociateResourceShare AssociateResourceShareRequest
* @return AssociateResourceShareResponse
*/
@Override
public CompletableFuture<AssociateResourceShareResponse> associateResourceShare(AssociateResourceShareRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AssociateResourceShare").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AssociateResourceShareResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<AssociateResourceShareResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to associate the <code>AliyunRSDefaultPermissionVSwitch</code> permission with the <code>rs-6GRmdD3X****</code> resource share in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of AssociateResourceSharePermission AssociateResourceSharePermissionRequest
* @return AssociateResourceSharePermissionResponse
*/
@Override
public CompletableFuture<AssociateResourceSharePermissionResponse> associateResourceSharePermission(AssociateResourceSharePermissionRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AssociateResourceSharePermission").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AssociateResourceSharePermissionResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<AssociateResourceSharePermissionResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ChangeResourceGroup ChangeResourceGroupRequest
* @return ChangeResourceGroupResponse
*/
@Override
public CompletableFuture<ChangeResourceGroupResponse> changeResourceGroup(ChangeResourceGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ChangeResourceGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ChangeResourceGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ChangeResourceGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CheckSharingWithResourceDirectoryStatus CheckSharingWithResourceDirectoryStatusRequest
* @return CheckSharingWithResourceDirectoryStatusResponse
*/
@Override
public CompletableFuture<CheckSharingWithResourceDirectoryStatusResponse> checkSharingWithResourceDirectoryStatus(CheckSharingWithResourceDirectoryStatusRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CheckSharingWithResourceDirectoryStatus").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CheckSharingWithResourceDirectoryStatusResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CheckSharingWithResourceDirectoryStatusResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Resource Sharing allows you to share your resources with one or more accounts and access the resources shared by other accounts. For more information, see <a href="https://help.aliyun.com/document_detail/160622.html">Resource Sharing overview</a>.
* This topic provides an example on how to call the API operation to create a resource share named <code>test</code> in the <code>cn-hangzhou</code> region to share the vSwitch <code>vsw-bp183p93qs667muql****</code> with the member <code>172050525300****</code> in a resource directory. In this example, the management account of the resource directory is used to call this API operation.</p>
*
* @param request the request parameters of CreateResourceShare CreateResourceShareRequest
* @return CreateResourceShareResponse
*/
@Override
public CompletableFuture<CreateResourceShareResponse> createResourceShare(CreateResourceShareRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateResourceShare").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateResourceShareResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateResourceShareResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>After a resource share is deleted, all principals in the resource share can no longer access the resources in the resource share. However, the resources are not deleted with the resource share.
* A resource share that is deleted is in the <code>Deleted</code> state. The system deletes the record of the resource share within 48 hours to 96 hours.
* This topic provides an example on how to call the API operation to delete the resource share <code>rs-qSkW1HBY****</code> in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of DeleteResourceShare DeleteResourceShareRequest
* @return DeleteResourceShareResponse
*/
@Override
public CompletableFuture<DeleteResourceShareResponse> deleteResourceShare(DeleteResourceShareRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteResourceShare").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteResourceShareResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteResourceShareResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeRegions DescribeRegionsRequest
* @return DescribeRegionsResponse
*/
@Override
public CompletableFuture<DescribeRegionsResponse> describeRegions(DescribeRegionsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeRegions").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeRegionsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeRegionsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> A resource owner can call this API operation to disassociate shared resources or principals from a resource share.</p>
* <ul>
* <li>If a principal does not belong to a resource directory, the principal can call this API operation to exit the resource share. For more information, see <a href="https://help.aliyun.com/document_detail/440614.html">Exit a resource share</a>.
* This topic provides an example on how to use the management account of a resource directory to call the API operation to disassociate the member <code>172050525300****</code> from the resource share <code>rs-6GRmdD3X****</code> in the <code>cn-hangzhou</code> region. After the member is disassociated from the resource share, the member cannot share the resources in the resource share.</li>
* </ul>
*
* @param request the request parameters of DisassociateResourceShare DisassociateResourceShareRequest
* @return DisassociateResourceShareResponse
*/
@Override
public CompletableFuture<DisassociateResourceShareResponse> disassociateResourceShare(DisassociateResourceShareRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DisassociateResourceShare").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DisassociateResourceShareResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DisassociateResourceShareResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to disassociate the <code>AliyunRSDefaultPermissionVSwitch</code> permission from the <code>rs-6GRmdD3X****</code> resource share in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of DisassociateResourceSharePermission DisassociateResourceSharePermissionRequest
* @return DisassociateResourceSharePermissionResponse
*/
@Override
public CompletableFuture<DisassociateResourceSharePermissionResponse> disassociateResourceSharePermission(DisassociateResourceSharePermissionRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DisassociateResourceSharePermission").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DisassociateResourceSharePermissionResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DisassociateResourceSharePermissionResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can share your resources with all members in your resource directory, all members in a specific folder in your resource directory, or a specific member in your resource directory as a resource owner only after you enable resource sharing for your resource directory.
* You can call this API operation only by using the management account of your resource directory or a RAM user or RAM role to which the required permissions are granted within the management account.</p>
*
* @param request the request parameters of EnableSharingWithResourceDirectory EnableSharingWithResourceDirectoryRequest
* @return EnableSharingWithResourceDirectoryResponse
*/
@Override
public CompletableFuture<EnableSharingWithResourceDirectoryResponse> enableSharingWithResourceDirectory(EnableSharingWithResourceDirectoryRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("EnableSharingWithResourceDirectory").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(EnableSharingWithResourceDirectoryResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<EnableSharingWithResourceDirectoryResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to query the information about the <code>AliyunRSDefaultPermissionVSwitch</code> permission whose version is <code>v1</code> in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of GetPermission GetPermissionRequest
* @return GetPermissionResponse
*/
@Override
public CompletableFuture<GetPermissionResponse> getPermission(GetPermissionRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetPermission").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetPermissionResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetPermissionResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to query the versions of the <code>AliyunRSDefaultPermissionVSwitch</code> permission in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of ListPermissionVersions ListPermissionVersionsRequest
* @return ListPermissionVersionsResponse
*/
@Override
public CompletableFuture<ListPermissionVersionsResponse> listPermissionVersions(ListPermissionVersionsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListPermissionVersions").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListPermissionVersionsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListPermissionVersionsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to query the information about the default permission for the <code>VSwitch</code> resource type in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of ListPermissions ListPermissionsRequest
* @return ListPermissionsResponse
*/
@Override
public CompletableFuture<ListPermissionsResponse> listPermissions(ListPermissionsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListPermissions").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListPermissionsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListPermissionsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to query the association records of the resource shares that are created by using the current Alibaba Cloud account in the <code>cn-hangzhou</code> region. The response shows the following records:</p>
* <ul>
* <li>The resource <code>vsw-bp1upw03qyz8n7us9****</code> of the <code>VSwitch</code> type has been associated with the resource share <code>rs-6GRmdD3X****</code>. The resource is in the <code>Associated</code> state. This indicates that the resource is being shared.</li>
* <li>The resource <code>vsw-bp183p93qs667muql****</code> of the <code>VSwitch</code> type has been disassociated from the resource share <code>rs-6GRmdD3X****</code>. The resource is in the <code>Disassociated</code> state. This indicates that the sharing of the resource is stopped.</li>
* </ul>
*
* @param request the request parameters of ListResourceShareAssociations ListResourceShareAssociationsRequest
* @return ListResourceShareAssociationsResponse
*/
@Override
public CompletableFuture<ListResourceShareAssociationsResponse> listResourceShareAssociations(ListResourceShareAssociationsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListResourceShareAssociations").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListResourceShareAssociationsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListResourceShareAssociationsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a></h3>
* <p>This topic provides an example on how to call the API operation to query the resource sharing invitations that are received by the current account in the <code>cn-hangzhou</code> region. The response shows that one invitation is received by the current account and is waiting for confirmation.</p>
*
* @param request the request parameters of ListResourceShareInvitations ListResourceShareInvitationsRequest
* @return ListResourceShareInvitationsResponse
*/
@Override
public CompletableFuture<ListResourceShareInvitationsResponse> listResourceShareInvitations(ListResourceShareInvitationsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListResourceShareInvitations").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListResourceShareInvitationsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListResourceShareInvitationsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to query the permissions that are associated with the resource share created by using the current Alibaba Cloud account in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of ListResourceSharePermissions ListResourceSharePermissionsRequest
* @return ListResourceSharePermissionsResponse
*/
@Override
public CompletableFuture<ListResourceSharePermissionsResponse> listResourceSharePermissions(ListResourceSharePermissionsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListResourceSharePermissions").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListResourceSharePermissionsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListResourceSharePermissionsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to query the resource shares that are created by using the current Alibaba Cloud account in the <code>cn-hangzhou</code> region. The response shows that the following resource shares are created within the account <code>151266687691****</code>:</p>
* <ul>
* <li><code>rs-hX9wC5jO****</code>, which is in the <code>Deleted</code> state</li>
* <li><code>rs-PqysnzIj****</code>, which is in the <code>Active</code> state</li>
* </ul>
*
* @param request the request parameters of ListResourceShares ListResourceSharesRequest
* @return ListResourceSharesResponse
*/
@Override
public CompletableFuture<ListResourceSharesResponse> listResourceShares(ListResourceSharesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListResourceShares").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListResourceSharesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListResourceSharesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to query the resources that you share with other accounts in the <code>cn-hangzhou</code> region. The response shows that in the resource share <code>rs-6GRmdD3X****</code>, you share the <code>vsw-bp1upw03qyz8n7us9****</code> resource of the <code>VSwitch</code> type with other accounts.</p>
*
* @param request the request parameters of ListSharedResources ListSharedResourcesRequest
* @return ListSharedResourcesResponse
*/
@Override
public CompletableFuture<ListSharedResourcesResponse> listSharedResources(ListSharedResourcesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListSharedResources").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListSharedResourcesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListSharedResourcesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>If you are a resource owner, you can query the principals with which you share your resources. If you are a principal, you can query the resources that are shared with you.
* This topic provides an example on how to call the API operation to query the principals with which you share your resources in the <code>cn-hangzhou</code> region. The response shows that you share your resources with the principals <code>114240524784****</code> and <code>172050525300****</code>.</p>
*
* @param request the request parameters of ListSharedTargets ListSharedTargetsRequest
* @return ListSharedTargetsResponse
*/
@Override
public CompletableFuture<ListSharedTargetsResponse> listSharedTargets(ListSharedTargetsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListSharedTargets").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListSharedTargetsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListSharedTargetsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @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;
}
}
/**
* <b>description</b> :
* <p>This topic provides an example on how to call the API operation to reject the resource sharing invitation <code>i-yyTWbkjHArYh****</code> in the <code>cn-hangzhou</code> region.</p>
*
* @param request the request parameters of RejectResourceShareInvitation RejectResourceShareInvitationRequest
* @return RejectResourceShareInvitationResponse
*/
@Override
public CompletableFuture<RejectResourceShareInvitationResponse> rejectResourceShareInvitation(RejectResourceShareInvitationRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RejectResourceShareInvitation").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RejectResourceShareInvitationResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<RejectResourceShareInvitationResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @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;
}
}
/**
* <b>description</b> :
* <p>You can call this API operation to change the name or resource sharing scope of a resource share.
* This topic provides an example on how to call the API operation to change the name of the resource share <code>rs-qSkW1HBY****</code> in the <code>cn-hangzhou</code> region from <code>test</code> to <code>new</code>.</p>
*
* @param request the request parameters of UpdateResourceShare UpdateResourceShareRequest
* @return UpdateResourceShareResponse
*/
@Override
public CompletableFuture<UpdateResourceShareResponse> updateResourceShare(UpdateResourceShareRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateResourceShare").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateResourceShareResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateResourceShareResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/DefaultAsyncClientBuilder.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110;
import com.aliyun.sdk.gateway.pop.BaseClientBuilder;
public final class DefaultAsyncClientBuilder extends BaseClientBuilder<DefaultAsyncClientBuilder, AsyncClient> {
@Override
protected String serviceName() {
return "resourcesharing20200110";
}
@Override
protected final AsyncClient buildClient() {
return new DefaultAsyncClient(super.applyClientConfiguration());
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/AcceptResourceShareInvitationRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AcceptResourceShareInvitationRequest} extends {@link RequestModel}
*
* <p>AcceptResourceShareInvitationRequest</p>
*/
public class AcceptResourceShareInvitationRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareInvitationId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareInvitationId;
private AcceptResourceShareInvitationRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.resourceShareInvitationId = builder.resourceShareInvitationId;
}
public static Builder builder() {
return new Builder();
}
public static AcceptResourceShareInvitationRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceShareInvitationId
*/
public String getResourceShareInvitationId() {
return this.resourceShareInvitationId;
}
public static final class Builder extends Request.Builder<AcceptResourceShareInvitationRequest, Builder> {
private String regionId;
private String resourceShareInvitationId;
private Builder() {
super();
}
private Builder(AcceptResourceShareInvitationRequest request) {
super(request);
this.regionId = request.regionId;
this.resourceShareInvitationId = request.resourceShareInvitationId;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource sharing invitation.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/450564.html">ListResourceShareInvitations</a> operation to obtain the ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>i-pMnItMX19fBJ****</p>
*/
public Builder resourceShareInvitationId(String resourceShareInvitationId) {
this.putQueryParameter("ResourceShareInvitationId", resourceShareInvitationId);
this.resourceShareInvitationId = resourceShareInvitationId;
return this;
}
@Override
public AcceptResourceShareInvitationRequest build() {
return new AcceptResourceShareInvitationRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/AcceptResourceShareInvitationResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AcceptResourceShareInvitationResponse} extends {@link TeaModel}
*
* <p>AcceptResourceShareInvitationResponse</p>
*/
public class AcceptResourceShareInvitationResponse 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 AcceptResourceShareInvitationResponseBody body;
private AcceptResourceShareInvitationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AcceptResourceShareInvitationResponse 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 AcceptResourceShareInvitationResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AcceptResourceShareInvitationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AcceptResourceShareInvitationResponseBody body);
@Override
AcceptResourceShareInvitationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AcceptResourceShareInvitationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AcceptResourceShareInvitationResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AcceptResourceShareInvitationResponse 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(AcceptResourceShareInvitationResponseBody body) {
this.body = body;
return this;
}
@Override
public AcceptResourceShareInvitationResponse build() {
return new AcceptResourceShareInvitationResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/AcceptResourceShareInvitationResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AcceptResourceShareInvitationResponseBody} extends {@link TeaModel}
*
* <p>AcceptResourceShareInvitationResponseBody</p>
*/
public class AcceptResourceShareInvitationResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceShareInvitation")
private ResourceShareInvitation resourceShareInvitation;
private AcceptResourceShareInvitationResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.resourceShareInvitation = builder.resourceShareInvitation;
}
public static Builder builder() {
return new Builder();
}
public static AcceptResourceShareInvitationResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceShareInvitation
*/
public ResourceShareInvitation getResourceShareInvitation() {
return this.resourceShareInvitation;
}
public static final class Builder {
private String requestId;
private ResourceShareInvitation resourceShareInvitation;
private Builder() {
}
private Builder(AcceptResourceShareInvitationResponseBody model) {
this.requestId = model.requestId;
this.resourceShareInvitation = model.resourceShareInvitation;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>08F18B04-47CB-5C0E-A6D2-37DEF5C2A961</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the resource sharing invitation.</p>
*/
public Builder resourceShareInvitation(ResourceShareInvitation resourceShareInvitation) {
this.resourceShareInvitation = resourceShareInvitation;
return this;
}
public AcceptResourceShareInvitationResponseBody build() {
return new AcceptResourceShareInvitationResponseBody(this);
}
}
/**
*
* {@link AcceptResourceShareInvitationResponseBody} extends {@link TeaModel}
*
* <p>AcceptResourceShareInvitationResponseBody</p>
*/
public static class AcceptInvitationFailedDetails extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociateType")
private String associateType;
@com.aliyun.core.annotation.NameInMap("FailureDescription")
private String failureDescription;
@com.aliyun.core.annotation.NameInMap("FailureReason")
private String failureReason;
@com.aliyun.core.annotation.NameInMap("OperationType")
private String operationType;
@com.aliyun.core.annotation.NameInMap("ResourceArn")
private String resourceArn;
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StatusMessage")
private String statusMessage;
private AcceptInvitationFailedDetails(Builder builder) {
this.associateType = builder.associateType;
this.failureDescription = builder.failureDescription;
this.failureReason = builder.failureReason;
this.operationType = builder.operationType;
this.resourceArn = builder.resourceArn;
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.status = builder.status;
this.statusMessage = builder.statusMessage;
}
public static Builder builder() {
return new Builder();
}
public static AcceptInvitationFailedDetails create() {
return builder().build();
}
/**
* @return associateType
*/
public String getAssociateType() {
return this.associateType;
}
/**
* @return failureDescription
*/
public String getFailureDescription() {
return this.failureDescription;
}
/**
* @return failureReason
*/
public String getFailureReason() {
return this.failureReason;
}
/**
* @return operationType
*/
public String getOperationType() {
return this.operationType;
}
/**
* @return resourceArn
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return statusMessage
*/
public String getStatusMessage() {
return this.statusMessage;
}
public static final class Builder {
private String associateType;
private String failureDescription;
private String failureReason;
private String operationType;
private String resourceArn;
private String resourceId;
private String resourceType;
private String status;
private String statusMessage;
private Builder() {
}
private Builder(AcceptInvitationFailedDetails model) {
this.associateType = model.associateType;
this.failureDescription = model.failureDescription;
this.failureReason = model.failureReason;
this.operationType = model.operationType;
this.resourceArn = model.resourceArn;
this.resourceId = model.resourceId;
this.resourceType = model.resourceType;
this.status = model.status;
this.statusMessage = model.statusMessage;
}
/**
* <p>This parameter is deprecated. The OperationType parameter is used instead.</p>
*
* <strong>example:</strong>
* <p>Associate</p>
*/
public Builder associateType(String associateType) {
this.associateType = associateType;
return this;
}
/**
* <p>The failure description.</p>
*
* <strong>example:</strong>
* <p>You cannot access the specified resource at this time.</p>
*/
public Builder failureDescription(String failureDescription) {
this.failureDescription = failureDescription;
return this;
}
/**
* <p>The failure cause. Valid values:</p>
* <ul>
* <li>Unavailable: The resource cannot be shared.</li>
* <li>LimitExceeded: The number of shared resources within the Alibaba Cloud account exceeds the upper limit.</li>
* <li>ZonalResourceInaccessible: The resource is unavailable in this region.</li>
* <li>InternalError: An internal error occurred during the check.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Unavailable</p>
*/
public Builder failureReason(String failureReason) {
this.failureReason = failureReason;
return this;
}
/**
* <p>The operation type. Valid values:</p>
* <ul>
* <li>Associate</li>
* </ul>
*
* <strong>example:</strong>
* <p>Associate</p>
*/
public Builder operationType(String operationType) {
this.operationType = operationType;
return this;
}
/**
* ResourceArn.
*/
public Builder resourceArn(String resourceArn) {
this.resourceArn = resourceArn;
return this;
}
/**
* <p>The ID of the shared resource.</p>
*
* <strong>example:</strong>
* <p>s-7xvh46nx5oqlre0wv***</p>
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The type of the shared resource.</p>
* <p>For more information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</p>
*
* <strong>example:</strong>
* <p>Snapshot</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>This parameter is deprecated. The FailureReason parameter is used instead.</p>
*
* <strong>example:</strong>
* <p>Unavailable</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>This parameter is deprecated. The FailureDescription parameter is used instead.</p>
*
* <strong>example:</strong>
* <p>You cannot access the specified resource at this time.</p>
*/
public Builder statusMessage(String statusMessage) {
this.statusMessage = statusMessage;
return this;
}
public AcceptInvitationFailedDetails build() {
return new AcceptInvitationFailedDetails(this);
}
}
}
/**
*
* {@link AcceptResourceShareInvitationResponseBody} extends {@link TeaModel}
*
* <p>AcceptResourceShareInvitationResponseBody</p>
*/
public static class ResourceShareInvitation extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AcceptInvitationFailedDetails")
private java.util.List<AcceptInvitationFailedDetails> acceptInvitationFailedDetails;
@com.aliyun.core.annotation.NameInMap("CreateTime")
@com.aliyun.core.annotation.Validation(required = true)
private String createTime;
@com.aliyun.core.annotation.NameInMap("ReceiverAccountId")
@com.aliyun.core.annotation.Validation(required = true)
private String receiverAccountId;
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareId;
@com.aliyun.core.annotation.NameInMap("ResourceShareInvitationId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareInvitationId;
@com.aliyun.core.annotation.NameInMap("ResourceShareName")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareName;
@com.aliyun.core.annotation.NameInMap("SenderAccountId")
@com.aliyun.core.annotation.Validation(required = true)
private String senderAccountId;
@com.aliyun.core.annotation.NameInMap("Status")
@com.aliyun.core.annotation.Validation(required = true)
private String status;
private ResourceShareInvitation(Builder builder) {
this.acceptInvitationFailedDetails = builder.acceptInvitationFailedDetails;
this.createTime = builder.createTime;
this.receiverAccountId = builder.receiverAccountId;
this.resourceShareId = builder.resourceShareId;
this.resourceShareInvitationId = builder.resourceShareInvitationId;
this.resourceShareName = builder.resourceShareName;
this.senderAccountId = builder.senderAccountId;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static ResourceShareInvitation create() {
return builder().build();
}
/**
* @return acceptInvitationFailedDetails
*/
public java.util.List<AcceptInvitationFailedDetails> getAcceptInvitationFailedDetails() {
return this.acceptInvitationFailedDetails;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return receiverAccountId
*/
public String getReceiverAccountId() {
return this.receiverAccountId;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
/**
* @return resourceShareInvitationId
*/
public String getResourceShareInvitationId() {
return this.resourceShareInvitationId;
}
/**
* @return resourceShareName
*/
public String getResourceShareName() {
return this.resourceShareName;
}
/**
* @return senderAccountId
*/
public String getSenderAccountId() {
return this.senderAccountId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private java.util.List<AcceptInvitationFailedDetails> acceptInvitationFailedDetails;
private String createTime;
private String receiverAccountId;
private String resourceShareId;
private String resourceShareInvitationId;
private String resourceShareName;
private String senderAccountId;
private String status;
private Builder() {
}
private Builder(ResourceShareInvitation model) {
this.acceptInvitationFailedDetails = model.acceptInvitationFailedDetails;
this.createTime = model.createTime;
this.receiverAccountId = model.receiverAccountId;
this.resourceShareId = model.resourceShareId;
this.resourceShareInvitationId = model.resourceShareInvitationId;
this.resourceShareName = model.resourceShareName;
this.senderAccountId = model.senderAccountId;
this.status = model.status;
}
/**
* <p>The information about the failure.</p>
*/
public Builder acceptInvitationFailedDetails(java.util.List<AcceptInvitationFailedDetails> acceptInvitationFailedDetails) {
this.acceptInvitationFailedDetails = acceptInvitationFailedDetails;
return this;
}
/**
* <p>The time when the invitation was created. The time is displayed in UTC.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2022-09-02T06:43:12.353Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The Alibaba Cloud account ID of the invitee.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>134254031178****</p>
*/
public Builder receiverAccountId(String receiverAccountId) {
this.receiverAccountId = receiverAccountId;
return this;
}
/**
* <p>The ID of the resource share.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rs-ysGRci9z****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.resourceShareId = resourceShareId;
return this;
}
/**
* <p>The ID of the resource sharing invitation.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>i-pMnItMX19fBJ****</p>
*/
public Builder resourceShareInvitationId(String resourceShareInvitationId) {
this.resourceShareInvitationId = resourceShareInvitationId;
return this;
}
/**
* <p>The name of the resource share.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>example</p>
*/
public Builder resourceShareName(String resourceShareName) {
this.resourceShareName = resourceShareName;
return this;
}
/**
* <p>The Alibaba Cloud account ID of the inviter.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>151266687691****</p>
*/
public Builder senderAccountId(String senderAccountId) {
this.senderAccountId = senderAccountId;
return this;
}
/**
* <p>The status of the invitation. Valid values:</p>
* <ul>
* <li>Pending</li>
* <li>Accepted</li>
* <li>Cancelled</li>
* <li>Rejected</li>
* <li>Expired</li>
* <li>AcceptFailed</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>AcceptFailed</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public ResourceShareInvitation build() {
return new ResourceShareInvitation(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/AssociateResourceSharePermissionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AssociateResourceSharePermissionRequest} extends {@link RequestModel}
*
* <p>AssociateResourceSharePermissionRequest</p>
*/
public class AssociateResourceSharePermissionRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PermissionName")
@com.aliyun.core.annotation.Validation(required = true)
private String permissionName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Replace")
private Boolean replace;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareId;
private AssociateResourceSharePermissionRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.permissionName = builder.permissionName;
this.replace = builder.replace;
this.resourceShareId = builder.resourceShareId;
}
public static Builder builder() {
return new Builder();
}
public static AssociateResourceSharePermissionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return permissionName
*/
public String getPermissionName() {
return this.permissionName;
}
/**
* @return replace
*/
public Boolean getReplace() {
return this.replace;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
public static final class Builder extends Request.Builder<AssociateResourceSharePermissionRequest, Builder> {
private String regionId;
private String permissionName;
private Boolean replace;
private String resourceShareId;
private Builder() {
super();
}
private Builder(AssociateResourceSharePermissionRequest request) {
super(request);
this.regionId = request.regionId;
this.permissionName = request.permissionName;
this.replace = request.replace;
this.resourceShareId = request.resourceShareId;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The name of the permission.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>AliyunRSDefaultPermissionVSwitch</p>
*/
public Builder permissionName(String permissionName) {
this.putQueryParameter("PermissionName", permissionName);
this.permissionName = permissionName;
return this;
}
/**
* <p>Specifies whether to use the specified permission to replace an existing permission. Valid values:</p>
* <ul>
* <li>false: does not use the specified permission to replace an existing permission. This is the default value. If you set the value to false for a resource share that does not have associated permissions, the system associates the specified permission with the resource share. In a resource share, one resource type can have only one permission. If you set the value to false for a resource share that already has a permission for the resource type indicated by the specified permission, the system reports an error. This prevents you from replacing the existing permission by mistake.</li>
* <li>true: uses the specified permission to replace an existing permission of the same resource type.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder replace(Boolean replace) {
this.putQueryParameter("Replace", replace);
this.replace = replace;
return this;
}
/**
* <p>The ID of the resource share.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rs-6GRmdD3X****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.putQueryParameter("ResourceShareId", resourceShareId);
this.resourceShareId = resourceShareId;
return this;
}
@Override
public AssociateResourceSharePermissionRequest build() {
return new AssociateResourceSharePermissionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/AssociateResourceSharePermissionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AssociateResourceSharePermissionResponse} extends {@link TeaModel}
*
* <p>AssociateResourceSharePermissionResponse</p>
*/
public class AssociateResourceSharePermissionResponse 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 AssociateResourceSharePermissionResponseBody body;
private AssociateResourceSharePermissionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AssociateResourceSharePermissionResponse 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 AssociateResourceSharePermissionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AssociateResourceSharePermissionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AssociateResourceSharePermissionResponseBody body);
@Override
AssociateResourceSharePermissionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AssociateResourceSharePermissionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AssociateResourceSharePermissionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AssociateResourceSharePermissionResponse 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(AssociateResourceSharePermissionResponseBody body) {
this.body = body;
return this;
}
@Override
public AssociateResourceSharePermissionResponse build() {
return new AssociateResourceSharePermissionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/AssociateResourceSharePermissionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AssociateResourceSharePermissionResponseBody} extends {@link TeaModel}
*
* <p>AssociateResourceSharePermissionResponseBody</p>
*/
public class AssociateResourceSharePermissionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private AssociateResourceSharePermissionResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static AssociateResourceSharePermissionResponseBody 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(AssociateResourceSharePermissionResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>111FB84A-60A9-403E-9067-E55D7EE95BD1</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public AssociateResourceSharePermissionResponseBody build() {
return new AssociateResourceSharePermissionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/AssociateResourceShareRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AssociateResourceShareRequest} extends {@link RequestModel}
*
* <p>AssociateResourceShareRequest</p>
*/
public class AssociateResourceShareRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PermissionNames")
private java.util.List<String> permissionNames;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceArns")
private java.util.List<String> resourceArns;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Resources")
private java.util.List<Resources> resources;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetProperties")
private java.util.List<TargetProperties> targetProperties;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Targets")
private java.util.List<String> targets;
private AssociateResourceShareRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.permissionNames = builder.permissionNames;
this.resourceArns = builder.resourceArns;
this.resourceShareId = builder.resourceShareId;
this.resources = builder.resources;
this.targetProperties = builder.targetProperties;
this.targets = builder.targets;
}
public static Builder builder() {
return new Builder();
}
public static AssociateResourceShareRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return permissionNames
*/
public java.util.List<String> getPermissionNames() {
return this.permissionNames;
}
/**
* @return resourceArns
*/
public java.util.List<String> getResourceArns() {
return this.resourceArns;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
/**
* @return resources
*/
public java.util.List<Resources> getResources() {
return this.resources;
}
/**
* @return targetProperties
*/
public java.util.List<TargetProperties> getTargetProperties() {
return this.targetProperties;
}
/**
* @return targets
*/
public java.util.List<String> getTargets() {
return this.targets;
}
public static final class Builder extends Request.Builder<AssociateResourceShareRequest, Builder> {
private String regionId;
private java.util.List<String> permissionNames;
private java.util.List<String> resourceArns;
private String resourceShareId;
private java.util.List<Resources> resources;
private java.util.List<TargetProperties> targetProperties;
private java.util.List<String> targets;
private Builder() {
super();
}
private Builder(AssociateResourceShareRequest request) {
super(request);
this.regionId = request.regionId;
this.permissionNames = request.permissionNames;
this.resourceArns = request.resourceArns;
this.resourceShareId = request.resourceShareId;
this.resources = request.resources;
this.targetProperties = request.targetProperties;
this.targets = request.targets;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The information about the permissions. If you do not configure this parameter, the system automatically associates the default permission for the specified resource type with the resource share. For more information, see <a href="https://help.aliyun.com/document_detail/465474.html">Permission library</a>.</p>
*/
public Builder permissionNames(java.util.List<String> permissionNames) {
this.putQueryParameter("PermissionNames", permissionNames);
this.permissionNames = permissionNames;
return this;
}
/**
* ResourceArns.
*/
public Builder resourceArns(java.util.List<String> resourceArns) {
this.putQueryParameter("ResourceArns", resourceArns);
this.resourceArns = resourceArns;
return this;
}
/**
* <p>The ID of the resource share.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rs-6GRmdD3X****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.putQueryParameter("ResourceShareId", resourceShareId);
this.resourceShareId = resourceShareId;
return this;
}
/**
* <p>The information about the resources.</p>
*/
public Builder resources(java.util.List<Resources> resources) {
this.putQueryParameter("Resources", resources);
this.resources = resources;
return this;
}
/**
* <p>The properties of the principal.</p>
* <blockquote>
* <p> This parameter is available only when you specify an Alibaba Cloud service as a principal.</p>
* </blockquote>
*/
public Builder targetProperties(java.util.List<TargetProperties> targetProperties) {
this.putQueryParameter("TargetProperties", targetProperties);
this.targetProperties = targetProperties;
return this;
}
/**
* <p>The information about the principals.</p>
*
* <strong>example:</strong>
* <p>172050525300****</p>
*/
public Builder targets(java.util.List<String> targets) {
this.putQueryParameter("Targets", targets);
this.targets = targets;
return this;
}
@Override
public AssociateResourceShareRequest build() {
return new AssociateResourceShareRequest(this);
}
}
/**
*
* {@link AssociateResourceShareRequest} extends {@link TeaModel}
*
* <p>AssociateResourceShareRequest</p>
*/
public static class Resources extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
private Resources(Builder builder) {
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
}
public static Builder builder() {
return new Builder();
}
public static Resources create() {
return builder().build();
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
public static final class Builder {
private String resourceId;
private String resourceType;
private Builder() {
}
private Builder(Resources model) {
this.resourceId = model.resourceId;
this.resourceType = model.resourceType;
}
/**
* <p>The ID of a shared resource.</p>
* <p>Valid values of N: 1 to 5. This indicates that a maximum of five shared resources can be specified at a time.</p>
* <blockquote>
* <p> Resources.N.ResourceId and Resources.N.ResourceType must be used in pairs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vsw-bp183p93qs667muql****</p>
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The type of a shared resource.</p>
* <p>Valid values of N: 1 to 5. This indicates that a maximum of five shared resources can be specified at a time.</p>
* <p>For more information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</p>
* <blockquote>
* <p> <code>Resources.N.ResourceId</code> and <code>Resources.N.ResourceType</code> must be used in pairs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
public Resources build() {
return new Resources(this);
}
}
}
/**
*
* {@link AssociateResourceShareRequest} extends {@link TeaModel}
*
* <p>AssociateResourceShareRequest</p>
*/
public static class TargetProperties extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Property")
private String property;
@com.aliyun.core.annotation.NameInMap("TargetId")
private String targetId;
private TargetProperties(Builder builder) {
this.property = builder.property;
this.targetId = builder.targetId;
}
public static Builder builder() {
return new Builder();
}
public static TargetProperties create() {
return builder().build();
}
/**
* @return property
*/
public String getProperty() {
return this.property;
}
/**
* @return targetId
*/
public String getTargetId() {
return this.targetId;
}
public static final class Builder {
private String property;
private String targetId;
private Builder() {
}
private Builder(TargetProperties model) {
this.property = model.property;
this.targetId = model.targetId;
}
/**
* <p>The property parameter of the principal. For example, you can specify a parameter that indicates the time range for resource sharing. Valid values of <code>timeRangeType</code>:</p>
* <ul>
* <li>timeRange: a specific time range</li>
* <li>day: all day</li>
* </ul>
* <blockquote>
* <p> <code>TargetProperties.N.TargetId</code> and <code>TargetProperties.N.Property</code> must be used in pairs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>{
* "timeRange":{
* "timeRangeType":"timeRange",
* "beginAtTime":"00:00",
* "timezone":"UTC+8",
* "endAtTime":"19:59"
* }
* }</p>
*/
public Builder property(String property) {
this.property = property;
return this;
}
/**
* <p>The ID of the principal.</p>
* <blockquote>
* <p> <code>TargetProperties.N.TargetId</code> and <code>TargetProperties.N.Property</code> must be used in pairs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>172050525300****</p>
*/
public Builder targetId(String targetId) {
this.targetId = targetId;
return this;
}
public TargetProperties build() {
return new TargetProperties(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/AssociateResourceShareResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AssociateResourceShareResponse} extends {@link TeaModel}
*
* <p>AssociateResourceShareResponse</p>
*/
public class AssociateResourceShareResponse 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 AssociateResourceShareResponseBody body;
private AssociateResourceShareResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AssociateResourceShareResponse 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 AssociateResourceShareResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AssociateResourceShareResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AssociateResourceShareResponseBody body);
@Override
AssociateResourceShareResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AssociateResourceShareResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AssociateResourceShareResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AssociateResourceShareResponse 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(AssociateResourceShareResponseBody body) {
this.body = body;
return this;
}
@Override
public AssociateResourceShareResponse build() {
return new AssociateResourceShareResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/AssociateResourceShareResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AssociateResourceShareResponseBody} extends {@link TeaModel}
*
* <p>AssociateResourceShareResponseBody</p>
*/
public class AssociateResourceShareResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceShareAssociations")
private java.util.List<ResourceShareAssociations> resourceShareAssociations;
private AssociateResourceShareResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.resourceShareAssociations = builder.resourceShareAssociations;
}
public static Builder builder() {
return new Builder();
}
public static AssociateResourceShareResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceShareAssociations
*/
public java.util.List<ResourceShareAssociations> getResourceShareAssociations() {
return this.resourceShareAssociations;
}
public static final class Builder {
private String requestId;
private java.util.List<ResourceShareAssociations> resourceShareAssociations;
private Builder() {
}
private Builder(AssociateResourceShareResponseBody model) {
this.requestId = model.requestId;
this.resourceShareAssociations = model.resourceShareAssociations;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>111FB84A-60A9-403E-9067-E55D7EE95BD1</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the entities that are associated with the resource share.</p>
*/
public Builder resourceShareAssociations(java.util.List<ResourceShareAssociations> resourceShareAssociations) {
this.resourceShareAssociations = resourceShareAssociations;
return this;
}
public AssociateResourceShareResponseBody build() {
return new AssociateResourceShareResponseBody(this);
}
}
/**
*
* {@link AssociateResourceShareResponseBody} extends {@link TeaModel}
*
* <p>AssociateResourceShareResponseBody</p>
*/
public static class ResourceShareAssociations extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociationStatus")
private String associationStatus;
@com.aliyun.core.annotation.NameInMap("AssociationStatusMessage")
private String associationStatusMessage;
@com.aliyun.core.annotation.NameInMap("AssociationType")
private String associationType;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("EntityId")
private String entityId;
@com.aliyun.core.annotation.NameInMap("EntityType")
private String entityType;
@com.aliyun.core.annotation.NameInMap("ResourceArn")
private String resourceArn;
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
private String resourceShareId;
@com.aliyun.core.annotation.NameInMap("ResourceShareName")
private String resourceShareName;
@com.aliyun.core.annotation.NameInMap("TargetProperty")
private String targetProperty;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private String updateTime;
private ResourceShareAssociations(Builder builder) {
this.associationStatus = builder.associationStatus;
this.associationStatusMessage = builder.associationStatusMessage;
this.associationType = builder.associationType;
this.createTime = builder.createTime;
this.entityId = builder.entityId;
this.entityType = builder.entityType;
this.resourceArn = builder.resourceArn;
this.resourceShareId = builder.resourceShareId;
this.resourceShareName = builder.resourceShareName;
this.targetProperty = builder.targetProperty;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static ResourceShareAssociations create() {
return builder().build();
}
/**
* @return associationStatus
*/
public String getAssociationStatus() {
return this.associationStatus;
}
/**
* @return associationStatusMessage
*/
public String getAssociationStatusMessage() {
return this.associationStatusMessage;
}
/**
* @return associationType
*/
public String getAssociationType() {
return this.associationType;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return entityId
*/
public String getEntityId() {
return this.entityId;
}
/**
* @return entityType
*/
public String getEntityType() {
return this.entityType;
}
/**
* @return resourceArn
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
/**
* @return resourceShareName
*/
public String getResourceShareName() {
return this.resourceShareName;
}
/**
* @return targetProperty
*/
public String getTargetProperty() {
return this.targetProperty;
}
/**
* @return updateTime
*/
public String getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private String associationStatus;
private String associationStatusMessage;
private String associationType;
private String createTime;
private String entityId;
private String entityType;
private String resourceArn;
private String resourceShareId;
private String resourceShareName;
private String targetProperty;
private String updateTime;
private Builder() {
}
private Builder(ResourceShareAssociations model) {
this.associationStatus = model.associationStatus;
this.associationStatusMessage = model.associationStatusMessage;
this.associationType = model.associationType;
this.createTime = model.createTime;
this.entityId = model.entityId;
this.entityType = model.entityType;
this.resourceArn = model.resourceArn;
this.resourceShareId = model.resourceShareId;
this.resourceShareName = model.resourceShareName;
this.targetProperty = model.targetProperty;
this.updateTime = model.updateTime;
}
/**
* <p>The association status. Valid values:</p>
* <ul>
* <li>Associating: The entity is being associated.</li>
* <li>Associated: The entity is associated.</li>
* <li>Failed: The entity fails to be associated.</li>
* <li>Disassociating: The entity is being disassociated.</li>
* <li>Disassociated: The entity is disassociated.</li>
* </ul>
* <blockquote>
* <p> The system deletes the records of entities in the <code>Failed</code> or <code>Disassociated</code> state within 48 hours to 96 hours.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Associating</p>
*/
public Builder associationStatus(String associationStatus) {
this.associationStatus = associationStatus;
return this;
}
/**
* <p>The cause of the association failure.</p>
*
* <strong>example:</strong>
* <p>The reason for the association failure.</p>
*/
public Builder associationStatusMessage(String associationStatusMessage) {
this.associationStatusMessage = associationStatusMessage;
return this;
}
/**
* <p>The association type. Valid values:</p>
* <ul>
* <li>Resource</li>
* <li>Target</li>
* </ul>
*
* <strong>example:</strong>
* <p>Resource</p>
*/
public Builder associationType(String associationType) {
this.associationType = associationType;
return this;
}
/**
* <p>The time when the association of the entity was created. The value of this parameter depends on the value of the AssociationType parameter:</p>
* <ul>
* <li>If the value of <code>AssociationType</code> is <code>Resource</code>, the value of this parameter is the time when the shared resource was associated with the resource share.</li>
* <li>If the value of <code>AssociationType</code> is <code>Target</code>, the value of this parameter is the time when the principal was associated with the resource share.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2020-12-04T09:40:41.246Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the entity. The value of this parameter depends on the value of the AssociationType parameter:</p>
* <ul>
* <li>If the value of <code>AssociationType</code> is <code>Resource</code>, the value of this parameter is the ID of the shared resource.</li>
* <li>If the value of <code>AssociationType</code> is <code>Target</code>, the value of this parameter is the ID of the principal.</li>
* </ul>
*
* <strong>example:</strong>
* <p>vsw-bp183p93qs667muql****</p>
*/
public Builder entityId(String entityId) {
this.entityId = entityId;
return this;
}
/**
* <p>The type of the entity. The value of this parameter depends on the value of the AssociationType parameter:</p>
* <ul>
* <li>If the value of AssociationType is Resource, the value of this parameter is the type of the shared resource. For information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</li>
* <li>If the value of AssociationType is Target, the value of this parameter is <code>Account</code>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder entityType(String entityType) {
this.entityType = entityType;
return this;
}
/**
* ResourceArn.
*/
public Builder resourceArn(String resourceArn) {
this.resourceArn = resourceArn;
return this;
}
/**
* <p>The ID of the resource share.</p>
*
* <strong>example:</strong>
* <p>rs-6GRmdD3X****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.resourceShareId = resourceShareId;
return this;
}
/**
* <p>The name of the resource share.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder resourceShareName(String resourceShareName) {
this.resourceShareName = resourceShareName;
return this;
}
/**
* <p>The properties of the principal, such as the time range within which the resource is shared.</p>
* <blockquote>
* <p> This parameter is returned only if the principal is an Alibaba Cloud service.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>{
* "plan":{
* "timeRangeType":"timeRange",
* "beginAtTime":"00:00",
* "timezone":"UTC+8",
* "endAtTime":"19:59"
* }
* }</p>
*/
public Builder targetProperty(String targetProperty) {
this.targetProperty = targetProperty;
return this;
}
/**
* <p>The time when the association of the entity was updated. The value of this parameter depends on the value of the AssociationType parameter:</p>
* <ul>
* <li>If the value of <code>AssociationType</code> is <code>Resource</code>, the value of this parameter is the time when the association of the shared resource was updated.</li>
* <li>If the value of <code>AssociationType</code> is <code>Target</code>, the value of this parameter is the time when the association of the principal was updated.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2020-12-04T09:40:41.246Z</p>
*/
public Builder updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
public ResourceShareAssociations build() {
return new ResourceShareAssociations(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ChangeResourceGroupRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ChangeResourceGroupRequest} extends {@link RequestModel}
*
* <p>ChangeResourceGroupRequest</p>
*/
public class ChangeResourceGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceRegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceRegionId;
private ChangeResourceGroupRequest(Builder builder) {
super(builder);
this.resourceGroupId = builder.resourceGroupId;
this.resourceId = builder.resourceId;
this.resourceRegionId = builder.resourceRegionId;
}
public static Builder builder() {
return new Builder();
}
public static ChangeResourceGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceRegionId
*/
public String getResourceRegionId() {
return this.resourceRegionId;
}
public static final class Builder extends Request.Builder<ChangeResourceGroupRequest, Builder> {
private String resourceGroupId;
private String resourceId;
private String resourceRegionId;
private Builder() {
super();
}
private Builder(ChangeResourceGroupRequest request) {
super(request);
this.resourceGroupId = request.resourceGroupId;
this.resourceId = request.resourceId;
this.resourceRegionId = request.resourceRegionId;
}
/**
* <p>The ID of the destination resource group.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rg-aek2nb47ueqk***</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The ID of the resource share.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rs-dz3Ek1iiO***</p>
*/
public Builder resourceId(String resourceId) {
this.putQueryParameter("ResourceId", resourceId);
this.resourceId = resourceId;
return this;
}
/**
* <p>The region ID of the resource share.</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;
}
@Override
public ChangeResourceGroupRequest build() {
return new ChangeResourceGroupRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ChangeResourceGroupResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ChangeResourceGroupResponse} extends {@link TeaModel}
*
* <p>ChangeResourceGroupResponse</p>
*/
public class ChangeResourceGroupResponse 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 ChangeResourceGroupResponseBody body;
private ChangeResourceGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ChangeResourceGroupResponse 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 ChangeResourceGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ChangeResourceGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ChangeResourceGroupResponseBody body);
@Override
ChangeResourceGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ChangeResourceGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ChangeResourceGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ChangeResourceGroupResponse 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(ChangeResourceGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public ChangeResourceGroupResponse build() {
return new ChangeResourceGroupResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ChangeResourceGroupResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ChangeResourceGroupResponseBody} extends {@link TeaModel}
*
* <p>ChangeResourceGroupResponseBody</p>
*/
public class ChangeResourceGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ChangeResourceGroupResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ChangeResourceGroupResponseBody 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(ChangeResourceGroupResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>0A900114-22D3-5E9D-87A2-48E5EB5BF310</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ChangeResourceGroupResponseBody build() {
return new ChangeResourceGroupResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/CheckSharingWithResourceDirectoryStatusRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckSharingWithResourceDirectoryStatusRequest} extends {@link RequestModel}
*
* <p>CheckSharingWithResourceDirectoryStatusRequest</p>
*/
public class CheckSharingWithResourceDirectoryStatusRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private CheckSharingWithResourceDirectoryStatusRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static CheckSharingWithResourceDirectoryStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<CheckSharingWithResourceDirectoryStatusRequest, Builder> {
private String regionId;
private Builder() {
super();
}
private Builder(CheckSharingWithResourceDirectoryStatusRequest request) {
super(request);
this.regionId = request.regionId;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public CheckSharingWithResourceDirectoryStatusRequest build() {
return new CheckSharingWithResourceDirectoryStatusRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/CheckSharingWithResourceDirectoryStatusResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckSharingWithResourceDirectoryStatusResponse} extends {@link TeaModel}
*
* <p>CheckSharingWithResourceDirectoryStatusResponse</p>
*/
public class CheckSharingWithResourceDirectoryStatusResponse 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 CheckSharingWithResourceDirectoryStatusResponseBody body;
private CheckSharingWithResourceDirectoryStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CheckSharingWithResourceDirectoryStatusResponse 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 CheckSharingWithResourceDirectoryStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CheckSharingWithResourceDirectoryStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CheckSharingWithResourceDirectoryStatusResponseBody body);
@Override
CheckSharingWithResourceDirectoryStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CheckSharingWithResourceDirectoryStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CheckSharingWithResourceDirectoryStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CheckSharingWithResourceDirectoryStatusResponse 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(CheckSharingWithResourceDirectoryStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public CheckSharingWithResourceDirectoryStatusResponse build() {
return new CheckSharingWithResourceDirectoryStatusResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/CheckSharingWithResourceDirectoryStatusResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckSharingWithResourceDirectoryStatusResponseBody} extends {@link TeaModel}
*
* <p>CheckSharingWithResourceDirectoryStatusResponseBody</p>
*/
public class CheckSharingWithResourceDirectoryStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EnableSharingWithRd")
private Boolean enableSharingWithRd;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CheckSharingWithResourceDirectoryStatusResponseBody(Builder builder) {
this.enableSharingWithRd = builder.enableSharingWithRd;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CheckSharingWithResourceDirectoryStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return enableSharingWithRd
*/
public Boolean getEnableSharingWithRd() {
return this.enableSharingWithRd;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Boolean enableSharingWithRd;
private String requestId;
private Builder() {
}
private Builder(CheckSharingWithResourceDirectoryStatusResponseBody model) {
this.enableSharingWithRd = model.enableSharingWithRd;
this.requestId = model.requestId;
}
/**
* <p>Indicates whether resource sharing within a resource directory is enabled. Valid values:</p>
* <ul>
* <li>false</li>
* <li>true</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableSharingWithRd(Boolean enableSharingWithRd) {
this.enableSharingWithRd = enableSharingWithRd;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>819545D0-C97A-5DB3-BD73-A1B17E9A4BC1</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CheckSharingWithResourceDirectoryStatusResponseBody build() {
return new CheckSharingWithResourceDirectoryStatusResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/CreateResourceShareRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateResourceShareRequest} extends {@link RequestModel}
*
* <p>CreateResourceShareRequest</p>
*/
public class CreateResourceShareRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AllowExternalTargets")
private Boolean allowExternalTargets;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PermissionNames")
private java.util.List<String> permissionNames;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceArns")
private java.util.List<String> resourceArns;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareName")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Resources")
private java.util.List<Resources> resources;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetProperties")
private java.util.List<TargetProperties> targetProperties;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Targets")
private java.util.List<String> targets;
private CreateResourceShareRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.allowExternalTargets = builder.allowExternalTargets;
this.permissionNames = builder.permissionNames;
this.resourceArns = builder.resourceArns;
this.resourceGroupId = builder.resourceGroupId;
this.resourceShareName = builder.resourceShareName;
this.resources = builder.resources;
this.tag = builder.tag;
this.targetProperties = builder.targetProperties;
this.targets = builder.targets;
}
public static Builder builder() {
return new Builder();
}
public static CreateResourceShareRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return allowExternalTargets
*/
public Boolean getAllowExternalTargets() {
return this.allowExternalTargets;
}
/**
* @return permissionNames
*/
public java.util.List<String> getPermissionNames() {
return this.permissionNames;
}
/**
* @return resourceArns
*/
public java.util.List<String> getResourceArns() {
return this.resourceArns;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceShareName
*/
public String getResourceShareName() {
return this.resourceShareName;
}
/**
* @return resources
*/
public java.util.List<Resources> getResources() {
return this.resources;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return targetProperties
*/
public java.util.List<TargetProperties> getTargetProperties() {
return this.targetProperties;
}
/**
* @return targets
*/
public java.util.List<String> getTargets() {
return this.targets;
}
public static final class Builder extends Request.Builder<CreateResourceShareRequest, Builder> {
private String regionId;
private Boolean allowExternalTargets;
private java.util.List<String> permissionNames;
private java.util.List<String> resourceArns;
private String resourceGroupId;
private String resourceShareName;
private java.util.List<Resources> resources;
private java.util.List<Tag> tag;
private java.util.List<TargetProperties> targetProperties;
private java.util.List<String> targets;
private Builder() {
super();
}
private Builder(CreateResourceShareRequest request) {
super(request);
this.regionId = request.regionId;
this.allowExternalTargets = request.allowExternalTargets;
this.permissionNames = request.permissionNames;
this.resourceArns = request.resourceArns;
this.resourceGroupId = request.resourceGroupId;
this.resourceShareName = request.resourceShareName;
this.resources = request.resources;
this.tag = request.tag;
this.targetProperties = request.targetProperties;
this.targets = request.targets;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>Specifies whether resources in the resource share can be shared with accounts outside the resource directory. Valid values:</p>
* <ul>
* <li>false (default): Resources in the resource share can be shared only with accounts in the resource directory.</li>
* <li>true: Resources in the resource share can be shared with both accounts in the resource directory and accounts outside the resource directory.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder allowExternalTargets(Boolean allowExternalTargets) {
this.putQueryParameter("AllowExternalTargets", allowExternalTargets);
this.allowExternalTargets = allowExternalTargets;
return this;
}
/**
* <p>The information about the permissions. If you do not configure this parameter, the system automatically associates the default permission for the specified resource type with the resource share. For more information, see <a href="https://help.aliyun.com/document_detail/465474.html">Permission library</a>.</p>
*/
public Builder permissionNames(java.util.List<String> permissionNames) {
this.putQueryParameter("PermissionNames", permissionNames);
this.permissionNames = permissionNames;
return this;
}
/**
* ResourceArns.
*/
public Builder resourceArns(java.util.List<String> resourceArns) {
this.putQueryParameter("ResourceArns", resourceArns);
this.resourceArns = resourceArns;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-aekz5nlvlak****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The name of the resource share.</p>
* <p>The name must be 1 to 50 characters in length.</p>
* <p>The name can contain letters, digits, periods (.), underscores (_), and hyphens (-).</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder resourceShareName(String resourceShareName) {
this.putQueryParameter("ResourceShareName", resourceShareName);
this.resourceShareName = resourceShareName;
return this;
}
/**
* <p>The information about the shared resources.</p>
*/
public Builder resources(java.util.List<Resources> resources) {
this.putQueryParameter("Resources", resources);
this.resources = resources;
return this;
}
/**
* <p>The tags. You can specify up to 20 tags.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The properties of the principal.</p>
* <blockquote>
* <p> This parameter is available only when you specify an Alibaba Cloud service as a principal.</p>
* </blockquote>
*/
public Builder targetProperties(java.util.List<TargetProperties> targetProperties) {
this.putQueryParameter("TargetProperties", targetProperties);
this.targetProperties = targetProperties;
return this;
}
/**
* <p>The information about the principals.</p>
*
* <strong>example:</strong>
* <p>172050525300****</p>
*/
public Builder targets(java.util.List<String> targets) {
this.putQueryParameter("Targets", targets);
this.targets = targets;
return this;
}
@Override
public CreateResourceShareRequest build() {
return new CreateResourceShareRequest(this);
}
}
/**
*
* {@link CreateResourceShareRequest} extends {@link TeaModel}
*
* <p>CreateResourceShareRequest</p>
*/
public static class Resources extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
private Resources(Builder builder) {
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
}
public static Builder builder() {
return new Builder();
}
public static Resources create() {
return builder().build();
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
public static final class Builder {
private String resourceId;
private String resourceType;
private Builder() {
}
private Builder(Resources model) {
this.resourceId = model.resourceId;
this.resourceType = model.resourceType;
}
/**
* <p>The ID of a shared resource.</p>
* <p>Valid values of N: 1 to 5. This indicates that a maximum of five shared resources can be specified at a time.</p>
* <blockquote>
* <p> <code>Resources.N.ResourceId</code> and <code>Resources.N.ResourceType</code> must be used in pairs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vsw-bp183p93qs667muql****</p>
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The type of a shared resource.</p>
* <p>Valid values of N: 1 to 5. This indicates that a maximum of five shared resources can be specified at a time.</p>
* <p>For more information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</p>
* <blockquote>
* <p> <code>Resources.N.ResourceId</code> and <code>Resources.N.ResourceType</code> must be used in pairs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
public Resources build() {
return new Resources(this);
}
}
}
/**
*
* {@link CreateResourceShareRequest} extends {@link TeaModel}
*
* <p>CreateResourceShareRequest</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.</p>
* <blockquote>
* <p> The tag key can be up to 128 characters in length and cannot start with <code>acs:</code> or <code>aliyun</code>. The tag key cannot contain <code>http://</code> or <code>https://</code>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>k1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value.</p>
* <blockquote>
* <p> The tag value can be up to 128 characters in length and cannot start with <code>acs:</code>. The tag value cannot contain <code>http://</code> or <code>https://</code>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>v1</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link CreateResourceShareRequest} extends {@link TeaModel}
*
* <p>CreateResourceShareRequest</p>
*/
public static class TargetProperties extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Property")
private String property;
@com.aliyun.core.annotation.NameInMap("TargetId")
private String targetId;
private TargetProperties(Builder builder) {
this.property = builder.property;
this.targetId = builder.targetId;
}
public static Builder builder() {
return new Builder();
}
public static TargetProperties create() {
return builder().build();
}
/**
* @return property
*/
public String getProperty() {
return this.property;
}
/**
* @return targetId
*/
public String getTargetId() {
return this.targetId;
}
public static final class Builder {
private String property;
private String targetId;
private Builder() {
}
private Builder(TargetProperties model) {
this.property = model.property;
this.targetId = model.targetId;
}
/**
* <p>The property parameter of the principal. For example, you can specify a parameter that indicates the time range for resource sharing. Valid values of <code>timeRangeType</code>:</p>
* <ul>
* <li>timeRange: a specific time range</li>
* <li>day: all day</li>
* </ul>
* <blockquote>
* <p> <code>TargetProperties.N.TargetId</code> and <code>TargetProperties.N.Property</code> must be used in pairs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>{
* "timeRange":{
* "timeRangeType":"timeRange",
* "beginAtTime":"00:00",
* "timezone":"UTC+8",
* "endAtTime":"19:59"
* }
* }</p>
*/
public Builder property(String property) {
this.property = property;
return this;
}
/**
* <p>The ID of the principal.</p>
* <blockquote>
* <p> <code>TargetProperties.N.TargetId</code> and <code>TargetProperties.N.Property</code> must be used in pairs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>172050525300****</p>
*/
public Builder targetId(String targetId) {
this.targetId = targetId;
return this;
}
public TargetProperties build() {
return new TargetProperties(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/CreateResourceShareResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateResourceShareResponse} extends {@link TeaModel}
*
* <p>CreateResourceShareResponse</p>
*/
public class CreateResourceShareResponse 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 CreateResourceShareResponseBody body;
private CreateResourceShareResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateResourceShareResponse 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 CreateResourceShareResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateResourceShareResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateResourceShareResponseBody body);
@Override
CreateResourceShareResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateResourceShareResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateResourceShareResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateResourceShareResponse 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(CreateResourceShareResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateResourceShareResponse build() {
return new CreateResourceShareResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/CreateResourceShareResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateResourceShareResponseBody} extends {@link TeaModel}
*
* <p>CreateResourceShareResponseBody</p>
*/
public class CreateResourceShareResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceShare")
private ResourceShare resourceShare;
private CreateResourceShareResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.resourceShare = builder.resourceShare;
}
public static Builder builder() {
return new Builder();
}
public static CreateResourceShareResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceShare
*/
public ResourceShare getResourceShare() {
return this.resourceShare;
}
public static final class Builder {
private String requestId;
private ResourceShare resourceShare;
private Builder() {
}
private Builder(CreateResourceShareResponseBody model) {
this.requestId = model.requestId;
this.resourceShare = model.resourceShare;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>2C3FA051-61DC-4F3E-81E9-E4830524DF4B</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the resource share.</p>
*/
public Builder resourceShare(ResourceShare resourceShare) {
this.resourceShare = resourceShare;
return this;
}
public CreateResourceShareResponseBody build() {
return new CreateResourceShareResponseBody(this);
}
}
/**
*
* {@link CreateResourceShareResponseBody} extends {@link TeaModel}
*
* <p>CreateResourceShareResponseBody</p>
*/
public static class ResourceShare extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllowExternalTargets")
private Boolean allowExternalTargets;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
private String resourceShareId;
@com.aliyun.core.annotation.NameInMap("ResourceShareName")
private String resourceShareName;
@com.aliyun.core.annotation.NameInMap("ResourceShareOwner")
private String resourceShareOwner;
@com.aliyun.core.annotation.NameInMap("ResourceShareStatus")
private String resourceShareStatus;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private String updateTime;
private ResourceShare(Builder builder) {
this.allowExternalTargets = builder.allowExternalTargets;
this.createTime = builder.createTime;
this.resourceShareId = builder.resourceShareId;
this.resourceShareName = builder.resourceShareName;
this.resourceShareOwner = builder.resourceShareOwner;
this.resourceShareStatus = builder.resourceShareStatus;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static ResourceShare create() {
return builder().build();
}
/**
* @return allowExternalTargets
*/
public Boolean getAllowExternalTargets() {
return this.allowExternalTargets;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
/**
* @return resourceShareName
*/
public String getResourceShareName() {
return this.resourceShareName;
}
/**
* @return resourceShareOwner
*/
public String getResourceShareOwner() {
return this.resourceShareOwner;
}
/**
* @return resourceShareStatus
*/
public String getResourceShareStatus() {
return this.resourceShareStatus;
}
/**
* @return updateTime
*/
public String getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private Boolean allowExternalTargets;
private String createTime;
private String resourceShareId;
private String resourceShareName;
private String resourceShareOwner;
private String resourceShareStatus;
private String updateTime;
private Builder() {
}
private Builder(ResourceShare model) {
this.allowExternalTargets = model.allowExternalTargets;
this.createTime = model.createTime;
this.resourceShareId = model.resourceShareId;
this.resourceShareName = model.resourceShareName;
this.resourceShareOwner = model.resourceShareOwner;
this.resourceShareStatus = model.resourceShareStatus;
this.updateTime = model.updateTime;
}
/**
* <p>Indicates whether resources in the resource share can be shared with accounts outside the resource directory. Valid values:</p>
* <ul>
* <li>false: Resources in the resource share can be shared only with accounts in the resource directory.</li>
* <li>true: Resources in the resource share can be shared with both accounts in the resource directory and accounts outside the resource directory.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder allowExternalTargets(Boolean allowExternalTargets) {
this.allowExternalTargets = allowExternalTargets;
return this;
}
/**
* <p>The time when the resource share was created.</p>
*
* <strong>example:</strong>
* <p>2020-12-03T08:02:22.413Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the resource share.</p>
*
* <strong>example:</strong>
* <p>rs-qSkW1HBY****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.resourceShareId = resourceShareId;
return this;
}
/**
* <p>The name of the resource share.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder resourceShareName(String resourceShareName) {
this.resourceShareName = resourceShareName;
return this;
}
/**
* <p>The owner of the resource share.</p>
*
* <strong>example:</strong>
* <p>151266687691****</p>
*/
public Builder resourceShareOwner(String resourceShareOwner) {
this.resourceShareOwner = resourceShareOwner;
return this;
}
/**
* <p>The status of the resource share. Valid values:</p>
* <ul>
* <li>Active: The resource share is enabled.</li>
* <li>Pending: The resource share is associated with one or more resource sharing invitations that are waiting for confirmation.</li>
* <li>Deleting: The resource share is being deleted.</li>
* <li>Deleted: The resource share is deleted.</li>
* </ul>
* <blockquote>
* <p> The system automatically deletes the records of resource shares in the Deleted state within 48 hours to 96 hours after you delete the resource shares.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Active</p>
*/
public Builder resourceShareStatus(String resourceShareStatus) {
this.resourceShareStatus = resourceShareStatus;
return this;
}
/**
* <p>The time when the resource share was updated.</p>
*
* <strong>example:</strong>
* <p>2020-12-03T08:02:22.413Z</p>
*/
public Builder updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
public ResourceShare build() {
return new ResourceShare(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/DeleteResourceShareRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteResourceShareRequest} extends {@link RequestModel}
*
* <p>DeleteResourceShareRequest</p>
*/
public class DeleteResourceShareRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareId;
private DeleteResourceShareRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.resourceShareId = builder.resourceShareId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteResourceShareRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
public static final class Builder extends Request.Builder<DeleteResourceShareRequest, Builder> {
private String regionId;
private String resourceShareId;
private Builder() {
super();
}
private Builder(DeleteResourceShareRequest request) {
super(request);
this.regionId = request.regionId;
this.resourceShareId = request.resourceShareId;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource share.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rs-qSkW1HBY****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.putQueryParameter("ResourceShareId", resourceShareId);
this.resourceShareId = resourceShareId;
return this;
}
@Override
public DeleteResourceShareRequest build() {
return new DeleteResourceShareRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/DeleteResourceShareResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteResourceShareResponse} extends {@link TeaModel}
*
* <p>DeleteResourceShareResponse</p>
*/
public class DeleteResourceShareResponse 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 DeleteResourceShareResponseBody body;
private DeleteResourceShareResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteResourceShareResponse 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 DeleteResourceShareResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteResourceShareResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteResourceShareResponseBody body);
@Override
DeleteResourceShareResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteResourceShareResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteResourceShareResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteResourceShareResponse 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(DeleteResourceShareResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteResourceShareResponse build() {
return new DeleteResourceShareResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/DeleteResourceShareResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteResourceShareResponseBody} extends {@link TeaModel}
*
* <p>DeleteResourceShareResponseBody</p>
*/
public class DeleteResourceShareResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteResourceShareResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteResourceShareResponseBody 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(DeleteResourceShareResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>A627EE2A-223D-4E1F-A954-394686AEA916</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteResourceShareResponseBody build() {
return new DeleteResourceShareResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/DescribeRegionsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRegionsRequest} extends {@link RequestModel}
*
* <p>DescribeRegionsRequest</p>
*/
public class DescribeRegionsRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AcceptLanguage")
private String acceptLanguage;
private DescribeRegionsRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.acceptLanguage = builder.acceptLanguage;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRegionsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return acceptLanguage
*/
public String getAcceptLanguage() {
return this.acceptLanguage;
}
public static final class Builder extends Request.Builder<DescribeRegionsRequest, Builder> {
private String regionId;
private String acceptLanguage;
private Builder() {
super();
}
private Builder(DescribeRegionsRequest request) {
super(request);
this.regionId = request.regionId;
this.acceptLanguage = request.acceptLanguage;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The supported natural language. Valid values:</p>
* <ul>
* <li>zh-CN: Chinese</li>
* <li>en-US: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh-CN</p>
*/
public Builder acceptLanguage(String acceptLanguage) {
this.putQueryParameter("AcceptLanguage", acceptLanguage);
this.acceptLanguage = acceptLanguage;
return this;
}
@Override
public DescribeRegionsRequest build() {
return new DescribeRegionsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/DescribeRegionsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRegionsResponse} extends {@link TeaModel}
*
* <p>DescribeRegionsResponse</p>
*/
public class DescribeRegionsResponse 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 DescribeRegionsResponseBody body;
private DescribeRegionsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRegionsResponse 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 DescribeRegionsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRegionsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRegionsResponseBody body);
@Override
DescribeRegionsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRegionsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRegionsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRegionsResponse 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(DescribeRegionsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRegionsResponse build() {
return new DescribeRegionsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/DescribeRegionsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRegionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionsResponseBody</p>
*/
public class DescribeRegionsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Regions")
private java.util.List<Regions> regions;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeRegionsResponseBody(Builder builder) {
this.regions = builder.regions;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRegionsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regions
*/
public java.util.List<Regions> getRegions() {
return this.regions;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<Regions> regions;
private String requestId;
private Builder() {
}
private Builder(DescribeRegionsResponseBody model) {
this.regions = model.regions;
this.requestId = model.requestId;
}
/**
* <p>The information of the regions.</p>
*/
public Builder regions(java.util.List<Regions> regions) {
this.regions = regions;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>0D64A198-5842-4570-8E26-5E540CDC84CD</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeRegionsResponseBody build() {
return new DescribeRegionsResponseBody(this);
}
}
/**
*
* {@link DescribeRegionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionsResponseBody</p>
*/
public static class Regions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LocalName")
private String localName;
@com.aliyun.core.annotation.NameInMap("RegionEndpoint")
private String regionEndpoint;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private Regions(Builder builder) {
this.localName = builder.localName;
this.regionEndpoint = builder.regionEndpoint;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static Regions create() {
return builder().build();
}
/**
* @return localName
*/
public String getLocalName() {
return this.localName;
}
/**
* @return regionEndpoint
*/
public String getRegionEndpoint() {
return this.regionEndpoint;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder {
private String localName;
private String regionEndpoint;
private String regionId;
private Builder() {
}
private Builder(Regions model) {
this.localName = model.localName;
this.regionEndpoint = model.regionEndpoint;
this.regionId = model.regionId;
}
/**
* <p>The name of the region.</p>
*
* <strong>example:</strong>
* <p>China (Hangzhou)</p>
*/
public Builder localName(String localName) {
this.localName = localName;
return this;
}
/**
* <p>The endpoint of the Resource Sharing service in the region.</p>
*
* <strong>example:</strong>
* <p>resourcesharing.cn-hangzhou.aliyuncs.com</p>
*/
public Builder regionEndpoint(String regionEndpoint) {
this.regionEndpoint = regionEndpoint;
return this;
}
/**
* <p>The ID of the region.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
public Regions build() {
return new Regions(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/DisassociateResourceSharePermissionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DisassociateResourceSharePermissionRequest} extends {@link RequestModel}
*
* <p>DisassociateResourceSharePermissionRequest</p>
*/
public class DisassociateResourceSharePermissionRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PermissionName")
@com.aliyun.core.annotation.Validation(required = true)
private String permissionName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareId;
private DisassociateResourceSharePermissionRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.permissionName = builder.permissionName;
this.resourceShareId = builder.resourceShareId;
}
public static Builder builder() {
return new Builder();
}
public static DisassociateResourceSharePermissionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return permissionName
*/
public String getPermissionName() {
return this.permissionName;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
public static final class Builder extends Request.Builder<DisassociateResourceSharePermissionRequest, Builder> {
private String regionId;
private String permissionName;
private String resourceShareId;
private Builder() {
super();
}
private Builder(DisassociateResourceSharePermissionRequest request) {
super(request);
this.regionId = request.regionId;
this.permissionName = request.permissionName;
this.resourceShareId = request.resourceShareId;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The name of the permission. For more information, see <a href="https://help.aliyun.com/document_detail/465474.html">Permission library</a>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>AliyunRSDefaultPermissionVSwitch</p>
*/
public Builder permissionName(String permissionName) {
this.putQueryParameter("PermissionName", permissionName);
this.permissionName = permissionName;
return this;
}
/**
* <p>The ID of the resource share.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rs-6GRmdD3X****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.putQueryParameter("ResourceShareId", resourceShareId);
this.resourceShareId = resourceShareId;
return this;
}
@Override
public DisassociateResourceSharePermissionRequest build() {
return new DisassociateResourceSharePermissionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/DisassociateResourceSharePermissionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DisassociateResourceSharePermissionResponse} extends {@link TeaModel}
*
* <p>DisassociateResourceSharePermissionResponse</p>
*/
public class DisassociateResourceSharePermissionResponse 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 DisassociateResourceSharePermissionResponseBody body;
private DisassociateResourceSharePermissionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DisassociateResourceSharePermissionResponse 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 DisassociateResourceSharePermissionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DisassociateResourceSharePermissionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DisassociateResourceSharePermissionResponseBody body);
@Override
DisassociateResourceSharePermissionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DisassociateResourceSharePermissionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DisassociateResourceSharePermissionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DisassociateResourceSharePermissionResponse 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(DisassociateResourceSharePermissionResponseBody body) {
this.body = body;
return this;
}
@Override
public DisassociateResourceSharePermissionResponse build() {
return new DisassociateResourceSharePermissionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/DisassociateResourceSharePermissionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DisassociateResourceSharePermissionResponseBody} extends {@link TeaModel}
*
* <p>DisassociateResourceSharePermissionResponseBody</p>
*/
public class DisassociateResourceSharePermissionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DisassociateResourceSharePermissionResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DisassociateResourceSharePermissionResponseBody 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(DisassociateResourceSharePermissionResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>111FB84A-60A9-403E-9067-E55D7EE95BD1</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DisassociateResourceSharePermissionResponseBody build() {
return new DisassociateResourceSharePermissionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/DisassociateResourceShareRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DisassociateResourceShareRequest} extends {@link RequestModel}
*
* <p>DisassociateResourceShareRequest</p>
*/
public class DisassociateResourceShareRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceArns")
private java.util.List<String> resourceArns;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwner")
private String resourceOwner;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Resources")
private java.util.List<Resources> resources;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Targets")
private java.util.List<String> targets;
private DisassociateResourceShareRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.resourceArns = builder.resourceArns;
this.resourceOwner = builder.resourceOwner;
this.resourceShareId = builder.resourceShareId;
this.resources = builder.resources;
this.targets = builder.targets;
}
public static Builder builder() {
return new Builder();
}
public static DisassociateResourceShareRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceArns
*/
public java.util.List<String> getResourceArns() {
return this.resourceArns;
}
/**
* @return resourceOwner
*/
public String getResourceOwner() {
return this.resourceOwner;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
/**
* @return resources
*/
public java.util.List<Resources> getResources() {
return this.resources;
}
/**
* @return targets
*/
public java.util.List<String> getTargets() {
return this.targets;
}
public static final class Builder extends Request.Builder<DisassociateResourceShareRequest, Builder> {
private String regionId;
private java.util.List<String> resourceArns;
private String resourceOwner;
private String resourceShareId;
private java.util.List<Resources> resources;
private java.util.List<String> targets;
private Builder() {
super();
}
private Builder(DisassociateResourceShareRequest request) {
super(request);
this.regionId = request.regionId;
this.resourceArns = request.resourceArns;
this.resourceOwner = request.resourceOwner;
this.resourceShareId = request.resourceShareId;
this.resources = request.resources;
this.targets = request.targets;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceArns.
*/
public Builder resourceArns(java.util.List<String> resourceArns) {
this.putQueryParameter("ResourceArns", resourceArns);
this.resourceArns = resourceArns;
return this;
}
/**
* <p>The owner of the resource share. Valid values:</p>
* <ul>
* <li>Self: The resource share belongs to the current account. This is the default value. For resource sharing within a resource directory, if you are a resource owner and you want to disassociate resources or principals from a resource share, set this parameter to Self.</li>
* <li>OtherAccounts: The resource share belongs to another account. For resource sharing outside a resource directory, if you are a principal and you want to exit a resource share, set this parameter to OtherAccounts.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Self</p>
*/
public Builder resourceOwner(String resourceOwner) {
this.putQueryParameter("ResourceOwner", resourceOwner);
this.resourceOwner = resourceOwner;
return this;
}
/**
* <p>The ID of the resource share.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rs-6GRmdD3X****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.putQueryParameter("ResourceShareId", resourceShareId);
this.resourceShareId = resourceShareId;
return this;
}
/**
* <p>The information about the resources.</p>
*/
public Builder resources(java.util.List<Resources> resources) {
this.putQueryParameter("Resources", resources);
this.resources = resources;
return this;
}
/**
* <p>The information about the principals.</p>
*
* <strong>example:</strong>
* <p>172050525300****</p>
*/
public Builder targets(java.util.List<String> targets) {
this.putQueryParameter("Targets", targets);
this.targets = targets;
return this;
}
@Override
public DisassociateResourceShareRequest build() {
return new DisassociateResourceShareRequest(this);
}
}
/**
*
* {@link DisassociateResourceShareRequest} extends {@link TeaModel}
*
* <p>DisassociateResourceShareRequest</p>
*/
public static class Resources extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
private Resources(Builder builder) {
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
}
public static Builder builder() {
return new Builder();
}
public static Resources create() {
return builder().build();
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
public static final class Builder {
private String resourceId;
private String resourceType;
private Builder() {
}
private Builder(Resources model) {
this.resourceId = model.resourceId;
this.resourceType = model.resourceType;
}
/**
* <p>The ID of the shared resource.</p>
* <p>Valid values of N: 1 to 5. This indicates that a maximum of five shared resources can be specified at a time.</p>
* <blockquote>
* <p> Resources.N.ResourceId and Resources.N.ResourceType must be used in pairs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vsw-bp183p93qs667muql****</p>
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The type of a shared resource.</p>
* <p>Valid values of N: 1 to 5. This indicates that a maximum of five shared resources can be specified at a time.</p>
* <p>For more information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</p>
* <blockquote>
* <p> Resources.N.ResourceId and Resources.N.ResourceType must be used in pairs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
public Resources build() {
return new Resources(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/DisassociateResourceShareResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DisassociateResourceShareResponse} extends {@link TeaModel}
*
* <p>DisassociateResourceShareResponse</p>
*/
public class DisassociateResourceShareResponse 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 DisassociateResourceShareResponseBody body;
private DisassociateResourceShareResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DisassociateResourceShareResponse 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 DisassociateResourceShareResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DisassociateResourceShareResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DisassociateResourceShareResponseBody body);
@Override
DisassociateResourceShareResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DisassociateResourceShareResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DisassociateResourceShareResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DisassociateResourceShareResponse 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(DisassociateResourceShareResponseBody body) {
this.body = body;
return this;
}
@Override
public DisassociateResourceShareResponse build() {
return new DisassociateResourceShareResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/DisassociateResourceShareResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DisassociateResourceShareResponseBody} extends {@link TeaModel}
*
* <p>DisassociateResourceShareResponseBody</p>
*/
public class DisassociateResourceShareResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceShareAssociations")
private java.util.List<ResourceShareAssociations> resourceShareAssociations;
private DisassociateResourceShareResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.resourceShareAssociations = builder.resourceShareAssociations;
}
public static Builder builder() {
return new Builder();
}
public static DisassociateResourceShareResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceShareAssociations
*/
public java.util.List<ResourceShareAssociations> getResourceShareAssociations() {
return this.resourceShareAssociations;
}
public static final class Builder {
private String requestId;
private java.util.List<ResourceShareAssociations> resourceShareAssociations;
private Builder() {
}
private Builder(DisassociateResourceShareResponseBody model) {
this.requestId = model.requestId;
this.resourceShareAssociations = model.resourceShareAssociations;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>95230BC9-A8E8-4493-96BD-4F0C758E37F8</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the entities that are associated with the resource share.</p>
*/
public Builder resourceShareAssociations(java.util.List<ResourceShareAssociations> resourceShareAssociations) {
this.resourceShareAssociations = resourceShareAssociations;
return this;
}
public DisassociateResourceShareResponseBody build() {
return new DisassociateResourceShareResponseBody(this);
}
}
/**
*
* {@link DisassociateResourceShareResponseBody} extends {@link TeaModel}
*
* <p>DisassociateResourceShareResponseBody</p>
*/
public static class ResourceShareAssociations extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociationStatus")
private String associationStatus;
@com.aliyun.core.annotation.NameInMap("AssociationStatusMessage")
private String associationStatusMessage;
@com.aliyun.core.annotation.NameInMap("AssociationType")
private String associationType;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("EntityId")
private String entityId;
@com.aliyun.core.annotation.NameInMap("EntityType")
private String entityType;
@com.aliyun.core.annotation.NameInMap("ResourceArn")
private String resourceArn;
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
private String resourceShareId;
@com.aliyun.core.annotation.NameInMap("ResourceShareName")
private String resourceShareName;
@com.aliyun.core.annotation.NameInMap("TargetProperty")
private String targetProperty;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private String updateTime;
private ResourceShareAssociations(Builder builder) {
this.associationStatus = builder.associationStatus;
this.associationStatusMessage = builder.associationStatusMessage;
this.associationType = builder.associationType;
this.createTime = builder.createTime;
this.entityId = builder.entityId;
this.entityType = builder.entityType;
this.resourceArn = builder.resourceArn;
this.resourceShareId = builder.resourceShareId;
this.resourceShareName = builder.resourceShareName;
this.targetProperty = builder.targetProperty;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static ResourceShareAssociations create() {
return builder().build();
}
/**
* @return associationStatus
*/
public String getAssociationStatus() {
return this.associationStatus;
}
/**
* @return associationStatusMessage
*/
public String getAssociationStatusMessage() {
return this.associationStatusMessage;
}
/**
* @return associationType
*/
public String getAssociationType() {
return this.associationType;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return entityId
*/
public String getEntityId() {
return this.entityId;
}
/**
* @return entityType
*/
public String getEntityType() {
return this.entityType;
}
/**
* @return resourceArn
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
/**
* @return resourceShareName
*/
public String getResourceShareName() {
return this.resourceShareName;
}
/**
* @return targetProperty
*/
public String getTargetProperty() {
return this.targetProperty;
}
/**
* @return updateTime
*/
public String getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private String associationStatus;
private String associationStatusMessage;
private String associationType;
private String createTime;
private String entityId;
private String entityType;
private String resourceArn;
private String resourceShareId;
private String resourceShareName;
private String targetProperty;
private String updateTime;
private Builder() {
}
private Builder(ResourceShareAssociations model) {
this.associationStatus = model.associationStatus;
this.associationStatusMessage = model.associationStatusMessage;
this.associationType = model.associationType;
this.createTime = model.createTime;
this.entityId = model.entityId;
this.entityType = model.entityType;
this.resourceArn = model.resourceArn;
this.resourceShareId = model.resourceShareId;
this.resourceShareName = model.resourceShareName;
this.targetProperty = model.targetProperty;
this.updateTime = model.updateTime;
}
/**
* <p>The association status. Valid values:</p>
* <ul>
* <li>Associating: The entity is being associated.</li>
* <li>Associated: The entity is associated.</li>
* <li>Failed: The entity fails to be associated.</li>
* <li>Disassociating: The entity is being disassociated.</li>
* <li>Disassociated: The entity is disassociated.</li>
* </ul>
* <blockquote>
* <p> The system deletes the records of entities in the <code>Failed</code> or <code>Disassociated</code> state within 48 hours to 96 hours.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Disassociating</p>
*/
public Builder associationStatus(String associationStatus) {
this.associationStatus = associationStatus;
return this;
}
/**
* <p>The cause of the disassociation failure.</p>
*
* <strong>example:</strong>
* <p>The Resources is invalid.</p>
*/
public Builder associationStatusMessage(String associationStatusMessage) {
this.associationStatusMessage = associationStatusMessage;
return this;
}
/**
* <p>The association type. Valid values:</p>
* <ul>
* <li>Resource</li>
* <li>Target</li>
* </ul>
*
* <strong>example:</strong>
* <p>Target</p>
*/
public Builder associationType(String associationType) {
this.associationType = associationType;
return this;
}
/**
* <p>The time when the disassociation of the entity was performed. The value of this parameter depends on the value of the AssociationType parameter:</p>
* <ul>
* <li>If the value of <code>AssociationType</code> is <code>Resource</code>, the value of this parameter is the time when the resource was disassociated from the resource share.</li>
* <li>If the value of <code>AssociationType</code> is <code>Target</code>, the value of this parameter is the time when the principal was disassociated from the resource share.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2020-12-04T09:40:41.250Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the entity. The value of this parameter depends on the value of the AssociationType parameter:</p>
* <ul>
* <li>If the value of <code>AssociationType</code> is <code>Resource</code>, the value of this parameter is the ID of the resource.</li>
* <li>If the value of <code>AssociationType</code> is <code>Target</code>, the value of this parameter is the ID of the resource directory, folder, member, or Alibaba Cloud service.</li>
* </ul>
*
* <strong>example:</strong>
* <p>172050525300****</p>
*/
public Builder entityId(String entityId) {
this.entityId = entityId;
return this;
}
/**
* <p>The type of the entity. The value of this parameter depends on the value of the AssociationType parameter:</p>
* <ul>
* <li>If the value of AssociationType is Resource, the value of this parameter is the type of the resource. For more information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</li>
* <li>If the value of AssociationType is Target, the value of this parameter is Account.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Account</p>
*/
public Builder entityType(String entityType) {
this.entityType = entityType;
return this;
}
/**
* ResourceArn.
*/
public Builder resourceArn(String resourceArn) {
this.resourceArn = resourceArn;
return this;
}
/**
* <p>The ID of the resource share.</p>
*
* <strong>example:</strong>
* <p>rs-6GRmdD3X****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.resourceShareId = resourceShareId;
return this;
}
/**
* <p>The name of the resource share.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder resourceShareName(String resourceShareName) {
this.resourceShareName = resourceShareName;
return this;
}
/**
* <p>The properties of the principal, such as the time range within which the resource is shared.</p>
* <blockquote>
* <p> This parameter is returned only if the principal is an Alibaba Cloud service.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>{
* "timeRange":{
* "timeRangeType":"timeRange",
* "beginAtTime":"00:00",
* "timezone":"UTC+8",
* "endAtTime":"19:59"
* }
* }</p>
*/
public Builder targetProperty(String targetProperty) {
this.targetProperty = targetProperty;
return this;
}
/**
* <p>The time when the disassociation of the entity was updated. The value of this parameter depends on the value of the AssociationType parameter:</p>
* <ul>
* <li>If the value of <code>AssociationType</code> is <code>Resource</code>, the value of this parameter is the time when the disassociation of the resource was updated.</li>
* <li>If the value of <code>AssociationType</code> is <code>Target</code>, the value of this parameter is the time when the disassociation of the principal was updated.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2020-12-04T09:40:45.556Z</p>
*/
public Builder updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
public ResourceShareAssociations build() {
return new ResourceShareAssociations(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/EnableSharingWithResourceDirectoryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnableSharingWithResourceDirectoryRequest} extends {@link RequestModel}
*
* <p>EnableSharingWithResourceDirectoryRequest</p>
*/
public class EnableSharingWithResourceDirectoryRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private EnableSharingWithResourceDirectoryRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static EnableSharingWithResourceDirectoryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<EnableSharingWithResourceDirectoryRequest, Builder> {
private String regionId;
private Builder() {
super();
}
private Builder(EnableSharingWithResourceDirectoryRequest request) {
super(request);
this.regionId = request.regionId;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public EnableSharingWithResourceDirectoryRequest build() {
return new EnableSharingWithResourceDirectoryRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/EnableSharingWithResourceDirectoryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnableSharingWithResourceDirectoryResponse} extends {@link TeaModel}
*
* <p>EnableSharingWithResourceDirectoryResponse</p>
*/
public class EnableSharingWithResourceDirectoryResponse 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 EnableSharingWithResourceDirectoryResponseBody body;
private EnableSharingWithResourceDirectoryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static EnableSharingWithResourceDirectoryResponse 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 EnableSharingWithResourceDirectoryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<EnableSharingWithResourceDirectoryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(EnableSharingWithResourceDirectoryResponseBody body);
@Override
EnableSharingWithResourceDirectoryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<EnableSharingWithResourceDirectoryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private EnableSharingWithResourceDirectoryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(EnableSharingWithResourceDirectoryResponse 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(EnableSharingWithResourceDirectoryResponseBody body) {
this.body = body;
return this;
}
@Override
public EnableSharingWithResourceDirectoryResponse build() {
return new EnableSharingWithResourceDirectoryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/EnableSharingWithResourceDirectoryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnableSharingWithResourceDirectoryResponseBody} extends {@link TeaModel}
*
* <p>EnableSharingWithResourceDirectoryResponseBody</p>
*/
public class EnableSharingWithResourceDirectoryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private EnableSharingWithResourceDirectoryResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static EnableSharingWithResourceDirectoryResponseBody 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(EnableSharingWithResourceDirectoryResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public EnableSharingWithResourceDirectoryResponseBody build() {
return new EnableSharingWithResourceDirectoryResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/GetPermissionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetPermissionRequest} extends {@link RequestModel}
*
* <p>GetPermissionRequest</p>
*/
public class GetPermissionRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PermissionName")
@com.aliyun.core.annotation.Validation(required = true)
private String permissionName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PermissionVersion")
private String permissionVersion;
private GetPermissionRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.permissionName = builder.permissionName;
this.permissionVersion = builder.permissionVersion;
}
public static Builder builder() {
return new Builder();
}
public static GetPermissionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return permissionName
*/
public String getPermissionName() {
return this.permissionName;
}
/**
* @return permissionVersion
*/
public String getPermissionVersion() {
return this.permissionVersion;
}
public static final class Builder extends Request.Builder<GetPermissionRequest, Builder> {
private String regionId;
private String permissionName;
private String permissionVersion;
private Builder() {
super();
}
private Builder(GetPermissionRequest request) {
super(request);
this.regionId = request.regionId;
this.permissionName = request.permissionName;
this.permissionVersion = request.permissionVersion;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The name of the permission.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>AliyunRSDefaultPermissionVSwitch</p>
*/
public Builder permissionName(String permissionName) {
this.putQueryParameter("PermissionName", permissionName);
this.permissionName = permissionName;
return this;
}
/**
* <p>The version of the permission.</p>
*
* <strong>example:</strong>
* <p>v1</p>
*/
public Builder permissionVersion(String permissionVersion) {
this.putQueryParameter("PermissionVersion", permissionVersion);
this.permissionVersion = permissionVersion;
return this;
}
@Override
public GetPermissionRequest build() {
return new GetPermissionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/GetPermissionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetPermissionResponse} extends {@link TeaModel}
*
* <p>GetPermissionResponse</p>
*/
public class GetPermissionResponse 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 GetPermissionResponseBody body;
private GetPermissionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetPermissionResponse 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 GetPermissionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetPermissionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetPermissionResponseBody body);
@Override
GetPermissionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetPermissionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetPermissionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetPermissionResponse 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(GetPermissionResponseBody body) {
this.body = body;
return this;
}
@Override
public GetPermissionResponse build() {
return new GetPermissionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/GetPermissionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetPermissionResponseBody} extends {@link TeaModel}
*
* <p>GetPermissionResponseBody</p>
*/
public class GetPermissionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Permission")
private Permission permission;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetPermissionResponseBody(Builder builder) {
this.permission = builder.permission;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetPermissionResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return permission
*/
public Permission getPermission() {
return this.permission;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Permission permission;
private String requestId;
private Builder() {
}
private Builder(GetPermissionResponseBody model) {
this.permission = model.permission;
this.requestId = model.requestId;
}
/**
* <p>The information about the permission.</p>
*/
public Builder permission(Permission permission) {
this.permission = permission;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetPermissionResponseBody build() {
return new GetPermissionResponseBody(this);
}
}
/**
*
* {@link GetPermissionResponseBody} extends {@link TeaModel}
*
* <p>GetPermissionResponseBody</p>
*/
public static class Permission extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("DefaultPermission")
private Boolean defaultPermission;
@com.aliyun.core.annotation.NameInMap("DefaultVersion")
private Boolean defaultVersion;
@com.aliyun.core.annotation.NameInMap("Permission")
private String permission;
@com.aliyun.core.annotation.NameInMap("PermissionName")
private String permissionName;
@com.aliyun.core.annotation.NameInMap("PermissionVersion")
private String permissionVersion;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private String updateTime;
private Permission(Builder builder) {
this.createTime = builder.createTime;
this.defaultPermission = builder.defaultPermission;
this.defaultVersion = builder.defaultVersion;
this.permission = builder.permission;
this.permissionName = builder.permissionName;
this.permissionVersion = builder.permissionVersion;
this.resourceType = builder.resourceType;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static Permission create() {
return builder().build();
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return defaultPermission
*/
public Boolean getDefaultPermission() {
return this.defaultPermission;
}
/**
* @return defaultVersion
*/
public Boolean getDefaultVersion() {
return this.defaultVersion;
}
/**
* @return permission
*/
public String getPermission() {
return this.permission;
}
/**
* @return permissionName
*/
public String getPermissionName() {
return this.permissionName;
}
/**
* @return permissionVersion
*/
public String getPermissionVersion() {
return this.permissionVersion;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return updateTime
*/
public String getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private String createTime;
private Boolean defaultPermission;
private Boolean defaultVersion;
private String permission;
private String permissionName;
private String permissionVersion;
private String resourceType;
private String updateTime;
private Builder() {
}
private Builder(Permission model) {
this.createTime = model.createTime;
this.defaultPermission = model.defaultPermission;
this.defaultVersion = model.defaultVersion;
this.permission = model.permission;
this.permissionName = model.permissionName;
this.permissionVersion = model.permissionVersion;
this.resourceType = model.resourceType;
this.updateTime = model.updateTime;
}
/**
* <p>The creation time.</p>
*
* <strong>example:</strong>
* <p>2020-12-07T07:39:01.818Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>Indicates whether the permission is the default permission. Valid values:</p>
* <ul>
* <li>false: The permission is not the default permission.</li>
* <li>true: The permission is the default permission.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder defaultPermission(Boolean defaultPermission) {
this.defaultPermission = defaultPermission;
return this;
}
/**
* <p>Indicates whether the version is the default version. Valid values:</p>
* <ul>
* <li>false: The version is not the default version.</li>
* <li>true: The version is the default version.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder defaultVersion(Boolean defaultVersion) {
this.defaultVersion = defaultVersion;
return this;
}
/**
* <p>The document of the policy related to the permission.</p>
*
* <strong>example:</strong>
* <p>{"Effect":"Allow","Action":["vpc:DescribeVSwitches","vpc:DescribeVSwitchAttributes"]}</p>
*/
public Builder permission(String permission) {
this.permission = permission;
return this;
}
/**
* <p>The name of the permission.</p>
*
* <strong>example:</strong>
* <p>AliyunRSDefaultPermissionVSwitch</p>
*/
public Builder permissionName(String permissionName) {
this.permissionName = permissionName;
return this;
}
/**
* <p>The version of the permission.</p>
*
* <strong>example:</strong>
* <p>v1</p>
*/
public Builder permissionVersion(String permissionVersion) {
this.permissionVersion = permissionVersion;
return this;
}
/**
* <p>The type of the shared resources.</p>
* <p>For more information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</p>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The update time.</p>
*
* <strong>example:</strong>
* <p>2020-12-07T07:39:01.818Z</p>
*/
public Builder updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
public Permission build() {
return new Permission(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListPermissionVersionsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListPermissionVersionsRequest} extends {@link RequestModel}
*
* <p>ListPermissionVersionsRequest</p>
*/
public class ListPermissionVersionsRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@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("PermissionName")
@com.aliyun.core.annotation.Validation(required = true)
private String permissionName;
private ListPermissionVersionsRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.permissionName = builder.permissionName;
}
public static Builder builder() {
return new Builder();
}
public static ListPermissionVersionsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return permissionName
*/
public String getPermissionName() {
return this.permissionName;
}
public static final class Builder extends Request.Builder<ListPermissionVersionsRequest, Builder> {
private String regionId;
private Integer maxResults;
private String nextToken;
private String permissionName;
private Builder() {
super();
}
private Builder(ListPermissionVersionsRequest request) {
super(request);
this.regionId = request.regionId;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.permissionName = request.permissionName;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The maximum number of entries to return for a single request.</p>
* <p>Valid values: 1 to 100. Default value: 20.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder maxResults(Integer maxResults) {
this.putQueryParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* <p>The <code>token</code> that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* <p>The name of the permission.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>AliyunRSDefaultPermissionVSwitch</p>
*/
public Builder permissionName(String permissionName) {
this.putQueryParameter("PermissionName", permissionName);
this.permissionName = permissionName;
return this;
}
@Override
public ListPermissionVersionsRequest build() {
return new ListPermissionVersionsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListPermissionVersionsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListPermissionVersionsResponse} extends {@link TeaModel}
*
* <p>ListPermissionVersionsResponse</p>
*/
public class ListPermissionVersionsResponse 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 ListPermissionVersionsResponseBody body;
private ListPermissionVersionsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListPermissionVersionsResponse 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 ListPermissionVersionsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListPermissionVersionsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListPermissionVersionsResponseBody body);
@Override
ListPermissionVersionsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListPermissionVersionsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListPermissionVersionsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListPermissionVersionsResponse 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(ListPermissionVersionsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListPermissionVersionsResponse build() {
return new ListPermissionVersionsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListPermissionVersionsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListPermissionVersionsResponseBody} extends {@link TeaModel}
*
* <p>ListPermissionVersionsResponseBody</p>
*/
public class ListPermissionVersionsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("Permissions")
private java.util.List<Permissions> permissions;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListPermissionVersionsResponseBody(Builder builder) {
this.nextToken = builder.nextToken;
this.permissions = builder.permissions;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListPermissionVersionsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return permissions
*/
public java.util.List<Permissions> getPermissions() {
return this.permissions;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String nextToken;
private java.util.List<Permissions> permissions;
private String requestId;
private Builder() {
}
private Builder(ListPermissionVersionsResponseBody model) {
this.nextToken = model.nextToken;
this.permissions = model.permissions;
this.requestId = model.requestId;
}
/**
* <p>The token that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The information about the permission.</p>
*/
public Builder permissions(java.util.List<Permissions> permissions) {
this.permissions = permissions;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>04677DCA-7C33-464B-8811-1B1DA3C3D197</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListPermissionVersionsResponseBody build() {
return new ListPermissionVersionsResponseBody(this);
}
}
/**
*
* {@link ListPermissionVersionsResponseBody} extends {@link TeaModel}
*
* <p>ListPermissionVersionsResponseBody</p>
*/
public static class Permissions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("DefaultPermission")
private Boolean defaultPermission;
@com.aliyun.core.annotation.NameInMap("DefaultVersion")
private Boolean defaultVersion;
@com.aliyun.core.annotation.NameInMap("PermissionName")
private String permissionName;
@com.aliyun.core.annotation.NameInMap("PermissionVersion")
private String permissionVersion;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private String updateTime;
private Permissions(Builder builder) {
this.createTime = builder.createTime;
this.defaultPermission = builder.defaultPermission;
this.defaultVersion = builder.defaultVersion;
this.permissionName = builder.permissionName;
this.permissionVersion = builder.permissionVersion;
this.resourceType = builder.resourceType;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static Permissions create() {
return builder().build();
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return defaultPermission
*/
public Boolean getDefaultPermission() {
return this.defaultPermission;
}
/**
* @return defaultVersion
*/
public Boolean getDefaultVersion() {
return this.defaultVersion;
}
/**
* @return permissionName
*/
public String getPermissionName() {
return this.permissionName;
}
/**
* @return permissionVersion
*/
public String getPermissionVersion() {
return this.permissionVersion;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return updateTime
*/
public String getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private String createTime;
private Boolean defaultPermission;
private Boolean defaultVersion;
private String permissionName;
private String permissionVersion;
private String resourceType;
private String updateTime;
private Builder() {
}
private Builder(Permissions model) {
this.createTime = model.createTime;
this.defaultPermission = model.defaultPermission;
this.defaultVersion = model.defaultVersion;
this.permissionName = model.permissionName;
this.permissionVersion = model.permissionVersion;
this.resourceType = model.resourceType;
this.updateTime = model.updateTime;
}
/**
* <p>The creation time.</p>
*
* <strong>example:</strong>
* <p>2020-12-07T07:39:01.818Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>Indicates whether the permission is the default permission. Valid values:</p>
* <ul>
* <li>false: The permission is not the default permission.</li>
* <li>true: The permission is the default permission.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder defaultPermission(Boolean defaultPermission) {
this.defaultPermission = defaultPermission;
return this;
}
/**
* <p>Indicates whether the version is the default version. Valid values:</p>
* <ul>
* <li>false: The version is not the default version.</li>
* <li>true: The version is the default version.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder defaultVersion(Boolean defaultVersion) {
this.defaultVersion = defaultVersion;
return this;
}
/**
* <p>The name of the permission.</p>
*
* <strong>example:</strong>
* <p>AliyunRSDefaultPermissionVSwitch</p>
*/
public Builder permissionName(String permissionName) {
this.permissionName = permissionName;
return this;
}
/**
* <p>The version of the permission.</p>
*
* <strong>example:</strong>
* <p>v1</p>
*/
public Builder permissionVersion(String permissionVersion) {
this.permissionVersion = permissionVersion;
return this;
}
/**
* <p>The type of the shared resources.</p>
* <p>For more information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</p>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The update time.</p>
*
* <strong>example:</strong>
* <p>2020-12-07T07:39:01.818Z</p>
*/
public Builder updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
public Permissions build() {
return new Permissions(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListPermissionsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListPermissionsRequest} extends {@link RequestModel}
*
* <p>ListPermissionsRequest</p>
*/
public class ListPermissionsRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@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("ResourceType")
private String resourceType;
private ListPermissionsRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.resourceType = builder.resourceType;
}
public static Builder builder() {
return new Builder();
}
public static ListPermissionsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
public static final class Builder extends Request.Builder<ListPermissionsRequest, Builder> {
private String regionId;
private Integer maxResults;
private String nextToken;
private String resourceType;
private Builder() {
super();
}
private Builder(ListPermissionsRequest request) {
super(request);
this.regionId = request.regionId;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.resourceType = request.resourceType;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The maximum number of entries to return for a single request.</p>
* <p>Valid values: 1 to 100. Default value: 20.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder maxResults(Integer maxResults) {
this.putQueryParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* <p>The <code>token</code> that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* <p>The type of the shared resources.</p>
* <p>For more information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</p>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
@Override
public ListPermissionsRequest build() {
return new ListPermissionsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListPermissionsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListPermissionsResponse} extends {@link TeaModel}
*
* <p>ListPermissionsResponse</p>
*/
public class ListPermissionsResponse 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 ListPermissionsResponseBody body;
private ListPermissionsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListPermissionsResponse 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 ListPermissionsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListPermissionsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListPermissionsResponseBody body);
@Override
ListPermissionsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListPermissionsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListPermissionsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListPermissionsResponse 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(ListPermissionsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListPermissionsResponse build() {
return new ListPermissionsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListPermissionsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListPermissionsResponseBody} extends {@link TeaModel}
*
* <p>ListPermissionsResponseBody</p>
*/
public class ListPermissionsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("Permissions")
private java.util.List<Permissions> permissions;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListPermissionsResponseBody(Builder builder) {
this.nextToken = builder.nextToken;
this.permissions = builder.permissions;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListPermissionsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return permissions
*/
public java.util.List<Permissions> getPermissions() {
return this.permissions;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String nextToken;
private java.util.List<Permissions> permissions;
private String requestId;
private Builder() {
}
private Builder(ListPermissionsResponseBody model) {
this.nextToken = model.nextToken;
this.permissions = model.permissions;
this.requestId = model.requestId;
}
/**
* <p>The token that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The information about the permission.</p>
*/
public Builder permissions(java.util.List<Permissions> permissions) {
this.permissions = permissions;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>04677DCA-7C33-464B-8811-1B1DA3C3D197</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListPermissionsResponseBody build() {
return new ListPermissionsResponseBody(this);
}
}
/**
*
* {@link ListPermissionsResponseBody} extends {@link TeaModel}
*
* <p>ListPermissionsResponseBody</p>
*/
public static class Permissions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("DefaultPermission")
private Boolean defaultPermission;
@com.aliyun.core.annotation.NameInMap("DefaultVersion")
private Boolean defaultVersion;
@com.aliyun.core.annotation.NameInMap("PermissionName")
private String permissionName;
@com.aliyun.core.annotation.NameInMap("PermissionVersion")
private String permissionVersion;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private String updateTime;
private Permissions(Builder builder) {
this.createTime = builder.createTime;
this.defaultPermission = builder.defaultPermission;
this.defaultVersion = builder.defaultVersion;
this.permissionName = builder.permissionName;
this.permissionVersion = builder.permissionVersion;
this.resourceType = builder.resourceType;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static Permissions create() {
return builder().build();
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return defaultPermission
*/
public Boolean getDefaultPermission() {
return this.defaultPermission;
}
/**
* @return defaultVersion
*/
public Boolean getDefaultVersion() {
return this.defaultVersion;
}
/**
* @return permissionName
*/
public String getPermissionName() {
return this.permissionName;
}
/**
* @return permissionVersion
*/
public String getPermissionVersion() {
return this.permissionVersion;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return updateTime
*/
public String getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private String createTime;
private Boolean defaultPermission;
private Boolean defaultVersion;
private String permissionName;
private String permissionVersion;
private String resourceType;
private String updateTime;
private Builder() {
}
private Builder(Permissions model) {
this.createTime = model.createTime;
this.defaultPermission = model.defaultPermission;
this.defaultVersion = model.defaultVersion;
this.permissionName = model.permissionName;
this.permissionVersion = model.permissionVersion;
this.resourceType = model.resourceType;
this.updateTime = model.updateTime;
}
/**
* <p>The creation time.</p>
*
* <strong>example:</strong>
* <p>2020-12-07T07:39:01.818Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>Indicates whether the permission is the default permission. Valid values:</p>
* <ul>
* <li>false: The permission is not the default permission.</li>
* <li>true: The permission is the default permission.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder defaultPermission(Boolean defaultPermission) {
this.defaultPermission = defaultPermission;
return this;
}
/**
* <p>Indicates whether the version is the default version. Valid values:</p>
* <ul>
* <li>false: The version is not the default version.</li>
* <li>true: The version is the default version.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder defaultVersion(Boolean defaultVersion) {
this.defaultVersion = defaultVersion;
return this;
}
/**
* <p>The name of the permission.</p>
*
* <strong>example:</strong>
* <p>AliyunRSDefaultPermissionVSwitch</p>
*/
public Builder permissionName(String permissionName) {
this.permissionName = permissionName;
return this;
}
/**
* <p>The version of the permission.</p>
*
* <strong>example:</strong>
* <p>v1</p>
*/
public Builder permissionVersion(String permissionVersion) {
this.permissionVersion = permissionVersion;
return this;
}
/**
* <p>The type of the shared resources.</p>
* <p>For more information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</p>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The update time.</p>
*
* <strong>example:</strong>
* <p>2020-12-07T07:39:01.818Z</p>
*/
public Builder updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
public Permissions build() {
return new Permissions(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListResourceShareAssociationsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListResourceShareAssociationsRequest} extends {@link RequestModel}
*
* <p>ListResourceShareAssociationsRequest</p>
*/
public class ListResourceShareAssociationsRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AssociationStatus")
private String associationStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AssociationType")
@com.aliyun.core.annotation.Validation(required = true)
private String associationType;
@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("ResourceArn")
private String resourceArn;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareIds")
private java.util.List<String> resourceShareIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Target")
private String target;
private ListResourceShareAssociationsRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.associationStatus = builder.associationStatus;
this.associationType = builder.associationType;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.resourceArn = builder.resourceArn;
this.resourceId = builder.resourceId;
this.resourceShareIds = builder.resourceShareIds;
this.target = builder.target;
}
public static Builder builder() {
return new Builder();
}
public static ListResourceShareAssociationsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return associationStatus
*/
public String getAssociationStatus() {
return this.associationStatus;
}
/**
* @return associationType
*/
public String getAssociationType() {
return this.associationType;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return resourceArn
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceShareIds
*/
public java.util.List<String> getResourceShareIds() {
return this.resourceShareIds;
}
/**
* @return target
*/
public String getTarget() {
return this.target;
}
public static final class Builder extends Request.Builder<ListResourceShareAssociationsRequest, Builder> {
private String regionId;
private String associationStatus;
private String associationType;
private Integer maxResults;
private String nextToken;
private String resourceArn;
private String resourceId;
private java.util.List<String> resourceShareIds;
private String target;
private Builder() {
super();
}
private Builder(ListResourceShareAssociationsRequest request) {
super(request);
this.regionId = request.regionId;
this.associationStatus = request.associationStatus;
this.associationType = request.associationType;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.resourceArn = request.resourceArn;
this.resourceId = request.resourceId;
this.resourceShareIds = request.resourceShareIds;
this.target = request.target;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The association status. Valid values:</p>
* <ul>
* <li>Associating: The entity is being associated.</li>
* <li>Associated: The entity is associated.</li>
* <li>Failed: The entity fails to be associated.</li>
* <li>Disassociating: The entity is being disassociated.</li>
* <li>Disassociated: The entity is disassociated.</li>
* </ul>
* <blockquote>
* <p> The system deletes the records of entities in the <code>Failed</code> or <code>Disassociated</code> state within 48 hours to 96 hours.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Associated</p>
*/
public Builder associationStatus(String associationStatus) {
this.putQueryParameter("AssociationStatus", associationStatus);
this.associationStatus = associationStatus;
return this;
}
/**
* <p>The association type. Valid values:</p>
* <ul>
* <li>Resource</li>
* <li>Target</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Resource</p>
*/
public Builder associationType(String associationType) {
this.putQueryParameter("AssociationType", associationType);
this.associationType = associationType;
return this;
}
/**
* <p>The maximum number of entries to return for a single request.</p>
* <p>Valid values: 1 to 100. Default value: 20.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder maxResults(Integer maxResults) {
this.putQueryParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* <p>The <code>token</code> that is used to initiate the next request if the response of the current request is truncated. You can use the token to initiate another request and obtain the remaining records.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* ResourceArn.
*/
public Builder resourceArn(String resourceArn) {
this.putQueryParameter("ResourceArn", resourceArn);
this.resourceArn = resourceArn;
return this;
}
/**
* <p>The ID of the resource.</p>
* <blockquote>
* <p> This parameter is unavailable if you set the <code>AssociationType</code> parameter to <code>Target</code>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vsw-bp183p93qs667muql****</p>
*/
public Builder resourceId(String resourceId) {
this.putQueryParameter("ResourceId", resourceId);
this.resourceId = resourceId;
return this;
}
/**
* <p>The IDs of the resource shares.</p>
* <p>Valid values of N: 1 to 5. This indicates that a maximum of five resource shares can be specified at a time.</p>
*
* <strong>example:</strong>
* <p>rs-6GRmdD3X****</p>
*/
public Builder resourceShareIds(java.util.List<String> resourceShareIds) {
this.putQueryParameter("ResourceShareIds", resourceShareIds);
this.resourceShareIds = resourceShareIds;
return this;
}
/**
* <p>The ID of the principal.</p>
* <blockquote>
* <p> This parameter is unavailable if you set the <code>AssociationType</code> parameter to <code>Resource</code>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>172050525300****</p>
*/
public Builder target(String target) {
this.putQueryParameter("Target", target);
this.target = target;
return this;
}
@Override
public ListResourceShareAssociationsRequest build() {
return new ListResourceShareAssociationsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListResourceShareAssociationsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListResourceShareAssociationsResponse} extends {@link TeaModel}
*
* <p>ListResourceShareAssociationsResponse</p>
*/
public class ListResourceShareAssociationsResponse 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 ListResourceShareAssociationsResponseBody body;
private ListResourceShareAssociationsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListResourceShareAssociationsResponse 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 ListResourceShareAssociationsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListResourceShareAssociationsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListResourceShareAssociationsResponseBody body);
@Override
ListResourceShareAssociationsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListResourceShareAssociationsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListResourceShareAssociationsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListResourceShareAssociationsResponse 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(ListResourceShareAssociationsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListResourceShareAssociationsResponse build() {
return new ListResourceShareAssociationsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListResourceShareAssociationsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListResourceShareAssociationsResponseBody} extends {@link TeaModel}
*
* <p>ListResourceShareAssociationsResponseBody</p>
*/
public class ListResourceShareAssociationsResponseBody 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("ResourceShareAssociations")
private java.util.List<ResourceShareAssociations> resourceShareAssociations;
private ListResourceShareAssociationsResponseBody(Builder builder) {
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.resourceShareAssociations = builder.resourceShareAssociations;
}
public static Builder builder() {
return new Builder();
}
public static ListResourceShareAssociationsResponseBody 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 resourceShareAssociations
*/
public java.util.List<ResourceShareAssociations> getResourceShareAssociations() {
return this.resourceShareAssociations;
}
public static final class Builder {
private String nextToken;
private String requestId;
private java.util.List<ResourceShareAssociations> resourceShareAssociations;
private Builder() {
}
private Builder(ListResourceShareAssociationsResponseBody model) {
this.nextToken = model.nextToken;
this.requestId = model.requestId;
this.resourceShareAssociations = model.resourceShareAssociations;
}
/**
* <p>The <code>token</code> that is used to initiate the next request if the response of the current request is truncated. You can use the token to initiate another request and obtain the remaining records.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>11BA57B5-7301-4E2F-BBA5-2AE4C2F4FCDB</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information of the entities.</p>
*/
public Builder resourceShareAssociations(java.util.List<ResourceShareAssociations> resourceShareAssociations) {
this.resourceShareAssociations = resourceShareAssociations;
return this;
}
public ListResourceShareAssociationsResponseBody build() {
return new ListResourceShareAssociationsResponseBody(this);
}
}
/**
*
* {@link ListResourceShareAssociationsResponseBody} extends {@link TeaModel}
*
* <p>ListResourceShareAssociationsResponseBody</p>
*/
public static class AssociationFailedDetails extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociateType")
private String associateType;
@com.aliyun.core.annotation.NameInMap("EntityId")
private String entityId;
@com.aliyun.core.annotation.NameInMap("EntityType")
private String entityType;
@com.aliyun.core.annotation.NameInMap("FailureDescription")
private String failureDescription;
@com.aliyun.core.annotation.NameInMap("FailureReason")
private String failureReason;
@com.aliyun.core.annotation.NameInMap("OperationType")
private String operationType;
@com.aliyun.core.annotation.NameInMap("ResourceArn")
private String resourceArn;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StatusMessage")
private String statusMessage;
private AssociationFailedDetails(Builder builder) {
this.associateType = builder.associateType;
this.entityId = builder.entityId;
this.entityType = builder.entityType;
this.failureDescription = builder.failureDescription;
this.failureReason = builder.failureReason;
this.operationType = builder.operationType;
this.resourceArn = builder.resourceArn;
this.status = builder.status;
this.statusMessage = builder.statusMessage;
}
public static Builder builder() {
return new Builder();
}
public static AssociationFailedDetails create() {
return builder().build();
}
/**
* @return associateType
*/
public String getAssociateType() {
return this.associateType;
}
/**
* @return entityId
*/
public String getEntityId() {
return this.entityId;
}
/**
* @return entityType
*/
public String getEntityType() {
return this.entityType;
}
/**
* @return failureDescription
*/
public String getFailureDescription() {
return this.failureDescription;
}
/**
* @return failureReason
*/
public String getFailureReason() {
return this.failureReason;
}
/**
* @return operationType
*/
public String getOperationType() {
return this.operationType;
}
/**
* @return resourceArn
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return statusMessage
*/
public String getStatusMessage() {
return this.statusMessage;
}
public static final class Builder {
private String associateType;
private String entityId;
private String entityType;
private String failureDescription;
private String failureReason;
private String operationType;
private String resourceArn;
private String status;
private String statusMessage;
private Builder() {
}
private Builder(AssociationFailedDetails model) {
this.associateType = model.associateType;
this.entityId = model.entityId;
this.entityType = model.entityType;
this.failureDescription = model.failureDescription;
this.failureReason = model.failureReason;
this.operationType = model.operationType;
this.resourceArn = model.resourceArn;
this.status = model.status;
this.statusMessage = model.statusMessage;
}
/**
* <p>This parameter is deprecated. The OperationType parameter is used instead.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder associateType(String associateType) {
this.associateType = associateType;
return this;
}
/**
* <p>The ID of the entity. The value of this parameter depends on the value of the AssociationType parameter:</p>
* <ul>
* <li>If the value of AssociationType is Resource, the value of this parameter is the ID of the principal.</li>
* <li>If the value of AssociationType is Target, the value of this parameter is the ID of the resource.</li>
* </ul>
*
* <strong>example:</strong>
* <p>172050525300****</p>
*/
public Builder entityId(String entityId) {
this.entityId = entityId;
return this;
}
/**
* <p>The type of the entity. The value of this parameter depends on the value of the AssociationType parameter:</p>
* <ul>
* <li>If the value of AssociationType is Resource, the value of this parameter is the type of the resource. For information about the types of resources that can be shared, see Services that work with Resource Sharing.</li>
* <li>If the value of AssociationType is Target, the value of this parameter is <code>ResourceDirectory</code>, <code>Folder</code>, <code>Account</code>, or <code>Service</code>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Account</p>
*/
public Builder entityType(String entityType) {
this.entityType = entityType;
return this;
}
/**
* <p>The failure description.</p>
*
* <strong>example:</strong>
* <p>You cannot access the specified resource at this time.</p>
*/
public Builder failureDescription(String failureDescription) {
this.failureDescription = failureDescription;
return this;
}
/**
* <p>The failure cause. Valid values:</p>
* <ul>
* <li>Unavailable: The resource does not exist.</li>
* <li>LimitExceeded: The number of principals for the resource exceeds the upper limit.</li>
* <li>ZonalResourceInaccessible: The resource is unavailable in this region.</li>
* <li>InternalError: An internal error occurred.</li>
* <li>UnsupportedOperation: You cannot perform this operation.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Unavailable</p>
*/
public Builder failureReason(String failureReason) {
this.failureReason = failureReason;
return this;
}
/**
* <p>The operation type. Valid values:</p>
* <ul>
* <li>Associate</li>
* <li>Disassociate</li>
* </ul>
*
* <strong>example:</strong>
* <p>Associate</p>
*/
public Builder operationType(String operationType) {
this.operationType = operationType;
return this;
}
/**
* ResourceArn.
*/
public Builder resourceArn(String resourceArn) {
this.resourceArn = resourceArn;
return this;
}
/**
* <p>This parameter is deprecated. The FailureReason parameter is used instead.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>This parameter is deprecated. The FailureDescription parameter is used instead.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder statusMessage(String statusMessage) {
this.statusMessage = statusMessage;
return this;
}
public AssociationFailedDetails build() {
return new AssociationFailedDetails(this);
}
}
}
/**
*
* {@link ListResourceShareAssociationsResponseBody} extends {@link TeaModel}
*
* <p>ListResourceShareAssociationsResponseBody</p>
*/
public static class ResourceShareAssociations extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociationFailedDetails")
private java.util.List<AssociationFailedDetails> associationFailedDetails;
@com.aliyun.core.annotation.NameInMap("AssociationStatus")
private String associationStatus;
@com.aliyun.core.annotation.NameInMap("AssociationStatusMessage")
private String associationStatusMessage;
@com.aliyun.core.annotation.NameInMap("AssociationType")
private String associationType;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("EntityId")
private String entityId;
@com.aliyun.core.annotation.NameInMap("EntityType")
private String entityType;
@com.aliyun.core.annotation.NameInMap("External")
private Boolean external;
@com.aliyun.core.annotation.NameInMap("ResourceArn")
private String resourceArn;
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
private String resourceShareId;
@com.aliyun.core.annotation.NameInMap("ResourceShareName")
private String resourceShareName;
@com.aliyun.core.annotation.NameInMap("TargetProperty")
private String targetProperty;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private String updateTime;
private ResourceShareAssociations(Builder builder) {
this.associationFailedDetails = builder.associationFailedDetails;
this.associationStatus = builder.associationStatus;
this.associationStatusMessage = builder.associationStatusMessage;
this.associationType = builder.associationType;
this.createTime = builder.createTime;
this.entityId = builder.entityId;
this.entityType = builder.entityType;
this.external = builder.external;
this.resourceArn = builder.resourceArn;
this.resourceShareId = builder.resourceShareId;
this.resourceShareName = builder.resourceShareName;
this.targetProperty = builder.targetProperty;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static ResourceShareAssociations create() {
return builder().build();
}
/**
* @return associationFailedDetails
*/
public java.util.List<AssociationFailedDetails> getAssociationFailedDetails() {
return this.associationFailedDetails;
}
/**
* @return associationStatus
*/
public String getAssociationStatus() {
return this.associationStatus;
}
/**
* @return associationStatusMessage
*/
public String getAssociationStatusMessage() {
return this.associationStatusMessage;
}
/**
* @return associationType
*/
public String getAssociationType() {
return this.associationType;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return entityId
*/
public String getEntityId() {
return this.entityId;
}
/**
* @return entityType
*/
public String getEntityType() {
return this.entityType;
}
/**
* @return external
*/
public Boolean getExternal() {
return this.external;
}
/**
* @return resourceArn
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
/**
* @return resourceShareName
*/
public String getResourceShareName() {
return this.resourceShareName;
}
/**
* @return targetProperty
*/
public String getTargetProperty() {
return this.targetProperty;
}
/**
* @return updateTime
*/
public String getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private java.util.List<AssociationFailedDetails> associationFailedDetails;
private String associationStatus;
private String associationStatusMessage;
private String associationType;
private String createTime;
private String entityId;
private String entityType;
private Boolean external;
private String resourceArn;
private String resourceShareId;
private String resourceShareName;
private String targetProperty;
private String updateTime;
private Builder() {
}
private Builder(ResourceShareAssociations model) {
this.associationFailedDetails = model.associationFailedDetails;
this.associationStatus = model.associationStatus;
this.associationStatusMessage = model.associationStatusMessage;
this.associationType = model.associationType;
this.createTime = model.createTime;
this.entityId = model.entityId;
this.entityType = model.entityType;
this.external = model.external;
this.resourceArn = model.resourceArn;
this.resourceShareId = model.resourceShareId;
this.resourceShareName = model.resourceShareName;
this.targetProperty = model.targetProperty;
this.updateTime = model.updateTime;
}
/**
* <p>The information about the failure.</p>
*/
public Builder associationFailedDetails(java.util.List<AssociationFailedDetails> associationFailedDetails) {
this.associationFailedDetails = associationFailedDetails;
return this;
}
/**
* <p>The association status. Valid values:</p>
* <ul>
* <li>Associating: The entity is being associated.</li>
* <li>Associated: The entity is associated.</li>
* <li>Failed: The entity fails to be associated.</li>
* <li>Disassociating: The entity is being disassociated.</li>
* <li>Disassociated: The entity is disassociated.</li>
* </ul>
* <blockquote>
* <p> The system deletes the records of entities in the <code>Failed</code> or <code>Disassociated</code> state within 48 hours to 96 hours.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Associated</p>
*/
public Builder associationStatus(String associationStatus) {
this.associationStatus = associationStatus;
return this;
}
/**
* <p>The cause of the association failure.</p>
*
* <strong>example:</strong>
* <p>The reason for the association failure.</p>
*/
public Builder associationStatusMessage(String associationStatusMessage) {
this.associationStatusMessage = associationStatusMessage;
return this;
}
/**
* <p>The association type. Valid values:</p>
* <ul>
* <li>Resource</li>
* <li>Target</li>
* </ul>
*
* <strong>example:</strong>
* <p>Resource</p>
*/
public Builder associationType(String associationType) {
this.associationType = associationType;
return this;
}
/**
* <p>The time when the association of the entity was created. The value of this parameter depends on the value of the AssociationType parameter:</p>
* <ul>
* <li>If the value of <code>AssociationType</code> is <code>Resource</code>, the value of this parameter is the time when the shared resource was associated with or disassociated from the resource share.</li>
* <li>If the value of <code>AssociationType</code> is <code>Target</code>, the value of this parameter is the time when the principal was associated with or disassociated from the resource share.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2020-12-07T07:39:01.818Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the entity. The value of this parameter depends on the value of the AssociationType parameter:</p>
* <ul>
* <li>If the value of <code>AssociationType</code> is <code>Resource</code>, the value of this parameter is the ID of the resource.</li>
* <li>If the value of <code>AssociationType</code> is <code>Target</code>, the value of this parameter is the ID of the principal.</li>
* </ul>
*
* <strong>example:</strong>
* <p>vsw-bp1upw03qyz8n7us9****</p>
*/
public Builder entityId(String entityId) {
this.entityId = entityId;
return this;
}
/**
* <p>The type of the entity. The value of this parameter depends on the value of the AssociationType parameter:</p>
* <ul>
* <li>If the value of AssociationType is Resource, the value of this parameter is the type of the resource. For information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</li>
* <li>If the value of AssociationType is Target, the value of this parameter is <code>Account</code>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder entityType(String entityType) {
this.entityType = entityType;
return this;
}
/**
* <p>Indicates whether the principal is outside the resource directory. Valid values:</p>
* <ul>
* <li>true</li>
* <li>false</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder external(Boolean external) {
this.external = external;
return this;
}
/**
* ResourceArn.
*/
public Builder resourceArn(String resourceArn) {
this.resourceArn = resourceArn;
return this;
}
/**
* <p>The ID of the resource share.</p>
*
* <strong>example:</strong>
* <p>rs-6GRmdD3X****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.resourceShareId = resourceShareId;
return this;
}
/**
* <p>The name of the resource share.</p>
*
* <strong>example:</strong>
* <p>example</p>
*/
public Builder resourceShareName(String resourceShareName) {
this.resourceShareName = resourceShareName;
return this;
}
/**
* <p>The properties of the principal, such as the time range within which the resource is shared. Valid values of <code>timeRangeType</code>:</p>
* <ul>
* <li>timeRange: a specific time range</li>
* <li>day: all day</li>
* </ul>
* <blockquote>
* <p> This parameter is returned only if the principal is an Alibaba Cloud service.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>{
* "timeRange":{
* "timeRangeType":"timeRange",
* "beginAtTime":"00:00",
* "timezone":"UTC+8",
* "endAtTime":"19:59"
* }
* }</p>
*/
public Builder targetProperty(String targetProperty) {
this.targetProperty = targetProperty;
return this;
}
/**
* <p>The time when the association of the entity was updated. The value of this parameter depends on the value of the AssociationType parameter:</p>
* <ul>
* <li>If the value of <code>AssociationType</code> is <code>Resource</code>, the value of this parameter is the time when the association of the shared resource was updated.</li>
* <li>If the value of <code>AssociationType</code> is <code>Target</code>, the value of this parameter is the time when the association of the principal was updated.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2020-12-07T07:39:02.920Z</p>
*/
public Builder updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
public ResourceShareAssociations build() {
return new ResourceShareAssociations(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListResourceShareInvitationsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListResourceShareInvitationsRequest} extends {@link RequestModel}
*
* <p>ListResourceShareInvitationsRequest</p>
*/
public class ListResourceShareInvitationsRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@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("ResourceShareIds")
private java.util.List<String> resourceShareIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareInvitationIds")
private java.util.List<String> resourceShareInvitationIds;
private ListResourceShareInvitationsRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.resourceShareIds = builder.resourceShareIds;
this.resourceShareInvitationIds = builder.resourceShareInvitationIds;
}
public static Builder builder() {
return new Builder();
}
public static ListResourceShareInvitationsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return resourceShareIds
*/
public java.util.List<String> getResourceShareIds() {
return this.resourceShareIds;
}
/**
* @return resourceShareInvitationIds
*/
public java.util.List<String> getResourceShareInvitationIds() {
return this.resourceShareInvitationIds;
}
public static final class Builder extends Request.Builder<ListResourceShareInvitationsRequest, Builder> {
private String regionId;
private Integer maxResults;
private String nextToken;
private java.util.List<String> resourceShareIds;
private java.util.List<String> resourceShareInvitationIds;
private Builder() {
super();
}
private Builder(ListResourceShareInvitationsRequest request) {
super(request);
this.regionId = request.regionId;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.resourceShareIds = request.resourceShareIds;
this.resourceShareInvitationIds = request.resourceShareInvitationIds;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The maximum number of entries to return for a single request.</p>
* <p>Valid values: 1 to 100. Default value: 20.</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. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of <code>NextToken</code>.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* <p>The IDs of the resource shares.</p>
*/
public Builder resourceShareIds(java.util.List<String> resourceShareIds) {
this.putQueryParameter("ResourceShareIds", resourceShareIds);
this.resourceShareIds = resourceShareIds;
return this;
}
/**
* <p>The IDs of the resource sharing invitations.</p>
*/
public Builder resourceShareInvitationIds(java.util.List<String> resourceShareInvitationIds) {
this.putQueryParameter("ResourceShareInvitationIds", resourceShareInvitationIds);
this.resourceShareInvitationIds = resourceShareInvitationIds;
return this;
}
@Override
public ListResourceShareInvitationsRequest build() {
return new ListResourceShareInvitationsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListResourceShareInvitationsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListResourceShareInvitationsResponse} extends {@link TeaModel}
*
* <p>ListResourceShareInvitationsResponse</p>
*/
public class ListResourceShareInvitationsResponse 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 ListResourceShareInvitationsResponseBody body;
private ListResourceShareInvitationsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListResourceShareInvitationsResponse 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 ListResourceShareInvitationsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListResourceShareInvitationsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListResourceShareInvitationsResponseBody body);
@Override
ListResourceShareInvitationsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListResourceShareInvitationsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListResourceShareInvitationsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListResourceShareInvitationsResponse 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(ListResourceShareInvitationsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListResourceShareInvitationsResponse build() {
return new ListResourceShareInvitationsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListResourceShareInvitationsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListResourceShareInvitationsResponseBody} extends {@link TeaModel}
*
* <p>ListResourceShareInvitationsResponseBody</p>
*/
public class ListResourceShareInvitationsResponseBody 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("ResourceShareInvitations")
private java.util.List<ResourceShareInvitations> resourceShareInvitations;
private ListResourceShareInvitationsResponseBody(Builder builder) {
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.resourceShareInvitations = builder.resourceShareInvitations;
}
public static Builder builder() {
return new Builder();
}
public static ListResourceShareInvitationsResponseBody 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 resourceShareInvitations
*/
public java.util.List<ResourceShareInvitations> getResourceShareInvitations() {
return this.resourceShareInvitations;
}
public static final class Builder {
private String nextToken;
private String requestId;
private java.util.List<ResourceShareInvitations> resourceShareInvitations;
private Builder() {
}
private Builder(ListResourceShareInvitationsResponseBody model) {
this.nextToken = model.nextToken;
this.requestId = model.requestId;
this.resourceShareInvitations = model.resourceShareInvitations;
}
/**
* <p>The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of <code>NextToken</code>.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>30EC8328-1BDE-51D5-BFAB-039508BD91A1</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the resource sharing invitations.</p>
*/
public Builder resourceShareInvitations(java.util.List<ResourceShareInvitations> resourceShareInvitations) {
this.resourceShareInvitations = resourceShareInvitations;
return this;
}
public ListResourceShareInvitationsResponseBody build() {
return new ListResourceShareInvitationsResponseBody(this);
}
}
/**
*
* {@link ListResourceShareInvitationsResponseBody} extends {@link TeaModel}
*
* <p>ListResourceShareInvitationsResponseBody</p>
*/
public static class InvitationFailedDetails extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociateType")
private String associateType;
@com.aliyun.core.annotation.NameInMap("FailureDescription")
private String failureDescription;
@com.aliyun.core.annotation.NameInMap("FailureReason")
private String failureReason;
@com.aliyun.core.annotation.NameInMap("OperationType")
private String operationType;
@com.aliyun.core.annotation.NameInMap("ResourceArn")
private String resourceArn;
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StatusMessage")
private String statusMessage;
private InvitationFailedDetails(Builder builder) {
this.associateType = builder.associateType;
this.failureDescription = builder.failureDescription;
this.failureReason = builder.failureReason;
this.operationType = builder.operationType;
this.resourceArn = builder.resourceArn;
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.status = builder.status;
this.statusMessage = builder.statusMessage;
}
public static Builder builder() {
return new Builder();
}
public static InvitationFailedDetails create() {
return builder().build();
}
/**
* @return associateType
*/
public String getAssociateType() {
return this.associateType;
}
/**
* @return failureDescription
*/
public String getFailureDescription() {
return this.failureDescription;
}
/**
* @return failureReason
*/
public String getFailureReason() {
return this.failureReason;
}
/**
* @return operationType
*/
public String getOperationType() {
return this.operationType;
}
/**
* @return resourceArn
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return statusMessage
*/
public String getStatusMessage() {
return this.statusMessage;
}
public static final class Builder {
private String associateType;
private String failureDescription;
private String failureReason;
private String operationType;
private String resourceArn;
private String resourceId;
private String resourceType;
private String status;
private String statusMessage;
private Builder() {
}
private Builder(InvitationFailedDetails model) {
this.associateType = model.associateType;
this.failureDescription = model.failureDescription;
this.failureReason = model.failureReason;
this.operationType = model.operationType;
this.resourceArn = model.resourceArn;
this.resourceId = model.resourceId;
this.resourceType = model.resourceType;
this.status = model.status;
this.statusMessage = model.statusMessage;
}
/**
* <p>This parameter is deprecated. The OperationType parameter is used instead.</p>
*
* <strong>example:</strong>
* <p>Associate</p>
*/
public Builder associateType(String associateType) {
this.associateType = associateType;
return this;
}
/**
* <p>The failure description.</p>
*
* <strong>example:</strong>
* <p>You cannot access the specified resource at this time.</p>
*/
public Builder failureDescription(String failureDescription) {
this.failureDescription = failureDescription;
return this;
}
/**
* <p>The failure cause. Valid values:</p>
* <ul>
* <li>Unavailable: The resource cannot be shared.</li>
* <li>LimitExceeded: The number of shared resources within the Alibaba Cloud account exceeds the upper limit.</li>
* <li>ZonalResourceInaccessible: The resource is unavailable in this region.</li>
* <li>InternalError: An internal error occurred during the check.</li>
* <li>UnsupportedOperation: You cannot perform this operation.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Unavailable</p>
*/
public Builder failureReason(String failureReason) {
this.failureReason = failureReason;
return this;
}
/**
* <p>The operation type. Valid values:</p>
* <ul>
* <li>Associate</li>
* <li>Disassociate</li>
* </ul>
*
* <strong>example:</strong>
* <p>Associate</p>
*/
public Builder operationType(String operationType) {
this.operationType = operationType;
return this;
}
/**
* ResourceArn.
*/
public Builder resourceArn(String resourceArn) {
this.resourceArn = resourceArn;
return this;
}
/**
* <p>The ID of the shared resource.</p>
*
* <strong>example:</strong>
* <p>s-7xvh46nx5oqlre0wv***</p>
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The type of the shared resource.</p>
* <p>For more information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</p>
*
* <strong>example:</strong>
* <p>Snapshot</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>This parameter is deprecated. The FailureReason parameter is used instead.</p>
*
* <strong>example:</strong>
* <p>Unavailable</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>This parameter is deprecated. The FailureDescription parameter is used instead.</p>
*
* <strong>example:</strong>
* <p>You cannot access the specified resource at this time.</p>
*/
public Builder statusMessage(String statusMessage) {
this.statusMessage = statusMessage;
return this;
}
public InvitationFailedDetails build() {
return new InvitationFailedDetails(this);
}
}
}
/**
*
* {@link ListResourceShareInvitationsResponseBody} extends {@link TeaModel}
*
* <p>ListResourceShareInvitationsResponseBody</p>
*/
public static class ResourceShareInvitations extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("InvitationFailedDetails")
private java.util.List<InvitationFailedDetails> invitationFailedDetails;
@com.aliyun.core.annotation.NameInMap("ReceiverAccountId")
private String receiverAccountId;
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
private String resourceShareId;
@com.aliyun.core.annotation.NameInMap("ResourceShareInvitationId")
private String resourceShareInvitationId;
@com.aliyun.core.annotation.NameInMap("ResourceShareName")
private String resourceShareName;
@com.aliyun.core.annotation.NameInMap("SenderAccountId")
private String senderAccountId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private ResourceShareInvitations(Builder builder) {
this.createTime = builder.createTime;
this.invitationFailedDetails = builder.invitationFailedDetails;
this.receiverAccountId = builder.receiverAccountId;
this.resourceShareId = builder.resourceShareId;
this.resourceShareInvitationId = builder.resourceShareInvitationId;
this.resourceShareName = builder.resourceShareName;
this.senderAccountId = builder.senderAccountId;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static ResourceShareInvitations create() {
return builder().build();
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return invitationFailedDetails
*/
public java.util.List<InvitationFailedDetails> getInvitationFailedDetails() {
return this.invitationFailedDetails;
}
/**
* @return receiverAccountId
*/
public String getReceiverAccountId() {
return this.receiverAccountId;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
/**
* @return resourceShareInvitationId
*/
public String getResourceShareInvitationId() {
return this.resourceShareInvitationId;
}
/**
* @return resourceShareName
*/
public String getResourceShareName() {
return this.resourceShareName;
}
/**
* @return senderAccountId
*/
public String getSenderAccountId() {
return this.senderAccountId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String createTime;
private java.util.List<InvitationFailedDetails> invitationFailedDetails;
private String receiverAccountId;
private String resourceShareId;
private String resourceShareInvitationId;
private String resourceShareName;
private String senderAccountId;
private String status;
private Builder() {
}
private Builder(ResourceShareInvitations model) {
this.createTime = model.createTime;
this.invitationFailedDetails = model.invitationFailedDetails;
this.receiverAccountId = model.receiverAccountId;
this.resourceShareId = model.resourceShareId;
this.resourceShareInvitationId = model.resourceShareInvitationId;
this.resourceShareName = model.resourceShareName;
this.senderAccountId = model.senderAccountId;
this.status = model.status;
}
/**
* <p>The time when the invitation was created. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2022-08-18T05:36:45.024Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The information about the failure.</p>
*/
public Builder invitationFailedDetails(java.util.List<InvitationFailedDetails> invitationFailedDetails) {
this.invitationFailedDetails = invitationFailedDetails;
return this;
}
/**
* <p>The Alibaba Cloud account ID of the invitee.</p>
*
* <strong>example:</strong>
* <p>134254031178****</p>
*/
public Builder receiverAccountId(String receiverAccountId) {
this.receiverAccountId = receiverAccountId;
return this;
}
/**
* <p>The ID of the resource share.</p>
*
* <strong>example:</strong>
* <p>rs-ysGRci9z****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.resourceShareId = resourceShareId;
return this;
}
/**
* <p>The ID of the invitation.</p>
*
* <strong>example:</strong>
* <p>i-p6eRytrkjVvM****</p>
*/
public Builder resourceShareInvitationId(String resourceShareInvitationId) {
this.resourceShareInvitationId = resourceShareInvitationId;
return this;
}
/**
* <p>The name of the resource share.</p>
*
* <strong>example:</strong>
* <p>example</p>
*/
public Builder resourceShareName(String resourceShareName) {
this.resourceShareName = resourceShareName;
return this;
}
/**
* <p>The Alibaba Cloud account ID of the inviter.</p>
*
* <strong>example:</strong>
* <p>151266687691****</p>
*/
public Builder senderAccountId(String senderAccountId) {
this.senderAccountId = senderAccountId;
return this;
}
/**
* <p>The status of the invitation. Valid values:</p>
* <ul>
* <li>Pending</li>
* <li>Accepted</li>
* <li>Cancelled</li>
* <li>Rejected</li>
* <li>Expired</li>
* <li>AcceptFailed</li>
* </ul>
*
* <strong>example:</strong>
* <p>Pending</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public ResourceShareInvitations build() {
return new ResourceShareInvitations(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListResourceSharePermissionsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListResourceSharePermissionsRequest} extends {@link RequestModel}
*
* <p>ListResourceSharePermissionsRequest</p>
*/
public class ListResourceSharePermissionsRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@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("ResourceOwner")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceOwner;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareId;
private ListResourceSharePermissionsRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.resourceOwner = builder.resourceOwner;
this.resourceShareId = builder.resourceShareId;
}
public static Builder builder() {
return new Builder();
}
public static ListResourceSharePermissionsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return resourceOwner
*/
public String getResourceOwner() {
return this.resourceOwner;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
public static final class Builder extends Request.Builder<ListResourceSharePermissionsRequest, Builder> {
private String regionId;
private Integer maxResults;
private String nextToken;
private String resourceOwner;
private String resourceShareId;
private Builder() {
super();
}
private Builder(ListResourceSharePermissionsRequest request) {
super(request);
this.regionId = request.regionId;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.resourceOwner = request.resourceOwner;
this.resourceShareId = request.resourceShareId;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The maximum number of entries to return for a single request.</p>
* <p>Valid values: 1 to 100. Default value: 20.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder maxResults(Integer maxResults) {
this.putQueryParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* <p>The <code>token</code> that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* <p>The owner of the resource share. Valid values:</p>
* <ul>
* <li>Self: the current account</li>
* <li>OtherAccounts: an account other than the current account</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Self</p>
*/
public Builder resourceOwner(String resourceOwner) {
this.putQueryParameter("ResourceOwner", resourceOwner);
this.resourceOwner = resourceOwner;
return this;
}
/**
* <p>The ID of the resource share.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rs-6GRmdD3X****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.putQueryParameter("ResourceShareId", resourceShareId);
this.resourceShareId = resourceShareId;
return this;
}
@Override
public ListResourceSharePermissionsRequest build() {
return new ListResourceSharePermissionsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListResourceSharePermissionsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListResourceSharePermissionsResponse} extends {@link TeaModel}
*
* <p>ListResourceSharePermissionsResponse</p>
*/
public class ListResourceSharePermissionsResponse 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 ListResourceSharePermissionsResponseBody body;
private ListResourceSharePermissionsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListResourceSharePermissionsResponse 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 ListResourceSharePermissionsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListResourceSharePermissionsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListResourceSharePermissionsResponseBody body);
@Override
ListResourceSharePermissionsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListResourceSharePermissionsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListResourceSharePermissionsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListResourceSharePermissionsResponse 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(ListResourceSharePermissionsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListResourceSharePermissionsResponse build() {
return new ListResourceSharePermissionsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListResourceSharePermissionsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListResourceSharePermissionsResponseBody} extends {@link TeaModel}
*
* <p>ListResourceSharePermissionsResponseBody</p>
*/
public class ListResourceSharePermissionsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("Permissions")
private java.util.List<Permissions> permissions;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListResourceSharePermissionsResponseBody(Builder builder) {
this.nextToken = builder.nextToken;
this.permissions = builder.permissions;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListResourceSharePermissionsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return permissions
*/
public java.util.List<Permissions> getPermissions() {
return this.permissions;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String nextToken;
private java.util.List<Permissions> permissions;
private String requestId;
private Builder() {
}
private Builder(ListResourceSharePermissionsResponseBody model) {
this.nextToken = model.nextToken;
this.permissions = model.permissions;
this.requestId = model.requestId;
}
/**
* <p>The <code>token</code> that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The information about the permissions.</p>
*/
public Builder permissions(java.util.List<Permissions> permissions) {
this.permissions = permissions;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListResourceSharePermissionsResponseBody build() {
return new ListResourceSharePermissionsResponseBody(this);
}
}
/**
*
* {@link ListResourceSharePermissionsResponseBody} extends {@link TeaModel}
*
* <p>ListResourceSharePermissionsResponseBody</p>
*/
public static class Permissions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("DefaultPermission")
private Boolean defaultPermission;
@com.aliyun.core.annotation.NameInMap("DefaultVersion")
private Boolean defaultVersion;
@com.aliyun.core.annotation.NameInMap("PermissionName")
private String permissionName;
@com.aliyun.core.annotation.NameInMap("PermissionVersion")
private String permissionVersion;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private String updateTime;
private Permissions(Builder builder) {
this.createTime = builder.createTime;
this.defaultPermission = builder.defaultPermission;
this.defaultVersion = builder.defaultVersion;
this.permissionName = builder.permissionName;
this.permissionVersion = builder.permissionVersion;
this.resourceType = builder.resourceType;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static Permissions create() {
return builder().build();
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return defaultPermission
*/
public Boolean getDefaultPermission() {
return this.defaultPermission;
}
/**
* @return defaultVersion
*/
public Boolean getDefaultVersion() {
return this.defaultVersion;
}
/**
* @return permissionName
*/
public String getPermissionName() {
return this.permissionName;
}
/**
* @return permissionVersion
*/
public String getPermissionVersion() {
return this.permissionVersion;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return updateTime
*/
public String getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private String createTime;
private Boolean defaultPermission;
private Boolean defaultVersion;
private String permissionName;
private String permissionVersion;
private String resourceType;
private String updateTime;
private Builder() {
}
private Builder(Permissions model) {
this.createTime = model.createTime;
this.defaultPermission = model.defaultPermission;
this.defaultVersion = model.defaultVersion;
this.permissionName = model.permissionName;
this.permissionVersion = model.permissionVersion;
this.resourceType = model.resourceType;
this.updateTime = model.updateTime;
}
/**
* <p>The creation time.</p>
*
* <strong>example:</strong>
* <p>2020-12-07T07:39:01.818Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>Indicates whether the permission is the default permission. Valid values:</p>
* <ul>
* <li>false: The permission is not the default permission.</li>
* <li>true: The permission is the default permission.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder defaultPermission(Boolean defaultPermission) {
this.defaultPermission = defaultPermission;
return this;
}
/**
* <p>Indicates whether the version is the default version. Valid values:</p>
* <ul>
* <li>false: The version is not the default version.</li>
* <li>true: The version is the default version.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder defaultVersion(Boolean defaultVersion) {
this.defaultVersion = defaultVersion;
return this;
}
/**
* <p>The name of the permission.</p>
*
* <strong>example:</strong>
* <p>AliyunRSDefaultPermissionVSwitch</p>
*/
public Builder permissionName(String permissionName) {
this.permissionName = permissionName;
return this;
}
/**
* <p>The version of the permission.</p>
*
* <strong>example:</strong>
* <p>v1</p>
*/
public Builder permissionVersion(String permissionVersion) {
this.permissionVersion = permissionVersion;
return this;
}
/**
* <p>The type of the shared resources.</p>
* <p>For more information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</p>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The update time.</p>
*
* <strong>example:</strong>
* <p>2020-12-07T07:39:01.818Z</p>
*/
public Builder updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
public Permissions build() {
return new Permissions(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListResourceSharesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListResourceSharesRequest} extends {@link RequestModel}
*
* <p>ListResourceSharesRequest</p>
*/
public class ListResourceSharesRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@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("PermissionName")
private String permissionName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwner")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceOwner;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareIds")
private java.util.List<String> resourceShareIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareName")
private String resourceShareName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareStatus")
private String resourceShareStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private ListResourceSharesRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.permissionName = builder.permissionName;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwner = builder.resourceOwner;
this.resourceShareIds = builder.resourceShareIds;
this.resourceShareName = builder.resourceShareName;
this.resourceShareStatus = builder.resourceShareStatus;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static ListResourceSharesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return permissionName
*/
public String getPermissionName() {
return this.permissionName;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwner
*/
public String getResourceOwner() {
return this.resourceOwner;
}
/**
* @return resourceShareIds
*/
public java.util.List<String> getResourceShareIds() {
return this.resourceShareIds;
}
/**
* @return resourceShareName
*/
public String getResourceShareName() {
return this.resourceShareName;
}
/**
* @return resourceShareStatus
*/
public String getResourceShareStatus() {
return this.resourceShareStatus;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder<ListResourceSharesRequest, Builder> {
private String regionId;
private Integer maxResults;
private String nextToken;
private String permissionName;
private String resourceGroupId;
private String resourceOwner;
private java.util.List<String> resourceShareIds;
private String resourceShareName;
private String resourceShareStatus;
private java.util.List<Tag> tag;
private Builder() {
super();
}
private Builder(ListResourceSharesRequest request) {
super(request);
this.regionId = request.regionId;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.permissionName = request.permissionName;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwner = request.resourceOwner;
this.resourceShareIds = request.resourceShareIds;
this.resourceShareName = request.resourceShareName;
this.resourceShareStatus = request.resourceShareStatus;
this.tag = request.tag;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The maximum number of entries to return for a single request.</p>
* <p>Valid values: 1 to 100. Default value: 20.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder maxResults(Integer maxResults) {
this.putQueryParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* <p>The <code>token</code> that is used to initiate the next request if the response of the current request is truncated. You can use the token to initiate another request and obtain the remaining records.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* <p>The information about the permissions. For more information, see <a href="https://help.aliyun.com/document_detail/465474.html">Permission library</a>.</p>
*
* <strong>example:</strong>
* <p>AliyunRSDefaultPermissionVSwitch</p>
*/
public Builder permissionName(String permissionName) {
this.putQueryParameter("PermissionName", permissionName);
this.permissionName = permissionName;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-aekz5nlvlak****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The owner of the resource shares. Valid values:</p>
* <ul>
* <li>Self: the current account</li>
* <li>OtherAccounts: an account other than the current account</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Self</p>
*/
public Builder resourceOwner(String resourceOwner) {
this.putQueryParameter("ResourceOwner", resourceOwner);
this.resourceOwner = resourceOwner;
return this;
}
/**
* <p>The IDs of the resource shares.</p>
* <p>Valid values of N: 1 to 5. This indicates that a maximum of five resource shares can be specified at a time.</p>
*
* <strong>example:</strong>
* <p>rs-PqysnzIj****</p>
*/
public Builder resourceShareIds(java.util.List<String> resourceShareIds) {
this.putQueryParameter("ResourceShareIds", resourceShareIds);
this.resourceShareIds = resourceShareIds;
return this;
}
/**
* <p>The name of the resource share.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder resourceShareName(String resourceShareName) {
this.putQueryParameter("ResourceShareName", resourceShareName);
this.resourceShareName = resourceShareName;
return this;
}
/**
* <p>The status of the resource shares. Valid values:</p>
* <ul>
* <li>Active</li>
* <li>Pending</li>
* <li>Deleting</li>
* <li>Deleted</li>
* </ul>
* <blockquote>
* <p> The system automatically deletes the records of resource shares in the Deleted state within 48 hours to 96 hours after you delete the resource shares.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Active</p>
*/
public Builder resourceShareStatus(String resourceShareStatus) {
this.putQueryParameter("ResourceShareStatus", resourceShareStatus);
this.resourceShareStatus = resourceShareStatus;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public ListResourceSharesRequest build() {
return new ListResourceSharesRequest(this);
}
}
/**
*
* {@link ListResourceSharesRequest} extends {@link TeaModel}
*
* <p>ListResourceSharesRequest</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.</p>
* <blockquote>
* <p> The tag key can be 128 characters in length and cannot start with <code>acs:</code> or <code>aliyun</code>. The tag key cannot contain <code>http://</code> or <code>https://</code>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>k1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value.</p>
* <blockquote>
* <p> The tag value can be 128 characters in length and cannot start with <code>acs:</code>. The tag value cannot contain <code>http://</code> or <code>https://</code>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>v1</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListResourceSharesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListResourceSharesResponse} extends {@link TeaModel}
*
* <p>ListResourceSharesResponse</p>
*/
public class ListResourceSharesResponse 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 ListResourceSharesResponseBody body;
private ListResourceSharesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListResourceSharesResponse 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 ListResourceSharesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListResourceSharesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListResourceSharesResponseBody body);
@Override
ListResourceSharesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListResourceSharesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListResourceSharesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListResourceSharesResponse 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(ListResourceSharesResponseBody body) {
this.body = body;
return this;
}
@Override
public ListResourceSharesResponse build() {
return new ListResourceSharesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListResourceSharesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListResourceSharesResponseBody} extends {@link TeaModel}
*
* <p>ListResourceSharesResponseBody</p>
*/
public class ListResourceSharesResponseBody 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("ResourceShares")
private java.util.List<ResourceShares> resourceShares;
private ListResourceSharesResponseBody(Builder builder) {
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.resourceShares = builder.resourceShares;
}
public static Builder builder() {
return new Builder();
}
public static ListResourceSharesResponseBody 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 resourceShares
*/
public java.util.List<ResourceShares> getResourceShares() {
return this.resourceShares;
}
public static final class Builder {
private String nextToken;
private String requestId;
private java.util.List<ResourceShares> resourceShares;
private Builder() {
}
private Builder(ListResourceSharesResponseBody model) {
this.nextToken = model.nextToken;
this.requestId = model.requestId;
this.resourceShares = model.resourceShares;
}
/**
* <p>The <code>token</code> that is used to initiate the next request if the response of the current request is truncated. You can use the token to initiate another request and obtain the remaining records.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the resource shares.</p>
*/
public Builder resourceShares(java.util.List<ResourceShares> resourceShares) {
this.resourceShares = resourceShares;
return this;
}
public ListResourceSharesResponseBody build() {
return new ListResourceSharesResponseBody(this);
}
}
/**
*
* {@link ListResourceSharesResponseBody} extends {@link TeaModel}
*
* <p>ListResourceSharesResponseBody</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>k1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>v1</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link ListResourceSharesResponseBody} extends {@link TeaModel}
*
* <p>ListResourceSharesResponseBody</p>
*/
public static class ResourceShares extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllowExternalTargets")
private Boolean allowExternalTargets;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
private String resourceShareId;
@com.aliyun.core.annotation.NameInMap("ResourceShareName")
private String resourceShareName;
@com.aliyun.core.annotation.NameInMap("ResourceShareOwner")
private String resourceShareOwner;
@com.aliyun.core.annotation.NameInMap("ResourceShareStatus")
private String resourceShareStatus;
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<Tags> tags;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private String updateTime;
private ResourceShares(Builder builder) {
this.allowExternalTargets = builder.allowExternalTargets;
this.createTime = builder.createTime;
this.resourceGroupId = builder.resourceGroupId;
this.resourceShareId = builder.resourceShareId;
this.resourceShareName = builder.resourceShareName;
this.resourceShareOwner = builder.resourceShareOwner;
this.resourceShareStatus = builder.resourceShareStatus;
this.tags = builder.tags;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static ResourceShares create() {
return builder().build();
}
/**
* @return allowExternalTargets
*/
public Boolean getAllowExternalTargets() {
return this.allowExternalTargets;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
/**
* @return resourceShareName
*/
public String getResourceShareName() {
return this.resourceShareName;
}
/**
* @return resourceShareOwner
*/
public String getResourceShareOwner() {
return this.resourceShareOwner;
}
/**
* @return resourceShareStatus
*/
public String getResourceShareStatus() {
return this.resourceShareStatus;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
/**
* @return updateTime
*/
public String getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private Boolean allowExternalTargets;
private String createTime;
private String resourceGroupId;
private String resourceShareId;
private String resourceShareName;
private String resourceShareOwner;
private String resourceShareStatus;
private java.util.List<Tags> tags;
private String updateTime;
private Builder() {
}
private Builder(ResourceShares model) {
this.allowExternalTargets = model.allowExternalTargets;
this.createTime = model.createTime;
this.resourceGroupId = model.resourceGroupId;
this.resourceShareId = model.resourceShareId;
this.resourceShareName = model.resourceShareName;
this.resourceShareOwner = model.resourceShareOwner;
this.resourceShareStatus = model.resourceShareStatus;
this.tags = model.tags;
this.updateTime = model.updateTime;
}
/**
* <p>Indicates whether resources in the resource share can be shared with accounts outside the resource directory. Valid values:</p>
* <ul>
* <li>false: Resources in the resource share can be shared only with accounts in the resource directory.</li>
* <li>true: Resources in the resource share can be shared with both accounts in the resource directory and accounts outside the resource directory.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder allowExternalTargets(Boolean allowExternalTargets) {
this.allowExternalTargets = allowExternalTargets;
return this;
}
/**
* <p>The time when the resource share was created.</p>
*
* <strong>example:</strong>
* <p>2020-12-03T02:20:31.292Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-aekz5nlvlak****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The ID of the resource share.</p>
*
* <strong>example:</strong>
* <p>rs-PqysnzIj****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.resourceShareId = resourceShareId;
return this;
}
/**
* <p>The name of the resource share.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder resourceShareName(String resourceShareName) {
this.resourceShareName = resourceShareName;
return this;
}
/**
* <p>The owner of the resource share.</p>
*
* <strong>example:</strong>
* <p>151266687691****</p>
*/
public Builder resourceShareOwner(String resourceShareOwner) {
this.resourceShareOwner = resourceShareOwner;
return this;
}
/**
* <p>The status of the resource share. Valid values:</p>
* <ul>
* <li>Active</li>
* <li>Pending</li>
* <li>Deleting</li>
* <li>Deleted</li>
* </ul>
* <blockquote>
* <p> The system automatically deletes the records of resource shares in the Deleted state within 48 hours to 96 hours after you delete the resource shares.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Active</p>
*/
public Builder resourceShareStatus(String resourceShareStatus) {
this.resourceShareStatus = resourceShareStatus;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.tags = tags;
return this;
}
/**
* <p>The time when the resource share was updated.</p>
*
* <strong>example:</strong>
* <p>2020-12-03T08:01:43.638Z</p>
*/
public Builder updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
public ResourceShares build() {
return new ResourceShares(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListSharedResourcesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListSharedResourcesRequest} extends {@link RequestModel}
*
* <p>ListSharedResourcesRequest</p>
*/
public class ListSharedResourcesRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@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("ResourceArns")
private java.util.List<String> resourceArns;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceIds")
private java.util.List<String> resourceIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwner")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceOwner;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareIds")
private java.util.List<String> resourceShareIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Target")
private String target;
private ListSharedResourcesRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.resourceArns = builder.resourceArns;
this.resourceIds = builder.resourceIds;
this.resourceOwner = builder.resourceOwner;
this.resourceShareIds = builder.resourceShareIds;
this.resourceType = builder.resourceType;
this.target = builder.target;
}
public static Builder builder() {
return new Builder();
}
public static ListSharedResourcesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return resourceArns
*/
public java.util.List<String> getResourceArns() {
return this.resourceArns;
}
/**
* @return resourceIds
*/
public java.util.List<String> getResourceIds() {
return this.resourceIds;
}
/**
* @return resourceOwner
*/
public String getResourceOwner() {
return this.resourceOwner;
}
/**
* @return resourceShareIds
*/
public java.util.List<String> getResourceShareIds() {
return this.resourceShareIds;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return target
*/
public String getTarget() {
return this.target;
}
public static final class Builder extends Request.Builder<ListSharedResourcesRequest, Builder> {
private String regionId;
private Integer maxResults;
private String nextToken;
private java.util.List<String> resourceArns;
private java.util.List<String> resourceIds;
private String resourceOwner;
private java.util.List<String> resourceShareIds;
private String resourceType;
private String target;
private Builder() {
super();
}
private Builder(ListSharedResourcesRequest request) {
super(request);
this.regionId = request.regionId;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.resourceArns = request.resourceArns;
this.resourceIds = request.resourceIds;
this.resourceOwner = request.resourceOwner;
this.resourceShareIds = request.resourceShareIds;
this.resourceType = request.resourceType;
this.target = request.target;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The maximum number of entries to return for a single request.</p>
* <p>Valid values: 1 to 100. Default value: 20.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder maxResults(Integer maxResults) {
this.putQueryParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* <p>The <code>token</code> that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* ResourceArns.
*/
public Builder resourceArns(java.util.List<String> resourceArns) {
this.putQueryParameter("ResourceArns", resourceArns);
this.resourceArns = resourceArns;
return this;
}
/**
* <p>The ID of a shared resource.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1upw03qyz8n7us9****</p>
*/
public Builder resourceIds(java.util.List<String> resourceIds) {
this.putQueryParameter("ResourceIds", resourceIds);
this.resourceIds = resourceIds;
return this;
}
/**
* <p>The owner of the resource shares. Valid values:</p>
* <ul>
* <li>Self: your account. If you set the value to Self, the resources you share with other accounts are queried.</li>
* <li>OtherAccounts: another account. If you set the value to OtherAccounts, the resources other accounts share with you are queried.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Self</p>
*/
public Builder resourceOwner(String resourceOwner) {
this.putQueryParameter("ResourceOwner", resourceOwner);
this.resourceOwner = resourceOwner;
return this;
}
/**
* <p>The ID of a resource share.</p>
*
* <strong>example:</strong>
* <p>rs-6GRmdD3X****</p>
*/
public Builder resourceShareIds(java.util.List<String> resourceShareIds) {
this.putQueryParameter("ResourceShareIds", resourceShareIds);
this.resourceShareIds = resourceShareIds;
return this;
}
/**
* <p>The type of the shared resources.</p>
* <p>For more information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</p>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* <p>The ID of the principal or resource owner.</p>
* <ul>
* <li>If the value of <code>ResourceOwner</code> is <code>Self</code>, set this parameter to the ID of a principal.</li>
* <li>If the value of <code>ResourceOwner</code> is <code>OtherAccounts</code>, set this parameter to the ID of a resource owner.</li>
* </ul>
*
* <strong>example:</strong>
* <p>172050525300****</p>
*/
public Builder target(String target) {
this.putQueryParameter("Target", target);
this.target = target;
return this;
}
@Override
public ListSharedResourcesRequest build() {
return new ListSharedResourcesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListSharedResourcesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListSharedResourcesResponse} extends {@link TeaModel}
*
* <p>ListSharedResourcesResponse</p>
*/
public class ListSharedResourcesResponse 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 ListSharedResourcesResponseBody body;
private ListSharedResourcesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListSharedResourcesResponse 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 ListSharedResourcesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListSharedResourcesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListSharedResourcesResponseBody body);
@Override
ListSharedResourcesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListSharedResourcesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListSharedResourcesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListSharedResourcesResponse 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(ListSharedResourcesResponseBody body) {
this.body = body;
return this;
}
@Override
public ListSharedResourcesResponse build() {
return new ListSharedResourcesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListSharedResourcesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListSharedResourcesResponseBody} extends {@link TeaModel}
*
* <p>ListSharedResourcesResponseBody</p>
*/
public class ListSharedResourcesResponseBody 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("SharedResources")
private java.util.List<SharedResources> sharedResources;
private ListSharedResourcesResponseBody(Builder builder) {
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.sharedResources = builder.sharedResources;
}
public static Builder builder() {
return new Builder();
}
public static ListSharedResourcesResponseBody 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 sharedResources
*/
public java.util.List<SharedResources> getSharedResources() {
return this.sharedResources;
}
public static final class Builder {
private String nextToken;
private String requestId;
private java.util.List<SharedResources> sharedResources;
private Builder() {
}
private Builder(ListSharedResourcesResponseBody model) {
this.nextToken = model.nextToken;
this.requestId = model.requestId;
this.sharedResources = model.sharedResources;
}
/**
* <p>The token that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>04677DCA-7C33-464B-8811-1B1DA3C3D197</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information of the shared resources.</p>
*/
public Builder sharedResources(java.util.List<SharedResources> sharedResources) {
this.sharedResources = sharedResources;
return this;
}
public ListSharedResourcesResponseBody build() {
return new ListSharedResourcesResponseBody(this);
}
}
/**
*
* {@link ListSharedResourcesResponseBody} extends {@link TeaModel}
*
* <p>ListSharedResourcesResponseBody</p>
*/
public static class SharedResources extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("ResourceArn")
private String resourceArn;
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
private String resourceShareId;
@com.aliyun.core.annotation.NameInMap("ResourceStatus")
private String resourceStatus;
@com.aliyun.core.annotation.NameInMap("ResourceStatusMessage")
private String resourceStatusMessage;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private String updateTime;
private SharedResources(Builder builder) {
this.createTime = builder.createTime;
this.resourceArn = builder.resourceArn;
this.resourceId = builder.resourceId;
this.resourceShareId = builder.resourceShareId;
this.resourceStatus = builder.resourceStatus;
this.resourceStatusMessage = builder.resourceStatusMessage;
this.resourceType = builder.resourceType;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static SharedResources create() {
return builder().build();
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return resourceArn
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
/**
* @return resourceStatus
*/
public String getResourceStatus() {
return this.resourceStatus;
}
/**
* @return resourceStatusMessage
*/
public String getResourceStatusMessage() {
return this.resourceStatusMessage;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return updateTime
*/
public String getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private String createTime;
private String resourceArn;
private String resourceId;
private String resourceShareId;
private String resourceStatus;
private String resourceStatusMessage;
private String resourceType;
private String updateTime;
private Builder() {
}
private Builder(SharedResources model) {
this.createTime = model.createTime;
this.resourceArn = model.resourceArn;
this.resourceId = model.resourceId;
this.resourceShareId = model.resourceShareId;
this.resourceStatus = model.resourceStatus;
this.resourceStatusMessage = model.resourceStatusMessage;
this.resourceType = model.resourceType;
this.updateTime = model.updateTime;
}
/**
* <p>The time when the shared resource was associated with the resource share.</p>
*
* <strong>example:</strong>
* <p>2020-12-07T07:39:02.921Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* ResourceArn.
*/
public Builder resourceArn(String resourceArn) {
this.resourceArn = resourceArn;
return this;
}
/**
* <p>The ID of the shared resource.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1upw03qyz8n7us9****</p>
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The ID of the resource share.</p>
*
* <strong>example:</strong>
* <p>rs-6GRmdD3X****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.resourceShareId = resourceShareId;
return this;
}
/**
* <p>The status of the shared resource. This parameter is returned only when you query the resources that other accounts share with you.</p>
* <p>Valid values:</p>
* <ul>
* <li>Available: The resource is available.</li>
* <li>ZonalResourceInaccessible: The resource is unavailable in the current zone.</li>
* <li>LimitExceeded: The resource is unavailable because the maximum number of resources that other accounts can share with you exceeds the upper limit.</li>
* <li>Unavailable: The resource is unavailable.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder resourceStatus(String resourceStatus) {
this.resourceStatus = resourceStatus;
return this;
}
/**
* <p>The cause of the association failure.</p>
*
* <strong>example:</strong>
* <p>The reason for the association failure.</p>
*/
public Builder resourceStatusMessage(String resourceStatusMessage) {
this.resourceStatusMessage = resourceStatusMessage;
return this;
}
/**
* <p>The type of the shared resource.</p>
* <p>For more information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</p>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The time when the association of the shared resource was updated.</p>
*
* <strong>example:</strong>
* <p>2020-12-07T07:39:02.921Z</p>
*/
public Builder updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
public SharedResources build() {
return new SharedResources(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListSharedTargetsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListSharedTargetsRequest} extends {@link RequestModel}
*
* <p>ListSharedTargetsRequest</p>
*/
public class ListSharedTargetsRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@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("ResourceArn")
private String resourceArn;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwner")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceOwner;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareIds")
private java.util.List<String> resourceShareIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Targets")
private java.util.List<String> targets;
private ListSharedTargetsRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.resourceArn = builder.resourceArn;
this.resourceId = builder.resourceId;
this.resourceOwner = builder.resourceOwner;
this.resourceShareIds = builder.resourceShareIds;
this.resourceType = builder.resourceType;
this.targets = builder.targets;
}
public static Builder builder() {
return new Builder();
}
public static ListSharedTargetsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return resourceArn
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceOwner
*/
public String getResourceOwner() {
return this.resourceOwner;
}
/**
* @return resourceShareIds
*/
public java.util.List<String> getResourceShareIds() {
return this.resourceShareIds;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return targets
*/
public java.util.List<String> getTargets() {
return this.targets;
}
public static final class Builder extends Request.Builder<ListSharedTargetsRequest, Builder> {
private String regionId;
private Integer maxResults;
private String nextToken;
private String resourceArn;
private String resourceId;
private String resourceOwner;
private java.util.List<String> resourceShareIds;
private String resourceType;
private java.util.List<String> targets;
private Builder() {
super();
}
private Builder(ListSharedTargetsRequest request) {
super(request);
this.regionId = request.regionId;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.resourceArn = request.resourceArn;
this.resourceId = request.resourceId;
this.resourceOwner = request.resourceOwner;
this.resourceShareIds = request.resourceShareIds;
this.resourceType = request.resourceType;
this.targets = request.targets;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The maximum number of entries to return for a single request.</p>
* <p>Valid values: 1 to 100. Default value: 20.</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. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of <code>NextToken</code>.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* ResourceArn.
*/
public Builder resourceArn(String resourceArn) {
this.putQueryParameter("ResourceArn", resourceArn);
this.resourceArn = resourceArn;
return this;
}
/**
* <p>The ID of the shared resource.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1upw03qyz8n7us9****</p>
*/
public Builder resourceId(String resourceId) {
this.putQueryParameter("ResourceId", resourceId);
this.resourceId = resourceId;
return this;
}
/**
* <p>The owner of the resource share.</p>
* <ul>
* <li>Self: your account. If you set the value to Self, the principals that are associated with your resource shares are queried.</li>
* <li>OtherAccounts: another account. If you set the value to OtherAccounts, the resource shares with which your account is associated and the owners of the resource shares are queried.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Self</p>
*/
public Builder resourceOwner(String resourceOwner) {
this.putQueryParameter("ResourceOwner", resourceOwner);
this.resourceOwner = resourceOwner;
return this;
}
/**
* <p>The ID of a resource share.</p>
* <p>Valid values of N: 1 to 5. This indicates that a maximum of five resource shares can be specified at a time.</p>
*
* <strong>example:</strong>
* <p>rs-6GRmdD3X****</p>
*/
public Builder resourceShareIds(java.util.List<String> resourceShareIds) {
this.putQueryParameter("ResourceShareIds", resourceShareIds);
this.resourceShareIds = resourceShareIds;
return this;
}
/**
* <p>The type of the shared resources.</p>
* <p>For more information about the types of resources that can be shared, see <a href="https://help.aliyun.com/document_detail/450526.html">Services that work with Resource Sharing</a>.</p>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* <p>The information about the principals.</p>
*
* <strong>example:</strong>
* <p>114240524784****</p>
*/
public Builder targets(java.util.List<String> targets) {
this.putQueryParameter("Targets", targets);
this.targets = targets;
return this;
}
@Override
public ListSharedTargetsRequest build() {
return new ListSharedTargetsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListSharedTargetsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListSharedTargetsResponse} extends {@link TeaModel}
*
* <p>ListSharedTargetsResponse</p>
*/
public class ListSharedTargetsResponse 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 ListSharedTargetsResponseBody body;
private ListSharedTargetsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListSharedTargetsResponse 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 ListSharedTargetsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListSharedTargetsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListSharedTargetsResponseBody body);
@Override
ListSharedTargetsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListSharedTargetsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListSharedTargetsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListSharedTargetsResponse 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(ListSharedTargetsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListSharedTargetsResponse build() {
return new ListSharedTargetsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListSharedTargetsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListSharedTargetsResponseBody} extends {@link TeaModel}
*
* <p>ListSharedTargetsResponseBody</p>
*/
public class ListSharedTargetsResponseBody 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("SharedTargets")
private java.util.List<SharedTargets> sharedTargets;
private ListSharedTargetsResponseBody(Builder builder) {
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.sharedTargets = builder.sharedTargets;
}
public static Builder builder() {
return new Builder();
}
public static ListSharedTargetsResponseBody 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 sharedTargets
*/
public java.util.List<SharedTargets> getSharedTargets() {
return this.sharedTargets;
}
public static final class Builder {
private String nextToken;
private String requestId;
private java.util.List<SharedTargets> sharedTargets;
private Builder() {
}
private Builder(ListSharedTargetsResponseBody model) {
this.nextToken = model.nextToken;
this.requestId = model.requestId;
this.sharedTargets = model.sharedTargets;
}
/**
* <p>The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of <code>NextToken</code>.</p>
*
* <strong>example:</strong>
* <p>TGlzdFJlc291cm****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>04677DCA-7C33-464B-8811-1B1DA3C3D197</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information of the principals.</p>
*/
public Builder sharedTargets(java.util.List<SharedTargets> sharedTargets) {
this.sharedTargets = sharedTargets;
return this;
}
public ListSharedTargetsResponseBody build() {
return new ListSharedTargetsResponseBody(this);
}
}
/**
*
* {@link ListSharedTargetsResponseBody} extends {@link TeaModel}
*
* <p>ListSharedTargetsResponseBody</p>
*/
public static class SharedTargets extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("External")
private Boolean external;
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
private String resourceShareId;
@com.aliyun.core.annotation.NameInMap("TargetId")
private String targetId;
@com.aliyun.core.annotation.NameInMap("TargetProperty")
private String targetProperty;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private String updateTime;
private SharedTargets(Builder builder) {
this.createTime = builder.createTime;
this.external = builder.external;
this.resourceShareId = builder.resourceShareId;
this.targetId = builder.targetId;
this.targetProperty = builder.targetProperty;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static SharedTargets create() {
return builder().build();
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return external
*/
public Boolean getExternal() {
return this.external;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
/**
* @return targetId
*/
public String getTargetId() {
return this.targetId;
}
/**
* @return targetProperty
*/
public String getTargetProperty() {
return this.targetProperty;
}
/**
* @return updateTime
*/
public String getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private String createTime;
private Boolean external;
private String resourceShareId;
private String targetId;
private String targetProperty;
private String updateTime;
private Builder() {
}
private Builder(SharedTargets model) {
this.createTime = model.createTime;
this.external = model.external;
this.resourceShareId = model.resourceShareId;
this.targetId = model.targetId;
this.targetProperty = model.targetProperty;
this.updateTime = model.updateTime;
}
/**
* <p>The time when the principal was associated with the resource share.</p>
*
* <strong>example:</strong>
* <p>2020-12-07T09:16:59.905Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>Indicates whether the principal is outside the resource directory. Valid values:</p>
* <ul>
* <li>true</li>
* <li>false</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder external(Boolean external) {
this.external = external;
return this;
}
/**
* <p>The ID of the resource share.</p>
*
* <strong>example:</strong>
* <p>rs-6GRmdD3X****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.resourceShareId = resourceShareId;
return this;
}
/**
* <p>The ID of the principal or resource owner.</p>
* <ul>
* <li>If the value of <code>ResourceOwner</code> is <code>Self</code>, the value of this parameter is the ID of a principal.</li>
* <li>If the value of <code>ResourceOwner</code> is <code>OtherAccounts</code>, the value of this parameter is the ID of a resource owner.</li>
* </ul>
*
* <strong>example:</strong>
* <p>114240524784****</p>
*/
public Builder targetId(String targetId) {
this.targetId = targetId;
return this;
}
/**
* <p>The properties of the principal, such as the time range within which the resource is shared.</p>
* <blockquote>
* <p> This parameter is returned only if the principal is an Alibaba Cloud service.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>{
* "timeRange":{
* "timeRangeType":"timeRange",
* "beginAtTime":"00:00",
* "timezone":"UTC+8",
* "endAtTime":"19:59"
* }
* }</p>
*/
public Builder targetProperty(String targetProperty) {
this.targetProperty = targetProperty;
return this;
}
/**
* <p>The time when the association of the principal was updated.</p>
*
* <strong>example:</strong>
* <p>2020-12-07T09:16:59.905Z</p>
*/
public Builder updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
public SharedTargets build() {
return new SharedTargets(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListTagResourcesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListTagResourcesRequest} extends {@link RequestModel}
*
* <p>ListTagResourcesRequest</p>
*/
public class ListTagResourcesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceId")
private java.util.List<String> resourceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private ListTagResourcesRequest(Builder builder) {
super(builder);
this.nextToken = builder.nextToken;
this.regionId = builder.regionId;
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static ListTagResourcesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceId
*/
public java.util.List<String> getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder<ListTagResourcesRequest, Builder> {
private String nextToken;
private String regionId;
private java.util.List<String> resourceId;
private String resourceType;
private java.util.List<Tag> tag;
private Builder() {
super();
}
private Builder(ListTagResourcesRequest request) {
super(request);
this.nextToken = request.nextToken;
this.regionId = request.regionId;
this.resourceId = request.resourceId;
this.resourceType = request.resourceType;
this.tag = request.tag;
}
/**
* <p>The <code>token</code> that is used to initiate the next request if the response of the current request is truncated. You can use the token to initiate another request and obtain the remaining records.</p>
*
* <strong>example:</strong>
* <p>caeba0bbb2be03f84eb48b699f0a****</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* <p>The region ID of the resource shares.</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 share.</p>
* <p>You can specify up to 20 resource shares.</p>
*/
public Builder resourceId(java.util.List<String> resourceId) {
this.putQueryParameter("ResourceId", resourceId);
this.resourceId = resourceId;
return this;
}
/**
* <p>The resource type.</p>
* <p>Set the value to <code>ResourceShare</code>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ResourceShare</p>
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* <p>The tags.</p>
* <p>This parameter specifies a filter condition for the query. You can specify up to 20 tags.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public ListTagResourcesRequest build() {
return new ListTagResourcesRequest(this);
}
}
/**
*
* {@link ListTagResourcesRequest} extends {@link TeaModel}
*
* <p>ListTagResourcesRequest</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key.</p>
* <blockquote>
* <p> The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with <code>acs:</code> or <code>aliyun</code>. The tag key cannot contain <code>http://</code> or <code>https://</code>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>k1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value.</p>
* <blockquote>
* <p> The tag value can be up to 128 characters in length and cannot start with <code>acs:</code>. The tag value cannot contain <code>http://</code> or <code>https://</code>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>v1</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListTagResourcesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
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-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/ListTagResourcesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListTagResourcesResponseBody} extends {@link TeaModel}
*
* <p>ListTagResourcesResponseBody</p>
*/
public class ListTagResourcesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TagResources")
private TagResources tagResources;
private ListTagResourcesResponseBody(Builder builder) {
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.tagResources = builder.tagResources;
}
public static Builder builder() {
return new Builder();
}
public static ListTagResourcesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return tagResources
*/
public TagResources getTagResources() {
return this.tagResources;
}
public static final class Builder {
private String nextToken;
private String requestId;
private TagResources tagResources;
private Builder() {
}
private Builder(ListTagResourcesResponseBody model) {
this.nextToken = model.nextToken;
this.requestId = model.requestId;
this.tagResources = model.tagResources;
}
/**
* <p>The <code>token</code> that is used to initiate the next request if the response of the current request is truncated. You can use the token to initiate another request and obtain the remaining records.</p>
*
* <strong>example:</strong>
* <p>caeba0bbb2be03f84eb48b699f0a****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>8054B059-6B36-53BF-AA45-B8C9A0ED05AB</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tagResources(TagResources tagResources) {
this.tagResources = tagResources;
return this;
}
public ListTagResourcesResponseBody build() {
return new ListTagResourcesResponseBody(this);
}
}
/**
*
* {@link ListTagResourcesResponseBody} extends {@link TeaModel}
*
* <p>ListTagResourcesResponseBody</p>
*/
public static class TagResource extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("TagKey")
private String tagKey;
@com.aliyun.core.annotation.NameInMap("TagValue")
private String tagValue;
private TagResource(Builder builder) {
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.tagKey = builder.tagKey;
this.tagValue = builder.tagValue;
}
public static Builder builder() {
return new Builder();
}
public static TagResource create() {
return builder().build();
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return tagKey
*/
public String getTagKey() {
return this.tagKey;
}
/**
* @return tagValue
*/
public String getTagValue() {
return this.tagValue;
}
public static final class Builder {
private String resourceId;
private String resourceType;
private String tagKey;
private String tagValue;
private Builder() {
}
private Builder(TagResource model) {
this.resourceId = model.resourceId;
this.resourceType = model.resourceType;
this.tagKey = model.tagKey;
this.tagValue = model.tagValue;
}
/**
* <p>The ID of the resource share.</p>
*
* <strong>example:</strong>
* <p>rs-PqysnzIj****</p>
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The resource type.</p>
* <p>The value can be only <code>ResourceShare</code>.</p>
*
* <strong>example:</strong>
* <p>ResourceShare</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>k1</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>v1</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public TagResource build() {
return new TagResource(this);
}
}
}
/**
*
* {@link ListTagResourcesResponseBody} extends {@link TeaModel}
*
* <p>ListTagResourcesResponseBody</p>
*/
public static class TagResources extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TagResource")
private java.util.List<TagResource> tagResource;
private TagResources(Builder builder) {
this.tagResource = builder.tagResource;
}
public static Builder builder() {
return new Builder();
}
public static TagResources create() {
return builder().build();
}
/**
* @return tagResource
*/
public java.util.List<TagResource> getTagResource() {
return this.tagResource;
}
public static final class Builder {
private java.util.List<TagResource> tagResource;
private Builder() {
}
private Builder(TagResources model) {
this.tagResource = model.tagResource;
}
/**
* TagResource.
*/
public Builder tagResource(java.util.List<TagResource> tagResource) {
this.tagResource = tagResource;
return this;
}
public TagResources build() {
return new TagResources(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/RejectResourceShareInvitationRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link RejectResourceShareInvitationRequest} extends {@link RequestModel}
*
* <p>RejectResourceShareInvitationRequest</p>
*/
public class RejectResourceShareInvitationRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareInvitationId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareInvitationId;
private RejectResourceShareInvitationRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.resourceShareInvitationId = builder.resourceShareInvitationId;
}
public static Builder builder() {
return new Builder();
}
public static RejectResourceShareInvitationRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceShareInvitationId
*/
public String getResourceShareInvitationId() {
return this.resourceShareInvitationId;
}
public static final class Builder extends Request.Builder<RejectResourceShareInvitationRequest, Builder> {
private String regionId;
private String resourceShareInvitationId;
private Builder() {
super();
}
private Builder(RejectResourceShareInvitationRequest request) {
super(request);
this.regionId = request.regionId;
this.resourceShareInvitationId = request.resourceShareInvitationId;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource sharing invitation.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/450564.html">ListResourceShareInvitations</a> operation to obtain the ID of a resource sharing invitation.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>i-yyTWbkjHArYh****</p>
*/
public Builder resourceShareInvitationId(String resourceShareInvitationId) {
this.putQueryParameter("ResourceShareInvitationId", resourceShareInvitationId);
this.resourceShareInvitationId = resourceShareInvitationId;
return this;
}
@Override
public RejectResourceShareInvitationRequest build() {
return new RejectResourceShareInvitationRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/RejectResourceShareInvitationResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link RejectResourceShareInvitationResponse} extends {@link TeaModel}
*
* <p>RejectResourceShareInvitationResponse</p>
*/
public class RejectResourceShareInvitationResponse 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 RejectResourceShareInvitationResponseBody body;
private RejectResourceShareInvitationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static RejectResourceShareInvitationResponse 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 RejectResourceShareInvitationResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<RejectResourceShareInvitationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(RejectResourceShareInvitationResponseBody body);
@Override
RejectResourceShareInvitationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<RejectResourceShareInvitationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private RejectResourceShareInvitationResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(RejectResourceShareInvitationResponse 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(RejectResourceShareInvitationResponseBody body) {
this.body = body;
return this;
}
@Override
public RejectResourceShareInvitationResponse build() {
return new RejectResourceShareInvitationResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/RejectResourceShareInvitationResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link RejectResourceShareInvitationResponseBody} extends {@link TeaModel}
*
* <p>RejectResourceShareInvitationResponseBody</p>
*/
public class RejectResourceShareInvitationResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceShareInvitation")
private ResourceShareInvitation resourceShareInvitation;
private RejectResourceShareInvitationResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.resourceShareInvitation = builder.resourceShareInvitation;
}
public static Builder builder() {
return new Builder();
}
public static RejectResourceShareInvitationResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceShareInvitation
*/
public ResourceShareInvitation getResourceShareInvitation() {
return this.resourceShareInvitation;
}
public static final class Builder {
private String requestId;
private ResourceShareInvitation resourceShareInvitation;
private Builder() {
}
private Builder(RejectResourceShareInvitationResponseBody model) {
this.requestId = model.requestId;
this.resourceShareInvitation = model.resourceShareInvitation;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>E446D6DE-BFC8-5F37-A494-33D7B118147D</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information of the resource sharing invitation.</p>
*/
public Builder resourceShareInvitation(ResourceShareInvitation resourceShareInvitation) {
this.resourceShareInvitation = resourceShareInvitation;
return this;
}
public RejectResourceShareInvitationResponseBody build() {
return new RejectResourceShareInvitationResponseBody(this);
}
}
/**
*
* {@link RejectResourceShareInvitationResponseBody} extends {@link TeaModel}
*
* <p>RejectResourceShareInvitationResponseBody</p>
*/
public static class ResourceShareInvitation extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
@com.aliyun.core.annotation.Validation(required = true)
private String createTime;
@com.aliyun.core.annotation.NameInMap("ReceiverAccountId")
@com.aliyun.core.annotation.Validation(required = true)
private String receiverAccountId;
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareId;
@com.aliyun.core.annotation.NameInMap("ResourceShareInvitationId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareInvitationId;
@com.aliyun.core.annotation.NameInMap("ResourceShareName")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareName;
@com.aliyun.core.annotation.NameInMap("SenderAccountId")
@com.aliyun.core.annotation.Validation(required = true)
private String senderAccountId;
@com.aliyun.core.annotation.NameInMap("Status")
@com.aliyun.core.annotation.Validation(required = true)
private String status;
private ResourceShareInvitation(Builder builder) {
this.createTime = builder.createTime;
this.receiverAccountId = builder.receiverAccountId;
this.resourceShareId = builder.resourceShareId;
this.resourceShareInvitationId = builder.resourceShareInvitationId;
this.resourceShareName = builder.resourceShareName;
this.senderAccountId = builder.senderAccountId;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static ResourceShareInvitation create() {
return builder().build();
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return receiverAccountId
*/
public String getReceiverAccountId() {
return this.receiverAccountId;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
/**
* @return resourceShareInvitationId
*/
public String getResourceShareInvitationId() {
return this.resourceShareInvitationId;
}
/**
* @return resourceShareName
*/
public String getResourceShareName() {
return this.resourceShareName;
}
/**
* @return senderAccountId
*/
public String getSenderAccountId() {
return this.senderAccountId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String createTime;
private String receiverAccountId;
private String resourceShareId;
private String resourceShareInvitationId;
private String resourceShareName;
private String senderAccountId;
private String status;
private Builder() {
}
private Builder(ResourceShareInvitation model) {
this.createTime = model.createTime;
this.receiverAccountId = model.receiverAccountId;
this.resourceShareId = model.resourceShareId;
this.resourceShareInvitationId = model.resourceShareInvitationId;
this.resourceShareName = model.resourceShareName;
this.senderAccountId = model.senderAccountId;
this.status = model.status;
}
/**
* <p>The time when the invitation was created. The time is displayed in UTC.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2022-09-02T07:07:30.809Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The Alibaba Cloud account ID of the invitee.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>134254031178****</p>
*/
public Builder receiverAccountId(String receiverAccountId) {
this.receiverAccountId = receiverAccountId;
return this;
}
/**
* <p>The ID of the resource share.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rs-JoA1Ayjm****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.resourceShareId = resourceShareId;
return this;
}
/**
* <p>The ID of the invitation.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>i-yyTWbkjHArYh****</p>
*/
public Builder resourceShareInvitationId(String resourceShareInvitationId) {
this.resourceShareInvitationId = resourceShareInvitationId;
return this;
}
/**
* <p>The name of the resource share.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>example</p>
*/
public Builder resourceShareName(String resourceShareName) {
this.resourceShareName = resourceShareName;
return this;
}
/**
* <p>The Alibaba Cloud account ID of the inviter.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>151266687691****</p>
*/
public Builder senderAccountId(String senderAccountId) {
this.senderAccountId = senderAccountId;
return this;
}
/**
* <p>The status of the invitation. Valid values:</p>
* <ul>
* <li>Pending: The invitation is waiting for confirmation.</li>
* <li>Accepted: The invitation is accepted.</li>
* <li>Cancelled: The invitation is canceled.</li>
* <li>Rejected: The invitation is rejected.</li>
* <li>Expired: The invitation has expired.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Rejected</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public ResourceShareInvitation build() {
return new ResourceShareInvitation(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/TagResourcesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link TagResourcesRequest} extends {@link RequestModel}
*
* <p>TagResourcesRequest</p>
*/
public class TagResourcesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceId")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<String> resourceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<Tag> tag;
private TagResourcesRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static TagResourcesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceId
*/
public java.util.List<String> getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder<TagResourcesRequest, Builder> {
private String regionId;
private java.util.List<String> resourceId;
private String resourceType;
private java.util.List<Tag> tag;
private Builder() {
super();
}
private Builder(TagResourcesRequest request) {
super(request);
this.regionId = request.regionId;
this.resourceId = request.resourceId;
this.resourceType = request.resourceType;
this.tag = request.tag;
}
/**
* <p>The region ID of the resource share.</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 share.</p>
* <p>This parameter is required.</p>
*/
public Builder resourceId(java.util.List<String> resourceId) {
this.putQueryParameter("ResourceId", resourceId);
this.resourceId = resourceId;
return this;
}
/**
* <p>The resource type.</p>
* <p>Set the value to <code>ResourceShare</code>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ResourceShare</p>
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* <p>The tags.</p>
* <p>You can specify up to 20 tags.</p>
* <p>This parameter is required.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public TagResourcesRequest build() {
return new TagResourcesRequest(this);
}
}
/**
*
* {@link TagResourcesRequest} extends {@link TeaModel}
*
* <p>TagResourcesRequest</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
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.</p>
* <blockquote>
* <p> The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with <code>acs:</code> or <code>aliyun</code>. The tag key cannot contain <code>http://</code> or <code>https://</code>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>k1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value.</p>
* <blockquote>
* <p> The tag value can be up to 128 characters in length and cannot start with <code>acs:</code>. The tag value cannot contain <code>http://</code> or <code>https://</code>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>v1</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/TagResourcesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
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-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/TagResourcesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
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>E7747EDF-EDDC-5B38-9B6A-6392B9C92B1C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public TagResourcesResponseBody build() {
return new TagResourcesResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/UntagResourcesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UntagResourcesRequest} extends {@link RequestModel}
*
* <p>UntagResourcesRequest</p>
*/
public class UntagResourcesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("All")
private Boolean all;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceId")
private java.util.List<String> resourceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TagKey")
private java.util.List<String> tagKey;
private UntagResourcesRequest(Builder builder) {
super(builder);
this.all = builder.all;
this.regionId = builder.regionId;
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.tagKey = builder.tagKey;
}
public static Builder builder() {
return new Builder();
}
public static UntagResourcesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return all
*/
public Boolean getAll() {
return this.all;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceId
*/
public java.util.List<String> getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return tagKey
*/
public java.util.List<String> getTagKey() {
return this.tagKey;
}
public static final class Builder extends Request.Builder<UntagResourcesRequest, Builder> {
private Boolean all;
private String regionId;
private java.util.List<String> resourceId;
private String resourceType;
private java.util.List<String> tagKey;
private Builder() {
super();
}
private Builder(UntagResourcesRequest request) {
super(request);
this.all = request.all;
this.regionId = request.regionId;
this.resourceId = request.resourceId;
this.resourceType = request.resourceType;
this.tagKey = request.tagKey;
}
/**
* <p>Specifies whether to remove all tags. Valid values:</p>
* <ul>
* <li>false (default)</li>
* <li>true</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder all(Boolean all) {
this.putQueryParameter("All", all);
this.all = all;
return this;
}
/**
* <p>The region ID of the resource shares.</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 share.</p>
* <p>You can specify up to 20 resource shares.</p>
*/
public Builder resourceId(java.util.List<String> resourceId) {
this.putQueryParameter("ResourceId", resourceId);
this.resourceId = resourceId;
return this;
}
/**
* <p>The resource type.</p>
* <p>Set the value to <code>ResourceShare</code>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ResourceShare</p>
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* <p>The tag key.</p>
* <p>You can specify up to 20 tag keys.</p>
* <blockquote>
* <p> If you set the <code>All</code> parameter to <code>true</code>, you do not need to configure this parameter.</p>
* </blockquote>
*/
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-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/UntagResourcesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
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-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/UntagResourcesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
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>E7747EDF-EDDC-5B38-9B6A-6392B9C92B1C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public UntagResourcesResponseBody build() {
return new UntagResourcesResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/UpdateResourceShareRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateResourceShareRequest} extends {@link RequestModel}
*
* <p>UpdateResourceShareRequest</p>
*/
public class UpdateResourceShareRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AllowExternalTargets")
private Boolean allowExternalTargets;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceShareName")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceShareName;
private UpdateResourceShareRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.allowExternalTargets = builder.allowExternalTargets;
this.resourceShareId = builder.resourceShareId;
this.resourceShareName = builder.resourceShareName;
}
public static Builder builder() {
return new Builder();
}
public static UpdateResourceShareRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return allowExternalTargets
*/
public Boolean getAllowExternalTargets() {
return this.allowExternalTargets;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
/**
* @return resourceShareName
*/
public String getResourceShareName() {
return this.resourceShareName;
}
public static final class Builder extends Request.Builder<UpdateResourceShareRequest, Builder> {
private String regionId;
private Boolean allowExternalTargets;
private String resourceShareId;
private String resourceShareName;
private Builder() {
super();
}
private Builder(UpdateResourceShareRequest request) {
super(request);
this.regionId = request.regionId;
this.allowExternalTargets = request.allowExternalTargets;
this.resourceShareId = request.resourceShareId;
this.resourceShareName = request.resourceShareName;
}
/**
* <p>This parameter is required.</p>
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>Specifies whether resources in the resource share can be shared with accounts outside the resource directory. Valid values:</p>
* <ul>
* <li>false: Resources in the resource share can be shared only with accounts in the resource directory.</li>
* <li>true: Resources in the resource share can be shared with both accounts in the resource directory and accounts outside the resource directory.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder allowExternalTargets(Boolean allowExternalTargets) {
this.putQueryParameter("AllowExternalTargets", allowExternalTargets);
this.allowExternalTargets = allowExternalTargets;
return this;
}
/**
* <p>The ID of the resource share.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rs-qSkW1HBY****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.putQueryParameter("ResourceShareId", resourceShareId);
this.resourceShareId = resourceShareId;
return this;
}
/**
* <p>The new name of the resource share.</p>
* <p>The name must be 1 to 50 characters in length.</p>
* <p>The name can contain letters, digits, periods (.), underscores (_), and hyphens (-).</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>new</p>
*/
public Builder resourceShareName(String resourceShareName) {
this.putQueryParameter("ResourceShareName", resourceShareName);
this.resourceShareName = resourceShareName;
return this;
}
@Override
public UpdateResourceShareRequest build() {
return new UpdateResourceShareRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/UpdateResourceShareResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateResourceShareResponse} extends {@link TeaModel}
*
* <p>UpdateResourceShareResponse</p>
*/
public class UpdateResourceShareResponse 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 UpdateResourceShareResponseBody body;
private UpdateResourceShareResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static UpdateResourceShareResponse 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 UpdateResourceShareResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<UpdateResourceShareResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(UpdateResourceShareResponseBody body);
@Override
UpdateResourceShareResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<UpdateResourceShareResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private UpdateResourceShareResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(UpdateResourceShareResponse 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(UpdateResourceShareResponseBody body) {
this.body = body;
return this;
}
@Override
public UpdateResourceShareResponse build() {
return new UpdateResourceShareResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110 | java-sources/com/aliyun/alibabacloud-resourcesharing20200110/1.0.8/com/aliyun/sdk/service/resourcesharing20200110/models/UpdateResourceShareResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.resourcesharing20200110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link UpdateResourceShareResponseBody} extends {@link TeaModel}
*
* <p>UpdateResourceShareResponseBody</p>
*/
public class UpdateResourceShareResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceShare")
private ResourceShare resourceShare;
private UpdateResourceShareResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.resourceShare = builder.resourceShare;
}
public static Builder builder() {
return new Builder();
}
public static UpdateResourceShareResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceShare
*/
public ResourceShare getResourceShare() {
return this.resourceShare;
}
public static final class Builder {
private String requestId;
private ResourceShare resourceShare;
private Builder() {
}
private Builder(UpdateResourceShareResponseBody model) {
this.requestId = model.requestId;
this.resourceShare = model.resourceShare;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>2860A3A4-D8C1-4EF4-954E-84A3945E26E5</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information of the resource share.</p>
*/
public Builder resourceShare(ResourceShare resourceShare) {
this.resourceShare = resourceShare;
return this;
}
public UpdateResourceShareResponseBody build() {
return new UpdateResourceShareResponseBody(this);
}
}
/**
*
* {@link UpdateResourceShareResponseBody} extends {@link TeaModel}
*
* <p>UpdateResourceShareResponseBody</p>
*/
public static class ResourceShare extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllowExternalTargets")
private Boolean allowExternalTargets;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("ResourceShareId")
private String resourceShareId;
@com.aliyun.core.annotation.NameInMap("ResourceShareName")
private String resourceShareName;
@com.aliyun.core.annotation.NameInMap("ResourceShareOwner")
private String resourceShareOwner;
@com.aliyun.core.annotation.NameInMap("ResourceShareStatus")
private String resourceShareStatus;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private String updateTime;
private ResourceShare(Builder builder) {
this.allowExternalTargets = builder.allowExternalTargets;
this.createTime = builder.createTime;
this.resourceShareId = builder.resourceShareId;
this.resourceShareName = builder.resourceShareName;
this.resourceShareOwner = builder.resourceShareOwner;
this.resourceShareStatus = builder.resourceShareStatus;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static ResourceShare create() {
return builder().build();
}
/**
* @return allowExternalTargets
*/
public Boolean getAllowExternalTargets() {
return this.allowExternalTargets;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return resourceShareId
*/
public String getResourceShareId() {
return this.resourceShareId;
}
/**
* @return resourceShareName
*/
public String getResourceShareName() {
return this.resourceShareName;
}
/**
* @return resourceShareOwner
*/
public String getResourceShareOwner() {
return this.resourceShareOwner;
}
/**
* @return resourceShareStatus
*/
public String getResourceShareStatus() {
return this.resourceShareStatus;
}
/**
* @return updateTime
*/
public String getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private Boolean allowExternalTargets;
private String createTime;
private String resourceShareId;
private String resourceShareName;
private String resourceShareOwner;
private String resourceShareStatus;
private String updateTime;
private Builder() {
}
private Builder(ResourceShare model) {
this.allowExternalTargets = model.allowExternalTargets;
this.createTime = model.createTime;
this.resourceShareId = model.resourceShareId;
this.resourceShareName = model.resourceShareName;
this.resourceShareOwner = model.resourceShareOwner;
this.resourceShareStatus = model.resourceShareStatus;
this.updateTime = model.updateTime;
}
/**
* <p>Indicates whether resources in the resource share can be shared with accounts outside the resource directory. Valid values:</p>
* <ul>
* <li>false: Resources in the resource share can be shared only with accounts in the resource directory.</li>
* <li>true: Resources in the resource share can be shared with both accounts in the resource directory and accounts outside the resource directory.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder allowExternalTargets(Boolean allowExternalTargets) {
this.allowExternalTargets = allowExternalTargets;
return this;
}
/**
* <p>The time when the resource share was created.</p>
*
* <strong>example:</strong>
* <p>2020-12-03T08:02:22.413Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the resource share.</p>
*
* <strong>example:</strong>
* <p>rs-qSkW1HBY****</p>
*/
public Builder resourceShareId(String resourceShareId) {
this.resourceShareId = resourceShareId;
return this;
}
/**
* <p>The name of the resource share.</p>
*
* <strong>example:</strong>
* <p>new</p>
*/
public Builder resourceShareName(String resourceShareName) {
this.resourceShareName = resourceShareName;
return this;
}
/**
* <p>The owner of the resource share.</p>
*
* <strong>example:</strong>
* <p>151266687691****</p>
*/
public Builder resourceShareOwner(String resourceShareOwner) {
this.resourceShareOwner = resourceShareOwner;
return this;
}
/**
* <p>The status of the resource share. Valid values:</p>
* <ul>
* <li>Active: The resource share is enabled.</li>
* <li>Pending: The resource share is associated with one or more resource sharing invitations that are waiting for confirmation.</li>
* <li>Deleting: The resource share is being deleted.</li>
* <li>Deleted: The resource share is deleted.</li>
* </ul>
* <blockquote>
* <p> The system deletes the records of resource shares in the Deleted state within 48 hours to 96 hours after you delete the resource shares.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Active</p>
*/
public Builder resourceShareStatus(String resourceShareStatus) {
this.resourceShareStatus = resourceShareStatus;
return this;
}
/**
* <p>The time when the resource share was updated.</p>
*
* <strong>example:</strong>
* <p>2020-12-04T08:55:25.382Z</p>
*/
public Builder updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
public ResourceShare build() {
return new ResourceShare(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/AsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417;
import com.aliyun.core.utils.SdkAutoCloseable;
import com.aliyun.sdk.service.retailadvqa20230417.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();
}
CompletableFuture<AddMemberBasicInfoResponse> addMemberBasicInfo(AddMemberBasicInfoRequest request);
CompletableFuture<BatchSaveOrderPopResponse> batchSaveOrderPop(BatchSaveOrderPopRequest request);
CompletableFuture<CalculateMemberLevelResponse> calculateMemberLevel(CalculateMemberLevelRequest request);
CompletableFuture<EditMemberBasicInfoResponse> editMemberBasicInfo(EditMemberBasicInfoRequest request);
CompletableFuture<MemberAccountDetailPageQueryResponse> memberAccountDetailPageQuery(MemberAccountDetailPageQueryRequest request);
CompletableFuture<MemberPointChangeResponse> memberPointChange(MemberPointChangeRequest request);
CompletableFuture<QueryMemberBasicInfoResponse> queryMemberBasicInfo(QueryMemberBasicInfoRequest request);
CompletableFuture<SyncCardInfoResponse> syncCardInfo(SyncCardInfoRequest request);
CompletableFuture<SyncMemberBehaviorInfoResponse> syncMemberBehaviorInfo(SyncMemberBehaviorInfoRequest request);
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/DefaultAsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417;
import com.aliyun.core.http.*;
import com.aliyun.sdk.service.retailadvqa20230417.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 = "retailadvqa";
this.version = "2023-04-17";
this.endpointRule = "";
this.endpointMap = new java.util.HashMap<>();
this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version);
}
@Override
public void close() {
this.handler.close();
}
@Override
public CompletableFuture<AddMemberBasicInfoResponse> addMemberBasicInfo(AddMemberBasicInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AddMemberBasicInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AddMemberBasicInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<AddMemberBasicInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
@Override
public CompletableFuture<BatchSaveOrderPopResponse> batchSaveOrderPop(BatchSaveOrderPopRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("BatchSaveOrderPop").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(BatchSaveOrderPopResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<BatchSaveOrderPopResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
@Override
public CompletableFuture<CalculateMemberLevelResponse> calculateMemberLevel(CalculateMemberLevelRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CalculateMemberLevel").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CalculateMemberLevelResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CalculateMemberLevelResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
@Override
public CompletableFuture<EditMemberBasicInfoResponse> editMemberBasicInfo(EditMemberBasicInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("EditMemberBasicInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(EditMemberBasicInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<EditMemberBasicInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
@Override
public CompletableFuture<MemberAccountDetailPageQueryResponse> memberAccountDetailPageQuery(MemberAccountDetailPageQueryRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("MemberAccountDetailPageQuery").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(MemberAccountDetailPageQueryResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<MemberAccountDetailPageQueryResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
@Override
public CompletableFuture<MemberPointChangeResponse> memberPointChange(MemberPointChangeRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("MemberPointChange").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(MemberPointChangeResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<MemberPointChangeResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
@Override
public CompletableFuture<QueryMemberBasicInfoResponse> queryMemberBasicInfo(QueryMemberBasicInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("QueryMemberBasicInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(QueryMemberBasicInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<QueryMemberBasicInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
@Override
public CompletableFuture<SyncCardInfoResponse> syncCardInfo(SyncCardInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SyncCardInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SyncCardInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SyncCardInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
@Override
public CompletableFuture<SyncMemberBehaviorInfoResponse> syncMemberBehaviorInfo(SyncMemberBehaviorInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SyncMemberBehaviorInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SyncMemberBehaviorInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SyncMemberBehaviorInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/DefaultAsyncClientBuilder.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417;
import com.aliyun.sdk.gateway.pop.BaseClientBuilder;
public final class DefaultAsyncClientBuilder extends BaseClientBuilder<DefaultAsyncClientBuilder, AsyncClient> {
@Override
protected String serviceName() {
return "retailadvqa20230417";
}
@Override
protected final AsyncClient buildClient() {
return new DefaultAsyncClient(super.applyClientConfiguration());
}
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/models/AddMemberBasicInfoRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link AddMemberBasicInfoRequest} extends {@link RequestModel}
*
* <p>AddMemberBasicInfoRequest</p>
*/
public class AddMemberBasicInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("body")
private AddMemberBasicInfoRequestBody body;
private AddMemberBasicInfoRequest(Builder builder) {
super(builder);
this.body = builder.body;
}
public static Builder builder() {
return new Builder();
}
public static AddMemberBasicInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return body
*/
public AddMemberBasicInfoRequestBody getBody() {
return this.body;
}
public static final class Builder extends Request.Builder<AddMemberBasicInfoRequest, Builder> {
private AddMemberBasicInfoRequestBody body;
private Builder() {
super();
}
private Builder(AddMemberBasicInfoRequest request) {
super(request);
this.body = request.body;
}
/**
* body.
*/
public Builder body(AddMemberBasicInfoRequestBody body) {
String bodyShrink = shrink(body, "body", "json");
this.putQueryParameter("body", bodyShrink);
this.body = body;
return this;
}
@Override
public AddMemberBasicInfoRequest build() {
return new AddMemberBasicInfoRequest(this);
}
}
public static class Channels extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("ChannelCode")
@com.aliyun.core.annotation.Validation(required = true)
private String channelCode;
@com.aliyun.core.annotation.NameInMap("ChannelOpenId")
private String channelOpenId;
@com.aliyun.core.annotation.NameInMap("ChannelUnionId")
private String channelUnionId;
@com.aliyun.core.annotation.NameInMap("Scene")
private String scene;
private Channels(Builder builder) {
this.appId = builder.appId;
this.channelCode = builder.channelCode;
this.channelOpenId = builder.channelOpenId;
this.channelUnionId = builder.channelUnionId;
this.scene = builder.scene;
}
public static Builder builder() {
return new Builder();
}
public static Channels create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return channelCode
*/
public String getChannelCode() {
return this.channelCode;
}
/**
* @return channelOpenId
*/
public String getChannelOpenId() {
return this.channelOpenId;
}
/**
* @return channelUnionId
*/
public String getChannelUnionId() {
return this.channelUnionId;
}
/**
* @return scene
*/
public String getScene() {
return this.scene;
}
public static final class Builder {
private String appId;
private String channelCode;
private String channelOpenId;
private String channelUnionId;
private String scene;
/**
* AppId.
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* ChannelCode.
*/
public Builder channelCode(String channelCode) {
this.channelCode = channelCode;
return this;
}
/**
* ChannelOpenId.
*/
public Builder channelOpenId(String channelOpenId) {
this.channelOpenId = channelOpenId;
return this;
}
/**
* ChannelUnionId.
*/
public Builder channelUnionId(String channelUnionId) {
this.channelUnionId = channelUnionId;
return this;
}
/**
* Scene.
*/
public Builder scene(String scene) {
this.scene = scene;
return this;
}
public Channels build() {
return new Channels(this);
}
}
}
public static class AddMemberBasicInfoRequestBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Area")
private String area;
@com.aliyun.core.annotation.NameInMap("Avatar")
private String avatar;
@com.aliyun.core.annotation.NameInMap("Birthday")
private String birthday;
@com.aliyun.core.annotation.NameInMap("Channels")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List < Channels> channels;
@com.aliyun.core.annotation.NameInMap("City")
private String city;
@com.aliyun.core.annotation.NameInMap("Country")
private String country;
@com.aliyun.core.annotation.NameInMap("Email")
private String email;
@com.aliyun.core.annotation.NameInMap("Extra")
private String extra;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private String gmtCreate;
@com.aliyun.core.annotation.NameInMap("MemberName")
private String memberName;
@com.aliyun.core.annotation.NameInMap("MemberNickName")
private String memberNickName;
@com.aliyun.core.annotation.NameInMap("MixMobile")
private String mixMobile;
@com.aliyun.core.annotation.NameInMap("Mobile")
private String mobile;
@com.aliyun.core.annotation.NameInMap("OpenMerchantId")
@com.aliyun.core.annotation.Validation(required = true)
private String openMerchantId;
@com.aliyun.core.annotation.NameInMap("PlatFormType")
@com.aliyun.core.annotation.Validation(required = true)
private String platFormType;
@com.aliyun.core.annotation.NameInMap("Province")
private String province;
@com.aliyun.core.annotation.NameInMap("Sex")
private String sex;
private AddMemberBasicInfoRequestBody(Builder builder) {
this.area = builder.area;
this.avatar = builder.avatar;
this.birthday = builder.birthday;
this.channels = builder.channels;
this.city = builder.city;
this.country = builder.country;
this.email = builder.email;
this.extra = builder.extra;
this.gmtCreate = builder.gmtCreate;
this.memberName = builder.memberName;
this.memberNickName = builder.memberNickName;
this.mixMobile = builder.mixMobile;
this.mobile = builder.mobile;
this.openMerchantId = builder.openMerchantId;
this.platFormType = builder.platFormType;
this.province = builder.province;
this.sex = builder.sex;
}
public static Builder builder() {
return new Builder();
}
public static AddMemberBasicInfoRequestBody create() {
return builder().build();
}
/**
* @return area
*/
public String getArea() {
return this.area;
}
/**
* @return avatar
*/
public String getAvatar() {
return this.avatar;
}
/**
* @return birthday
*/
public String getBirthday() {
return this.birthday;
}
/**
* @return channels
*/
public java.util.List < Channels> getChannels() {
return this.channels;
}
/**
* @return city
*/
public String getCity() {
return this.city;
}
/**
* @return country
*/
public String getCountry() {
return this.country;
}
/**
* @return email
*/
public String getEmail() {
return this.email;
}
/**
* @return extra
*/
public String getExtra() {
return this.extra;
}
/**
* @return gmtCreate
*/
public String getGmtCreate() {
return this.gmtCreate;
}
/**
* @return memberName
*/
public String getMemberName() {
return this.memberName;
}
/**
* @return memberNickName
*/
public String getMemberNickName() {
return this.memberNickName;
}
/**
* @return mixMobile
*/
public String getMixMobile() {
return this.mixMobile;
}
/**
* @return mobile
*/
public String getMobile() {
return this.mobile;
}
/**
* @return openMerchantId
*/
public String getOpenMerchantId() {
return this.openMerchantId;
}
/**
* @return platFormType
*/
public String getPlatFormType() {
return this.platFormType;
}
/**
* @return province
*/
public String getProvince() {
return this.province;
}
/**
* @return sex
*/
public String getSex() {
return this.sex;
}
public static final class Builder {
private String area;
private String avatar;
private String birthday;
private java.util.List < Channels> channels;
private String city;
private String country;
private String email;
private String extra;
private String gmtCreate;
private String memberName;
private String memberNickName;
private String mixMobile;
private String mobile;
private String openMerchantId;
private String platFormType;
private String province;
private String sex;
/**
* Area.
*/
public Builder area(String area) {
this.area = area;
return this;
}
/**
* Avatar.
*/
public Builder avatar(String avatar) {
this.avatar = avatar;
return this;
}
/**
* Birthday.
*/
public Builder birthday(String birthday) {
this.birthday = birthday;
return this;
}
/**
* Channels.
*/
public Builder channels(java.util.List < Channels> channels) {
this.channels = channels;
return this;
}
/**
* City.
*/
public Builder city(String city) {
this.city = city;
return this;
}
/**
* Country.
*/
public Builder country(String country) {
this.country = country;
return this;
}
/**
* Email.
*/
public Builder email(String email) {
this.email = email;
return this;
}
/**
* Extra.
*/
public Builder extra(String extra) {
this.extra = extra;
return this;
}
/**
* GmtCreate.
*/
public Builder gmtCreate(String gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* MemberName.
*/
public Builder memberName(String memberName) {
this.memberName = memberName;
return this;
}
/**
* MemberNickName.
*/
public Builder memberNickName(String memberNickName) {
this.memberNickName = memberNickName;
return this;
}
/**
* MixMobile.
*/
public Builder mixMobile(String mixMobile) {
this.mixMobile = mixMobile;
return this;
}
/**
* Mobile.
*/
public Builder mobile(String mobile) {
this.mobile = mobile;
return this;
}
/**
* OpenMerchantId.
*/
public Builder openMerchantId(String openMerchantId) {
this.openMerchantId = openMerchantId;
return this;
}
/**
* PlatFormType.
*/
public Builder platFormType(String platFormType) {
this.platFormType = platFormType;
return this;
}
/**
* Province.
*/
public Builder province(String province) {
this.province = province;
return this;
}
/**
* Sex.
*/
public Builder sex(String sex) {
this.sex = sex;
return this;
}
public AddMemberBasicInfoRequestBody build() {
return new AddMemberBasicInfoRequestBody(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/models/AddMemberBasicInfoResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link AddMemberBasicInfoResponse} extends {@link TeaModel}
*
* <p>AddMemberBasicInfoResponse</p>
*/
public class AddMemberBasicInfoResponse 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 AddMemberBasicInfoResponseBody body;
private AddMemberBasicInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AddMemberBasicInfoResponse 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 AddMemberBasicInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AddMemberBasicInfoResponse, Builder> {
Builder headers(java.util.Map < String, String > headers);
Builder statusCode(Integer statusCode);
Builder body(AddMemberBasicInfoResponseBody body);
@Override
AddMemberBasicInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AddMemberBasicInfoResponse, Builder>
implements Builder {
private java.util.Map < String, String > headers;
private Integer statusCode;
private AddMemberBasicInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AddMemberBasicInfoResponse 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(AddMemberBasicInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public AddMemberBasicInfoResponse build() {
return new AddMemberBasicInfoResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/models/AddMemberBasicInfoResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link AddMemberBasicInfoResponseBody} extends {@link TeaModel}
*
* <p>AddMemberBasicInfoResponseBody</p>
*/
public class AddMemberBasicInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("OuterMemberId")
private String outerMemberId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private AddMemberBasicInfoResponseBody(Builder builder) {
this.errorCode = builder.errorCode;
this.errorMessage = builder.errorMessage;
this.outerMemberId = builder.outerMemberId;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static AddMemberBasicInfoResponseBody create() {
return builder().build();
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return outerMemberId
*/
public String getOuterMemberId() {
return this.outerMemberId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String errorCode;
private String errorMessage;
private String outerMemberId;
private String requestId;
private Boolean success;
/**
* ErrorCode.
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* ErrorMessage.
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* OuterMemberId.
*/
public Builder outerMemberId(String outerMemberId) {
this.outerMemberId = outerMemberId;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public AddMemberBasicInfoResponseBody build() {
return new AddMemberBasicInfoResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/models/BatchSaveOrderPopRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link BatchSaveOrderPopRequest} extends {@link RequestModel}
*
* <p>BatchSaveOrderPopRequest</p>
*/
public class BatchSaveOrderPopRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Orders")
private java.util.List < Orders> orders;
private BatchSaveOrderPopRequest(Builder builder) {
super(builder);
this.orders = builder.orders;
}
public static Builder builder() {
return new Builder();
}
public static BatchSaveOrderPopRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return orders
*/
public java.util.List < Orders> getOrders() {
return this.orders;
}
public static final class Builder extends Request.Builder<BatchSaveOrderPopRequest, Builder> {
private java.util.List < Orders> orders;
private Builder() {
super();
}
private Builder(BatchSaveOrderPopRequest request) {
super(request);
this.orders = request.orders;
}
/**
* Orders.
*/
public Builder orders(java.util.List < Orders> orders) {
String ordersShrink = shrink(orders, "Orders", "json");
this.putQueryParameter("Orders", ordersShrink);
this.orders = orders;
return this;
}
@Override
public BatchSaveOrderPopRequest build() {
return new BatchSaveOrderPopRequest(this);
}
}
public static class SubOrderModelList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Feature")
private String feature;
@com.aliyun.core.annotation.NameInMap("OpenSubOrderId")
@com.aliyun.core.annotation.Validation(required = true)
private String openSubOrderId;
@com.aliyun.core.annotation.NameInMap("OrderPayment")
@com.aliyun.core.annotation.Validation(required = true)
private String orderPayment;
@com.aliyun.core.annotation.NameInMap("OutProductId")
private String outProductId;
@com.aliyun.core.annotation.NameInMap("ProductAmount")
@com.aliyun.core.annotation.Validation(required = true)
private String productAmount;
@com.aliyun.core.annotation.NameInMap("ProductId")
private String productId;
@com.aliyun.core.annotation.NameInMap("ProductName")
private String productName;
@com.aliyun.core.annotation.NameInMap("RefundStatus")
private String refundStatus;
@com.aliyun.core.annotation.NameInMap("Status")
@com.aliyun.core.annotation.Validation(required = true)
private String status;
@com.aliyun.core.annotation.NameInMap("TotalFee")
@com.aliyun.core.annotation.Validation(required = true)
private String totalFee;
private SubOrderModelList(Builder builder) {
this.feature = builder.feature;
this.openSubOrderId = builder.openSubOrderId;
this.orderPayment = builder.orderPayment;
this.outProductId = builder.outProductId;
this.productAmount = builder.productAmount;
this.productId = builder.productId;
this.productName = builder.productName;
this.refundStatus = builder.refundStatus;
this.status = builder.status;
this.totalFee = builder.totalFee;
}
public static Builder builder() {
return new Builder();
}
public static SubOrderModelList create() {
return builder().build();
}
/**
* @return feature
*/
public String getFeature() {
return this.feature;
}
/**
* @return openSubOrderId
*/
public String getOpenSubOrderId() {
return this.openSubOrderId;
}
/**
* @return orderPayment
*/
public String getOrderPayment() {
return this.orderPayment;
}
/**
* @return outProductId
*/
public String getOutProductId() {
return this.outProductId;
}
/**
* @return productAmount
*/
public String getProductAmount() {
return this.productAmount;
}
/**
* @return productId
*/
public String getProductId() {
return this.productId;
}
/**
* @return productName
*/
public String getProductName() {
return this.productName;
}
/**
* @return refundStatus
*/
public String getRefundStatus() {
return this.refundStatus;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return totalFee
*/
public String getTotalFee() {
return this.totalFee;
}
public static final class Builder {
private String feature;
private String openSubOrderId;
private String orderPayment;
private String outProductId;
private String productAmount;
private String productId;
private String productName;
private String refundStatus;
private String status;
private String totalFee;
/**
* Feature.
*/
public Builder feature(String feature) {
this.feature = feature;
return this;
}
/**
* OpenSubOrderId.
*/
public Builder openSubOrderId(String openSubOrderId) {
this.openSubOrderId = openSubOrderId;
return this;
}
/**
* OrderPayment.
*/
public Builder orderPayment(String orderPayment) {
this.orderPayment = orderPayment;
return this;
}
/**
* OutProductId.
*/
public Builder outProductId(String outProductId) {
this.outProductId = outProductId;
return this;
}
/**
* ProductAmount.
*/
public Builder productAmount(String productAmount) {
this.productAmount = productAmount;
return this;
}
/**
* ProductId.
*/
public Builder productId(String productId) {
this.productId = productId;
return this;
}
/**
* ProductName.
*/
public Builder productName(String productName) {
this.productName = productName;
return this;
}
/**
* RefundStatus.
*/
public Builder refundStatus(String refundStatus) {
this.refundStatus = refundStatus;
return this;
}
/**
* Status.
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* TotalFee.
*/
public Builder totalFee(String totalFee) {
this.totalFee = totalFee;
return this;
}
public SubOrderModelList build() {
return new SubOrderModelList(this);
}
}
}
public static class Orders extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ChannelCode")
@com.aliyun.core.annotation.Validation(required = true)
private String channelCode;
@com.aliyun.core.annotation.NameInMap("ChannelOpenId")
@com.aliyun.core.annotation.Validation(required = true)
private String channelOpenId;
@com.aliyun.core.annotation.NameInMap("EndTime")
private String endTime;
@com.aliyun.core.annotation.NameInMap("Feature")
private String feature;
@com.aliyun.core.annotation.NameInMap("OpenMerchantId")
@com.aliyun.core.annotation.Validation(required = true)
private String openMerchantId;
@com.aliyun.core.annotation.NameInMap("OpenOrderId")
@com.aliyun.core.annotation.Validation(required = true)
private String openOrderId;
@com.aliyun.core.annotation.NameInMap("OrderCreateTime")
@com.aliyun.core.annotation.Validation(required = true)
private String orderCreateTime;
@com.aliyun.core.annotation.NameInMap("OrderPayment")
@com.aliyun.core.annotation.Validation(required = true)
private String orderPayment;
@com.aliyun.core.annotation.NameInMap("PayTime")
private String payTime;
@com.aliyun.core.annotation.NameInMap("PlatformType")
@com.aliyun.core.annotation.Validation(required = true)
private String platformType;
@com.aliyun.core.annotation.NameInMap("ShopId")
@com.aliyun.core.annotation.Validation(required = true)
private String shopId;
@com.aliyun.core.annotation.NameInMap("Status")
@com.aliyun.core.annotation.Validation(required = true)
private String status;
@com.aliyun.core.annotation.NameInMap("SubOrderModelList")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List < SubOrderModelList> subOrderModelList;
@com.aliyun.core.annotation.NameInMap("TotalFee")
@com.aliyun.core.annotation.Validation(required = true)
private String totalFee;
@com.aliyun.core.annotation.NameInMap("buyerOpenUid")
private String buyerOpenUid;
private Orders(Builder builder) {
this.channelCode = builder.channelCode;
this.channelOpenId = builder.channelOpenId;
this.endTime = builder.endTime;
this.feature = builder.feature;
this.openMerchantId = builder.openMerchantId;
this.openOrderId = builder.openOrderId;
this.orderCreateTime = builder.orderCreateTime;
this.orderPayment = builder.orderPayment;
this.payTime = builder.payTime;
this.platformType = builder.platformType;
this.shopId = builder.shopId;
this.status = builder.status;
this.subOrderModelList = builder.subOrderModelList;
this.totalFee = builder.totalFee;
this.buyerOpenUid = builder.buyerOpenUid;
}
public static Builder builder() {
return new Builder();
}
public static Orders create() {
return builder().build();
}
/**
* @return channelCode
*/
public String getChannelCode() {
return this.channelCode;
}
/**
* @return channelOpenId
*/
public String getChannelOpenId() {
return this.channelOpenId;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return feature
*/
public String getFeature() {
return this.feature;
}
/**
* @return openMerchantId
*/
public String getOpenMerchantId() {
return this.openMerchantId;
}
/**
* @return openOrderId
*/
public String getOpenOrderId() {
return this.openOrderId;
}
/**
* @return orderCreateTime
*/
public String getOrderCreateTime() {
return this.orderCreateTime;
}
/**
* @return orderPayment
*/
public String getOrderPayment() {
return this.orderPayment;
}
/**
* @return payTime
*/
public String getPayTime() {
return this.payTime;
}
/**
* @return platformType
*/
public String getPlatformType() {
return this.platformType;
}
/**
* @return shopId
*/
public String getShopId() {
return this.shopId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return subOrderModelList
*/
public java.util.List < SubOrderModelList> getSubOrderModelList() {
return this.subOrderModelList;
}
/**
* @return totalFee
*/
public String getTotalFee() {
return this.totalFee;
}
/**
* @return buyerOpenUid
*/
public String getBuyerOpenUid() {
return this.buyerOpenUid;
}
public static final class Builder {
private String channelCode;
private String channelOpenId;
private String endTime;
private String feature;
private String openMerchantId;
private String openOrderId;
private String orderCreateTime;
private String orderPayment;
private String payTime;
private String platformType;
private String shopId;
private String status;
private java.util.List < SubOrderModelList> subOrderModelList;
private String totalFee;
private String buyerOpenUid;
/**
* ChannelCode.
*/
public Builder channelCode(String channelCode) {
this.channelCode = channelCode;
return this;
}
/**
* ChannelOpenId.
*/
public Builder channelOpenId(String channelOpenId) {
this.channelOpenId = channelOpenId;
return this;
}
/**
* EndTime.
*/
public Builder endTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* Feature.
*/
public Builder feature(String feature) {
this.feature = feature;
return this;
}
/**
* OpenMerchantId.
*/
public Builder openMerchantId(String openMerchantId) {
this.openMerchantId = openMerchantId;
return this;
}
/**
* OpenOrderId.
*/
public Builder openOrderId(String openOrderId) {
this.openOrderId = openOrderId;
return this;
}
/**
* OrderCreateTime.
*/
public Builder orderCreateTime(String orderCreateTime) {
this.orderCreateTime = orderCreateTime;
return this;
}
/**
* OrderPayment.
*/
public Builder orderPayment(String orderPayment) {
this.orderPayment = orderPayment;
return this;
}
/**
* PayTime.
*/
public Builder payTime(String payTime) {
this.payTime = payTime;
return this;
}
/**
* PlatformType.
*/
public Builder platformType(String platformType) {
this.platformType = platformType;
return this;
}
/**
* ShopId.
*/
public Builder shopId(String shopId) {
this.shopId = shopId;
return this;
}
/**
* Status.
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* SubOrderModelList.
*/
public Builder subOrderModelList(java.util.List < SubOrderModelList> subOrderModelList) {
this.subOrderModelList = subOrderModelList;
return this;
}
/**
* TotalFee.
*/
public Builder totalFee(String totalFee) {
this.totalFee = totalFee;
return this;
}
/**
* buyerOpenUid.
*/
public Builder buyerOpenUid(String buyerOpenUid) {
this.buyerOpenUid = buyerOpenUid;
return this;
}
public Orders build() {
return new Orders(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/models/BatchSaveOrderPopResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link BatchSaveOrderPopResponse} extends {@link TeaModel}
*
* <p>BatchSaveOrderPopResponse</p>
*/
public class BatchSaveOrderPopResponse 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 BatchSaveOrderPopResponseBody body;
private BatchSaveOrderPopResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static BatchSaveOrderPopResponse 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 BatchSaveOrderPopResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<BatchSaveOrderPopResponse, Builder> {
Builder headers(java.util.Map < String, String > headers);
Builder statusCode(Integer statusCode);
Builder body(BatchSaveOrderPopResponseBody body);
@Override
BatchSaveOrderPopResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<BatchSaveOrderPopResponse, Builder>
implements Builder {
private java.util.Map < String, String > headers;
private Integer statusCode;
private BatchSaveOrderPopResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(BatchSaveOrderPopResponse 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(BatchSaveOrderPopResponseBody body) {
this.body = body;
return this;
}
@Override
public BatchSaveOrderPopResponse build() {
return new BatchSaveOrderPopResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/models/BatchSaveOrderPopResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link BatchSaveOrderPopResponseBody} extends {@link TeaModel}
*
* <p>BatchSaveOrderPopResponseBody</p>
*/
public class BatchSaveOrderPopResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private String httpStatusCode;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private BatchSaveOrderPopResponseBody(Builder builder) {
this.errorCode = builder.errorCode;
this.errorMessage = builder.errorMessage;
this.httpStatusCode = builder.httpStatusCode;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static BatchSaveOrderPopResponseBody create() {
return builder().build();
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return httpStatusCode
*/
public String getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String errorCode;
private String errorMessage;
private String httpStatusCode;
private String requestId;
private Boolean success;
/**
* ErrorCode.
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* ErrorMessage.
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* HttpStatusCode.
*/
public Builder httpStatusCode(String httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* Id of the request
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public BatchSaveOrderPopResponseBody build() {
return new BatchSaveOrderPopResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/models/CalculateMemberLevelRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link CalculateMemberLevelRequest} extends {@link RequestModel}
*
* <p>CalculateMemberLevelRequest</p>
*/
public class CalculateMemberLevelRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Body")
private CalculateMemberLevelRequestBody body;
private CalculateMemberLevelRequest(Builder builder) {
super(builder);
this.body = builder.body;
}
public static Builder builder() {
return new Builder();
}
public static CalculateMemberLevelRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return body
*/
public CalculateMemberLevelRequestBody getBody() {
return this.body;
}
public static final class Builder extends Request.Builder<CalculateMemberLevelRequest, Builder> {
private CalculateMemberLevelRequestBody body;
private Builder() {
super();
}
private Builder(CalculateMemberLevelRequest request) {
super(request);
this.body = request.body;
}
/**
* Body.
*/
public Builder body(CalculateMemberLevelRequestBody body) {
String bodyShrink = shrink(body, "Body", "json");
this.putQueryParameter("Body", bodyShrink);
this.body = body;
return this;
}
@Override
public CalculateMemberLevelRequest build() {
return new CalculateMemberLevelRequest(this);
}
}
public static class CalculateMemberLevelRequestBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentGrade")
@com.aliyun.core.annotation.Validation(required = true)
private Integer currentGrade;
@com.aliyun.core.annotation.NameInMap("CurrentGradeName")
@com.aliyun.core.annotation.Validation(required = true)
private String currentGradeName;
@com.aliyun.core.annotation.NameInMap("MemberId")
@com.aliyun.core.annotation.Validation(required = true)
private String memberId;
@com.aliyun.core.annotation.NameInMap("OpenMerchantId")
@com.aliyun.core.annotation.Validation(required = true)
private String openMerchantId;
@com.aliyun.core.annotation.NameInMap("PlatformType")
@com.aliyun.core.annotation.Validation(required = true)
private String platformType;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("SerialNo")
@com.aliyun.core.annotation.Validation(required = true)
private String serialNo;
private CalculateMemberLevelRequestBody(Builder builder) {
this.currentGrade = builder.currentGrade;
this.currentGradeName = builder.currentGradeName;
this.memberId = builder.memberId;
this.openMerchantId = builder.openMerchantId;
this.platformType = builder.platformType;
this.score = builder.score;
this.serialNo = builder.serialNo;
}
public static Builder builder() {
return new Builder();
}
public static CalculateMemberLevelRequestBody create() {
return builder().build();
}
/**
* @return currentGrade
*/
public Integer getCurrentGrade() {
return this.currentGrade;
}
/**
* @return currentGradeName
*/
public String getCurrentGradeName() {
return this.currentGradeName;
}
/**
* @return memberId
*/
public String getMemberId() {
return this.memberId;
}
/**
* @return openMerchantId
*/
public String getOpenMerchantId() {
return this.openMerchantId;
}
/**
* @return platformType
*/
public String getPlatformType() {
return this.platformType;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return serialNo
*/
public String getSerialNo() {
return this.serialNo;
}
public static final class Builder {
private Integer currentGrade;
private String currentGradeName;
private String memberId;
private String openMerchantId;
private String platformType;
private String score;
private String serialNo;
/**
* CurrentGrade.
*/
public Builder currentGrade(Integer currentGrade) {
this.currentGrade = currentGrade;
return this;
}
/**
* CurrentGradeName.
*/
public Builder currentGradeName(String currentGradeName) {
this.currentGradeName = currentGradeName;
return this;
}
/**
* MemberId.
*/
public Builder memberId(String memberId) {
this.memberId = memberId;
return this;
}
/**
* OpenMerchantId.
*/
public Builder openMerchantId(String openMerchantId) {
this.openMerchantId = openMerchantId;
return this;
}
/**
* PlatformType.
*/
public Builder platformType(String platformType) {
this.platformType = platformType;
return this;
}
/**
* Score.
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* SerialNo.
*/
public Builder serialNo(String serialNo) {
this.serialNo = serialNo;
return this;
}
public CalculateMemberLevelRequestBody build() {
return new CalculateMemberLevelRequestBody(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/models/CalculateMemberLevelResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link CalculateMemberLevelResponse} extends {@link TeaModel}
*
* <p>CalculateMemberLevelResponse</p>
*/
public class CalculateMemberLevelResponse 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 CalculateMemberLevelResponseBody body;
private CalculateMemberLevelResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CalculateMemberLevelResponse 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 CalculateMemberLevelResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CalculateMemberLevelResponse, Builder> {
Builder headers(java.util.Map < String, String > headers);
Builder statusCode(Integer statusCode);
Builder body(CalculateMemberLevelResponseBody body);
@Override
CalculateMemberLevelResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CalculateMemberLevelResponse, Builder>
implements Builder {
private java.util.Map < String, String > headers;
private Integer statusCode;
private CalculateMemberLevelResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CalculateMemberLevelResponse 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(CalculateMemberLevelResponseBody body) {
this.body = body;
return this;
}
@Override
public CalculateMemberLevelResponse build() {
return new CalculateMemberLevelResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/models/CalculateMemberLevelResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link CalculateMemberLevelResponseBody} extends {@link TeaModel}
*
* <p>CalculateMemberLevelResponseBody</p>
*/
public class CalculateMemberLevelResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("Grade")
private String grade;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private String httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("OuterMemberId")
private String outerMemberId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private CalculateMemberLevelResponseBody(Builder builder) {
this.errorCode = builder.errorCode;
this.errorMessage = builder.errorMessage;
this.grade = builder.grade;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.outerMemberId = builder.outerMemberId;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static CalculateMemberLevelResponseBody create() {
return builder().build();
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return grade
*/
public String getGrade() {
return this.grade;
}
/**
* @return httpStatusCode
*/
public String getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return outerMemberId
*/
public String getOuterMemberId() {
return this.outerMemberId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String errorCode;
private String errorMessage;
private String grade;
private String httpStatusCode;
private String message;
private String outerMemberId;
private String requestId;
private Boolean success;
/**
* ErrorCode.
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* ErrorMessage.
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* Grade.
*/
public Builder grade(String grade) {
this.grade = grade;
return this;
}
/**
* HttpStatusCode.
*/
public Builder httpStatusCode(String httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* Message.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* OuterMemberId.
*/
public Builder outerMemberId(String outerMemberId) {
this.outerMemberId = outerMemberId;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public CalculateMemberLevelResponseBody build() {
return new CalculateMemberLevelResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/models/EditMemberBasicInfoRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link EditMemberBasicInfoRequest} extends {@link RequestModel}
*
* <p>EditMemberBasicInfoRequest</p>
*/
public class EditMemberBasicInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Body")
private EditMemberBasicInfoRequestBody body;
private EditMemberBasicInfoRequest(Builder builder) {
super(builder);
this.body = builder.body;
}
public static Builder builder() {
return new Builder();
}
public static EditMemberBasicInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return body
*/
public EditMemberBasicInfoRequestBody getBody() {
return this.body;
}
public static final class Builder extends Request.Builder<EditMemberBasicInfoRequest, Builder> {
private EditMemberBasicInfoRequestBody body;
private Builder() {
super();
}
private Builder(EditMemberBasicInfoRequest request) {
super(request);
this.body = request.body;
}
/**
* Body.
*/
public Builder body(EditMemberBasicInfoRequestBody body) {
String bodyShrink = shrink(body, "Body", "json");
this.putQueryParameter("Body", bodyShrink);
this.body = body;
return this;
}
@Override
public EditMemberBasicInfoRequest build() {
return new EditMemberBasicInfoRequest(this);
}
}
public static class EditMemberBasicInfoRequestBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Area")
private String area;
@com.aliyun.core.annotation.NameInMap("Avatar")
private String avatar;
@com.aliyun.core.annotation.NameInMap("Birthday")
private String birthday;
@com.aliyun.core.annotation.NameInMap("City")
private String city;
@com.aliyun.core.annotation.NameInMap("Country")
private String country;
@com.aliyun.core.annotation.NameInMap("Email")
private String email;
@com.aliyun.core.annotation.NameInMap("MemberName")
private String memberName;
@com.aliyun.core.annotation.NameInMap("MemberNickName")
private String memberNickName;
@com.aliyun.core.annotation.NameInMap("Mobile")
@com.aliyun.core.annotation.Validation(required = true)
private String mobile;
@com.aliyun.core.annotation.NameInMap("OpenMerchantId")
@com.aliyun.core.annotation.Validation(required = true)
private String openMerchantId;
@com.aliyun.core.annotation.NameInMap("PlatformType")
@com.aliyun.core.annotation.Validation(required = true)
private String platformType;
@com.aliyun.core.annotation.NameInMap("Province")
private String province;
@com.aliyun.core.annotation.NameInMap("Sex")
private String sex;
private EditMemberBasicInfoRequestBody(Builder builder) {
this.area = builder.area;
this.avatar = builder.avatar;
this.birthday = builder.birthday;
this.city = builder.city;
this.country = builder.country;
this.email = builder.email;
this.memberName = builder.memberName;
this.memberNickName = builder.memberNickName;
this.mobile = builder.mobile;
this.openMerchantId = builder.openMerchantId;
this.platformType = builder.platformType;
this.province = builder.province;
this.sex = builder.sex;
}
public static Builder builder() {
return new Builder();
}
public static EditMemberBasicInfoRequestBody create() {
return builder().build();
}
/**
* @return area
*/
public String getArea() {
return this.area;
}
/**
* @return avatar
*/
public String getAvatar() {
return this.avatar;
}
/**
* @return birthday
*/
public String getBirthday() {
return this.birthday;
}
/**
* @return city
*/
public String getCity() {
return this.city;
}
/**
* @return country
*/
public String getCountry() {
return this.country;
}
/**
* @return email
*/
public String getEmail() {
return this.email;
}
/**
* @return memberName
*/
public String getMemberName() {
return this.memberName;
}
/**
* @return memberNickName
*/
public String getMemberNickName() {
return this.memberNickName;
}
/**
* @return mobile
*/
public String getMobile() {
return this.mobile;
}
/**
* @return openMerchantId
*/
public String getOpenMerchantId() {
return this.openMerchantId;
}
/**
* @return platformType
*/
public String getPlatformType() {
return this.platformType;
}
/**
* @return province
*/
public String getProvince() {
return this.province;
}
/**
* @return sex
*/
public String getSex() {
return this.sex;
}
public static final class Builder {
private String area;
private String avatar;
private String birthday;
private String city;
private String country;
private String email;
private String memberName;
private String memberNickName;
private String mobile;
private String openMerchantId;
private String platformType;
private String province;
private String sex;
/**
* Area.
*/
public Builder area(String area) {
this.area = area;
return this;
}
/**
* Avatar.
*/
public Builder avatar(String avatar) {
this.avatar = avatar;
return this;
}
/**
* Birthday.
*/
public Builder birthday(String birthday) {
this.birthday = birthday;
return this;
}
/**
* City.
*/
public Builder city(String city) {
this.city = city;
return this;
}
/**
* Country.
*/
public Builder country(String country) {
this.country = country;
return this;
}
/**
* Email.
*/
public Builder email(String email) {
this.email = email;
return this;
}
/**
* MemberName.
*/
public Builder memberName(String memberName) {
this.memberName = memberName;
return this;
}
/**
* MemberNickName.
*/
public Builder memberNickName(String memberNickName) {
this.memberNickName = memberNickName;
return this;
}
/**
* Mobile.
*/
public Builder mobile(String mobile) {
this.mobile = mobile;
return this;
}
/**
* OpenMerchantId.
*/
public Builder openMerchantId(String openMerchantId) {
this.openMerchantId = openMerchantId;
return this;
}
/**
* PlatformType.
*/
public Builder platformType(String platformType) {
this.platformType = platformType;
return this;
}
/**
* Province.
*/
public Builder province(String province) {
this.province = province;
return this;
}
/**
* Sex.
*/
public Builder sex(String sex) {
this.sex = sex;
return this;
}
public EditMemberBasicInfoRequestBody build() {
return new EditMemberBasicInfoRequestBody(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/models/EditMemberBasicInfoResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link EditMemberBasicInfoResponse} extends {@link TeaModel}
*
* <p>EditMemberBasicInfoResponse</p>
*/
public class EditMemberBasicInfoResponse 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 EditMemberBasicInfoResponseBody body;
private EditMemberBasicInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static EditMemberBasicInfoResponse 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 EditMemberBasicInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<EditMemberBasicInfoResponse, Builder> {
Builder headers(java.util.Map < String, String > headers);
Builder statusCode(Integer statusCode);
Builder body(EditMemberBasicInfoResponseBody body);
@Override
EditMemberBasicInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<EditMemberBasicInfoResponse, Builder>
implements Builder {
private java.util.Map < String, String > headers;
private Integer statusCode;
private EditMemberBasicInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(EditMemberBasicInfoResponse 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(EditMemberBasicInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public EditMemberBasicInfoResponse build() {
return new EditMemberBasicInfoResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417 | java-sources/com/aliyun/alibabacloud-retailadvqa20230417/1.0.0/com/aliyun/sdk/service/retailadvqa20230417/models/EditMemberBasicInfoResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.retailadvqa20230417.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link EditMemberBasicInfoResponseBody} extends {@link TeaModel}
*
* <p>EditMemberBasicInfoResponseBody</p>
*/
public class EditMemberBasicInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private String httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private EditMemberBasicInfoResponseBody(Builder builder) {
this.errorCode = builder.errorCode;
this.errorMessage = builder.errorMessage;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static EditMemberBasicInfoResponseBody create() {
return builder().build();
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return httpStatusCode
*/
public String getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String errorCode;
private String errorMessage;
private String httpStatusCode;
private String message;
private String requestId;
private Boolean success;
/**
* ErrorCode.
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* ErrorMessage.
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* HttpStatusCode.
*/
public Builder httpStatusCode(String httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* Message.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public EditMemberBasicInfoResponseBody build() {
return new EditMemberBasicInfoResponseBody(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.