@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFolderRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateFolderRequest() |
Modifier and Type | Method and Description |
---|---|
CreateFolderRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAwsAccountId()
The ID for the Amazon Web Services account where you want to create the folder.
|
String |
getFolderId()
The ID of the folder.
|
String |
getFolderType()
The type of folder.
|
String |
getName()
The name of the folder.
|
String |
getParentFolderArn()
The Amazon Resource Name (ARN) for the parent folder.
|
List<ResourcePermission> |
getPermissions()
A structure that describes the principals and the resource-level permissions of a folder.
|
String |
getSharingModel()
An optional parameter that determines the sharing scope of the folder.
|
List<Tag> |
getTags()
Tags for the folder.
|
int |
hashCode() |
void |
setAwsAccountId(String awsAccountId)
The ID for the Amazon Web Services account where you want to create the folder.
|
void |
setFolderId(String folderId)
The ID of the folder.
|
void |
setFolderType(String folderType)
The type of folder.
|
void |
setName(String name)
The name of the folder.
|
void |
setParentFolderArn(String parentFolderArn)
The Amazon Resource Name (ARN) for the parent folder.
|
void |
setPermissions(Collection<ResourcePermission> permissions)
A structure that describes the principals and the resource-level permissions of a folder.
|
void |
setSharingModel(String sharingModel)
An optional parameter that determines the sharing scope of the folder.
|
void |
setTags(Collection<Tag> tags)
Tags for the folder.
|
String |
toString()
Returns a string representation of this object.
|
CreateFolderRequest |
withAwsAccountId(String awsAccountId)
The ID for the Amazon Web Services account where you want to create the folder.
|
CreateFolderRequest |
withFolderId(String folderId)
The ID of the folder.
|
CreateFolderRequest |
withFolderType(FolderType folderType)
The type of folder.
|
CreateFolderRequest |
withFolderType(String folderType)
The type of folder.
|
CreateFolderRequest |
withName(String name)
The name of the folder.
|
CreateFolderRequest |
withParentFolderArn(String parentFolderArn)
The Amazon Resource Name (ARN) for the parent folder.
|
CreateFolderRequest |
withPermissions(Collection<ResourcePermission> permissions)
A structure that describes the principals and the resource-level permissions of a folder.
|
CreateFolderRequest |
withPermissions(ResourcePermission... permissions)
A structure that describes the principals and the resource-level permissions of a folder.
|
CreateFolderRequest |
withSharingModel(SharingModel sharingModel)
An optional parameter that determines the sharing scope of the folder.
|
CreateFolderRequest |
withSharingModel(String sharingModel)
An optional parameter that determines the sharing scope of the folder.
|
CreateFolderRequest |
withTags(Collection<Tag> tags)
Tags for the folder.
|
CreateFolderRequest |
withTags(Tag... tags)
Tags for the folder.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAwsAccountId(String awsAccountId)
The ID for the Amazon Web Services account where you want to create the folder.
awsAccountId
- The ID for the Amazon Web Services account where you want to create the folder.public String getAwsAccountId()
The ID for the Amazon Web Services account where you want to create the folder.
public CreateFolderRequest withAwsAccountId(String awsAccountId)
The ID for the Amazon Web Services account where you want to create the folder.
awsAccountId
- The ID for the Amazon Web Services account where you want to create the folder.public void setFolderId(String folderId)
The ID of the folder.
folderId
- The ID of the folder.public String getFolderId()
The ID of the folder.
public CreateFolderRequest withFolderId(String folderId)
The ID of the folder.
folderId
- The ID of the folder.public void setName(String name)
The name of the folder.
name
- The name of the folder.public String getName()
The name of the folder.
public CreateFolderRequest withName(String name)
The name of the folder.
name
- The name of the folder.public void setFolderType(String folderType)
The type of folder. By default, folderType
is SHARED
.
folderType
- The type of folder. By default, folderType
is SHARED
.FolderType
public String getFolderType()
The type of folder. By default, folderType
is SHARED
.
folderType
is SHARED
.FolderType
public CreateFolderRequest withFolderType(String folderType)
The type of folder. By default, folderType
is SHARED
.
folderType
- The type of folder. By default, folderType
is SHARED
.FolderType
public CreateFolderRequest withFolderType(FolderType folderType)
The type of folder. By default, folderType
is SHARED
.
folderType
- The type of folder. By default, folderType
is SHARED
.FolderType
public void setParentFolderArn(String parentFolderArn)
The Amazon Resource Name (ARN) for the parent folder.
ParentFolderArn
can be null. An empty parentFolderArn
creates a root-level folder.
parentFolderArn
- The Amazon Resource Name (ARN) for the parent folder.
ParentFolderArn
can be null. An empty parentFolderArn
creates a root-level
folder.
public String getParentFolderArn()
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 CreateFolderRequest withParentFolderArn(String parentFolderArn)
The Amazon Resource Name (ARN) for the parent folder.
ParentFolderArn
can be null. An empty parentFolderArn
creates a root-level folder.
parentFolderArn
- The Amazon Resource Name (ARN) for the parent folder.
ParentFolderArn
can be null. An empty parentFolderArn
creates a root-level
folder.
public List<ResourcePermission> getPermissions()
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 Permissions
.
public void setPermissions(Collection<ResourcePermission> permissions)
A structure that describes the principals and the resource-level permissions of a folder.
To specify no permissions, omit Permissions
.
permissions
- A structure that describes the principals and the resource-level permissions of a folder.
To specify no permissions, omit Permissions
.
public CreateFolderRequest withPermissions(ResourcePermission... permissions)
A structure that describes the principals and the resource-level permissions of a folder.
To specify no permissions, omit Permissions
.
NOTE: This method appends the values to the existing list (if any). Use
setPermissions(java.util.Collection)
or withPermissions(java.util.Collection)
if you want to
override the existing values.
permissions
- A structure that describes the principals and the resource-level permissions of a folder.
To specify no permissions, omit Permissions
.
public CreateFolderRequest withPermissions(Collection<ResourcePermission> permissions)
A structure that describes the principals and the resource-level permissions of a folder.
To specify no permissions, omit Permissions
.
permissions
- A structure that describes the principals and the resource-level permissions of a folder.
To specify no permissions, omit Permissions
.
public void setTags(Collection<Tag> tags)
Tags for the folder.
tags
- Tags for the folder.public CreateFolderRequest withTags(Tag... tags)
Tags for the folder.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Tags for the folder.public CreateFolderRequest withTags(Collection<Tag> tags)
Tags for the folder.
tags
- Tags for the folder.public void setSharingModel(String sharingModel)
An optional parameter that determines the sharing scope of the folder. The default value for this parameter is
ACCOUNT
.
sharingModel
- An optional parameter that determines the sharing scope of the folder. The default value for this
parameter is ACCOUNT
.SharingModel
public String getSharingModel()
An optional parameter that determines the sharing scope of the folder. The default value for this parameter is
ACCOUNT
.
ACCOUNT
.SharingModel
public CreateFolderRequest withSharingModel(String sharingModel)
An optional parameter that determines the sharing scope of the folder. The default value for this parameter is
ACCOUNT
.
sharingModel
- An optional parameter that determines the sharing scope of the folder. The default value for this
parameter is ACCOUNT
.SharingModel
public CreateFolderRequest withSharingModel(SharingModel sharingModel)
An optional parameter that determines the sharing scope of the folder. The default value for this parameter is
ACCOUNT
.
sharingModel
- An optional parameter that determines the sharing scope of the folder. The default value for this
parameter is ACCOUNT
.SharingModel
public String toString()
toString
in class Object
Object.toString()
public CreateFolderRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()