@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateResourceShareRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description | 
|---|
| CreateResourceShareRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| CreateResourceShareRequest | clone()Creates a shallow clone of this object for all fields except the handler context. | 
| boolean | equals(Object obj) | 
| Boolean | getAllowExternalPrincipals()
 Indicates whether principals outside your AWS organization can be associated with a resource share. | 
| String | getClientToken()
 A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. | 
| String | getName()
 The name of the resource share. | 
| List<String> | getPermissionArns()
 The ARNs of the permissions to associate with the resource share. | 
| List<String> | getPrincipals()
 The principals to associate with the resource share. | 
| List<String> | getResourceArns()
 The Amazon Resource Names (ARN) of the resources to associate with the resource share. | 
| List<Tag> | getTags()
 One or more tags. | 
| int | hashCode() | 
| Boolean | isAllowExternalPrincipals()
 Indicates whether principals outside your AWS organization can be associated with a resource share. | 
| void | setAllowExternalPrincipals(Boolean allowExternalPrincipals)
 Indicates whether principals outside your AWS organization can be associated with a resource share. | 
| void | setClientToken(String clientToken)
 A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. | 
| void | setName(String name)
 The name of the resource share. | 
| void | setPermissionArns(Collection<String> permissionArns)
 The ARNs of the permissions to associate with the resource share. | 
| void | setPrincipals(Collection<String> principals)
 The principals to associate with the resource share. | 
| void | setResourceArns(Collection<String> resourceArns)
 The Amazon Resource Names (ARN) of the resources to associate with the resource share. | 
| void | setTags(Collection<Tag> tags)
 One or more tags. | 
| String | toString()Returns a string representation of this object. | 
| CreateResourceShareRequest | withAllowExternalPrincipals(Boolean allowExternalPrincipals)
 Indicates whether principals outside your AWS organization can be associated with a resource share. | 
| CreateResourceShareRequest | withClientToken(String clientToken)
 A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. | 
| CreateResourceShareRequest | withName(String name)
 The name of the resource share. | 
| CreateResourceShareRequest | withPermissionArns(Collection<String> permissionArns)
 The ARNs of the permissions to associate with the resource share. | 
| CreateResourceShareRequest | withPermissionArns(String... permissionArns)
 The ARNs of the permissions to associate with the resource share. | 
| CreateResourceShareRequest | withPrincipals(Collection<String> principals)
 The principals to associate with the resource share. | 
| CreateResourceShareRequest | withPrincipals(String... principals)
 The principals to associate with the resource share. | 
| CreateResourceShareRequest | withResourceArns(Collection<String> resourceArns)
 The Amazon Resource Names (ARN) of the resources to associate with the resource share. | 
| CreateResourceShareRequest | withResourceArns(String... resourceArns)
 The Amazon Resource Names (ARN) of the resources to associate with the resource share. | 
| CreateResourceShareRequest | withTags(Collection<Tag> tags)
 One or more tags. | 
| CreateResourceShareRequest | withTags(Tag... tags)
 One or more tags. | 
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, withSdkRequestTimeoutpublic void setName(String name)
The name of the resource share.
name - The name of the resource share.public String getName()
The name of the resource share.
public CreateResourceShareRequest withName(String name)
The name of the resource share.
name - The name of the resource share.public List<String> getResourceArns()
The Amazon Resource Names (ARN) of the resources to associate with the resource share.
public void setResourceArns(Collection<String> resourceArns)
The Amazon Resource Names (ARN) of the resources to associate with the resource share.
resourceArns - The Amazon Resource Names (ARN) of the resources to associate with the resource share.public CreateResourceShareRequest withResourceArns(String... resourceArns)
The Amazon Resource Names (ARN) of the resources to associate with the resource share.
 NOTE: This method appends the values to the existing list (if any). Use
 setResourceArns(java.util.Collection) or withResourceArns(java.util.Collection) if you want to
 override the existing values.
 
resourceArns - The Amazon Resource Names (ARN) of the resources to associate with the resource share.public CreateResourceShareRequest withResourceArns(Collection<String> resourceArns)
The Amazon Resource Names (ARN) of the resources to associate with the resource share.
resourceArns - The Amazon Resource Names (ARN) of the resources to associate with the resource share.public List<String> getPrincipals()
The principals to associate with the resource share. The possible values are IDs of AWS accounts, the ARN of an OU or organization from AWS Organizations.
public void setPrincipals(Collection<String> principals)
The principals to associate with the resource share. The possible values are IDs of AWS accounts, the ARN of an OU or organization from AWS Organizations.
principals - The principals to associate with the resource share. The possible values are IDs of AWS accounts, the ARN
        of an OU or organization from AWS Organizations.public CreateResourceShareRequest withPrincipals(String... principals)
The principals to associate with the resource share. The possible values are IDs of AWS accounts, the ARN of an OU or organization from AWS Organizations.
 NOTE: This method appends the values to the existing list (if any). Use
 setPrincipals(java.util.Collection) or withPrincipals(java.util.Collection) if you want to
 override the existing values.
 
principals - The principals to associate with the resource share. The possible values are IDs of AWS accounts, the ARN
        of an OU or organization from AWS Organizations.public CreateResourceShareRequest withPrincipals(Collection<String> principals)
The principals to associate with the resource share. The possible values are IDs of AWS accounts, the ARN of an OU or organization from AWS Organizations.
principals - The principals to associate with the resource share. The possible values are IDs of AWS accounts, the ARN
        of an OU or organization from AWS Organizations.public void setTags(Collection<Tag> tags)
One or more tags.
tags - One or more tags.public CreateResourceShareRequest withTags(Tag... tags)
One or more tags.
 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 - One or more tags.public CreateResourceShareRequest withTags(Collection<Tag> tags)
One or more tags.
tags - One or more tags.public void setAllowExternalPrincipals(Boolean allowExternalPrincipals)
Indicates whether principals outside your AWS organization can be associated with a resource share.
allowExternalPrincipals - Indicates whether principals outside your AWS organization can be associated with a resource share.public Boolean getAllowExternalPrincipals()
Indicates whether principals outside your AWS organization can be associated with a resource share.
public CreateResourceShareRequest withAllowExternalPrincipals(Boolean allowExternalPrincipals)
Indicates whether principals outside your AWS organization can be associated with a resource share.
allowExternalPrincipals - Indicates whether principals outside your AWS organization can be associated with a resource share.public Boolean isAllowExternalPrincipals()
Indicates whether principals outside your AWS organization can be associated with a resource share.
public void setClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.public String getClientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
public CreateResourceShareRequest withClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.public List<String> getPermissionArns()
The ARNs of the permissions to associate with the resource share. If you do not specify an ARN for the permission, AWS RAM automatically attaches the default version of the permission for each resource type.
public void setPermissionArns(Collection<String> permissionArns)
The ARNs of the permissions to associate with the resource share. If you do not specify an ARN for the permission, AWS RAM automatically attaches the default version of the permission for each resource type.
permissionArns - The ARNs of the permissions to associate with the resource share. If you do not specify an ARN for the
        permission, AWS RAM automatically attaches the default version of the permission for each resource type.public CreateResourceShareRequest withPermissionArns(String... permissionArns)
The ARNs of the permissions to associate with the resource share. If you do not specify an ARN for the permission, AWS RAM automatically attaches the default version of the permission for each resource type.
 NOTE: This method appends the values to the existing list (if any). Use
 setPermissionArns(java.util.Collection) or withPermissionArns(java.util.Collection) if you want
 to override the existing values.
 
permissionArns - The ARNs of the permissions to associate with the resource share. If you do not specify an ARN for the
        permission, AWS RAM automatically attaches the default version of the permission for each resource type.public CreateResourceShareRequest withPermissionArns(Collection<String> permissionArns)
The ARNs of the permissions to associate with the resource share. If you do not specify an ARN for the permission, AWS RAM automatically attaches the default version of the permission for each resource type.
permissionArns - The ARNs of the permissions to associate with the resource share. If you do not specify an ARN for the
        permission, AWS RAM automatically attaches the default version of the permission for each resource type.public String toString()
toString in class ObjectObject.toString()public CreateResourceShareRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()