/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.quicksight.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateFolderRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID for the Amazon Web Services account where you want to create the folder. *
*/ private String awsAccountId; /** ** The ID of the folder. *
*/ private String folderId; /** ** The name of the folder. *
*/ private String name; /** *
* The type of folder. By default, folderType
is SHARED
.
*
* The Amazon Resource Name (ARN) for the parent folder. *
*
* ParentFolderArn
can be null. An empty parentFolderArn
creates a root-level folder.
*
* A structure that describes the principals and the resource-level permissions of a folder. *
*
* To specify no permissions, omit Permissions
.
*
* Tags for the folder. *
*/ private java.util.List* The ID for the Amazon Web Services account where you want to create the folder. *
* * @param awsAccountId * The ID for the Amazon Web Services account where you want to create the folder. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** ** The ID for the Amazon Web Services account where you want to create the folder. *
* * @return The ID for the Amazon Web Services account where you want to create the folder. */ public String getAwsAccountId() { return this.awsAccountId; } /** ** The ID for the Amazon Web Services account where you want to create the folder. *
* * @param awsAccountId * The ID for the Amazon Web Services account where you want to create the folder. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFolderRequest withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); return this; } /** ** The ID of the folder. *
* * @param folderId * The ID of the folder. */ public void setFolderId(String folderId) { this.folderId = folderId; } /** ** The ID of the folder. *
* * @return The ID of the folder. */ public String getFolderId() { return this.folderId; } /** ** The ID of the folder. *
* * @param folderId * The ID of the folder. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFolderRequest withFolderId(String folderId) { setFolderId(folderId); return this; } /** ** The name of the folder. *
* * @param name * The name of the folder. */ public void setName(String name) { this.name = name; } /** ** The name of the folder. *
* * @return The name of the folder. */ public String getName() { return this.name; } /** ** The name of the folder. *
* * @param name * The name of the folder. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFolderRequest withName(String name) { setName(name); return this; } /** *
* The type of folder. By default, folderType
is SHARED
.
*
folderType
is SHARED
.
* @see FolderType
*/
public void setFolderType(String folderType) {
this.folderType = folderType;
}
/**
*
* The type of folder. By default, folderType
is SHARED
.
*
folderType
is SHARED
.
* @see FolderType
*/
public String getFolderType() {
return this.folderType;
}
/**
*
* The type of folder. By default, folderType
is SHARED
.
*
folderType
is SHARED
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FolderType
*/
public CreateFolderRequest withFolderType(String folderType) {
setFolderType(folderType);
return this;
}
/**
*
* The type of folder. By default, folderType
is SHARED
.
*
folderType
is SHARED
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FolderType
*/
public CreateFolderRequest withFolderType(FolderType folderType) {
this.folderType = folderType.toString();
return this;
}
/**
* * The Amazon Resource Name (ARN) for the parent folder. *
*
* ParentFolderArn
can be null. An empty parentFolderArn
creates a root-level folder.
*
* ParentFolderArn
can be null. An empty parentFolderArn
creates a root-level
* folder.
*/
public void setParentFolderArn(String parentFolderArn) {
this.parentFolderArn = parentFolderArn;
}
/**
*
* The Amazon Resource Name (ARN) for the parent folder. *
*
* ParentFolderArn
can be null. An empty parentFolderArn
creates a root-level folder.
*
* ParentFolderArn
can be null. An empty parentFolderArn
creates a root-level
* folder.
*/
public String getParentFolderArn() {
return this.parentFolderArn;
}
/**
*
* The Amazon Resource Name (ARN) for the parent folder. *
*
* ParentFolderArn
can be null. An empty parentFolderArn
creates a root-level folder.
*
* ParentFolderArn
can be null. An empty parentFolderArn
creates a root-level
* folder.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFolderRequest withParentFolderArn(String parentFolderArn) {
setParentFolderArn(parentFolderArn);
return this;
}
/**
*
* A structure that describes the principals and the resource-level permissions of a folder. *
*
* To specify no permissions, omit Permissions
.
*
* To specify no permissions, omit
* A structure that describes the principals and the resource-level permissions of a folder.
*
* To specify no permissions, omit Permissions
.
*/
public java.util.ListPermissions
.
*
* To specify no permissions, omit
* A structure that describes the principals and the resource-level permissions of a folder.
*
* To specify no permissions, omit
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setPermissions(java.util.Collection)} or {@link #withPermissions(java.util.Collection)} if you want to
* override the existing values.
* Permissions
.
*/
public void setPermissions(java.util.CollectionPermissions
.
*
* To specify no permissions, omit
* A structure that describes the principals and the resource-level permissions of a folder.
*
* To specify no permissions, omit Permissions
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFolderRequest withPermissions(ResourcePermission... permissions) {
if (this.permissions == null) {
setPermissions(new java.util.ArrayListPermissions
.
*
* To specify no permissions, omit
* Tags for the folder.
*
* Tags for the folder.
*
* Tags for the folder.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
* Tags for the folder.
* Permissions
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFolderRequest withPermissions(java.util.Collection