@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssociateResourceShareRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
AssociateResourceShareRequest() |
| Modifier and Type | Method and Description |
|---|---|
AssociateResourceShareRequest |
clone() |
boolean |
equals(Object obj) |
String |
getClientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
List<String> |
getPrincipals()
The principals to associate with the resource share.
|
List<String> |
getResourceArns()
The Amazon Resource Names (ARN) of the resources.
|
String |
getResourceShareArn()
The Amazon Resource Name (ARN) of the resource share.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
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.
|
void |
setResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share.
|
String |
toString()
Returns a string representation of this object.
|
AssociateResourceShareRequest |
withClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
AssociateResourceShareRequest |
withPrincipals(Collection<String> principals)
The principals to associate with the resource share.
|
AssociateResourceShareRequest |
withPrincipals(String... principals)
The principals to associate with the resource share.
|
AssociateResourceShareRequest |
withResourceArns(Collection<String> resourceArns)
The Amazon Resource Names (ARN) of the resources.
|
AssociateResourceShareRequest |
withResourceArns(String... resourceArns)
The Amazon Resource Names (ARN) of the resources.
|
AssociateResourceShareRequest |
withResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share.
|
addHandlerContext, copyBaseTo, 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 setResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share.
resourceShareArn - The Amazon Resource Name (ARN) of the resource share.public String getResourceShareArn()
The Amazon Resource Name (ARN) of the resource share.
public AssociateResourceShareRequest withResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share.
resourceShareArn - The Amazon Resource Name (ARN) of the resource share.public List<String> getResourceArns()
The Amazon Resource Names (ARN) of the resources.
public void setResourceArns(Collection<String> resourceArns)
The Amazon Resource Names (ARN) of the resources.
resourceArns - The Amazon Resource Names (ARN) of the resources.public AssociateResourceShareRequest withResourceArns(String... resourceArns)
The Amazon Resource Names (ARN) of the resources.
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.public AssociateResourceShareRequest withResourceArns(Collection<String> resourceArns)
The Amazon Resource Names (ARN) of the resources.
resourceArns - The Amazon Resource Names (ARN) of the resources.public List<String> getPrincipals()
The principals to associate with the resource share. The possible values are IDs of AWS accounts, and the ARNs of organizational units (OU) or organizations 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, and the ARNs of organizational units (OU) or organizations from AWS Organizations.
principals - The principals to associate with the resource share. The possible values are IDs of AWS accounts, and the
ARNs of organizational units (OU) or organizations from AWS Organizations.public AssociateResourceShareRequest withPrincipals(String... principals)
The principals to associate with the resource share. The possible values are IDs of AWS accounts, and the ARNs of organizational units (OU) or organizations 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, and the
ARNs of organizational units (OU) or organizations from AWS Organizations.public AssociateResourceShareRequest withPrincipals(Collection<String> principals)
The principals to associate with the resource share. The possible values are IDs of AWS accounts, and the ARNs of organizational units (OU) or organizations from AWS Organizations.
principals - The principals to associate with the resource share. The possible values are IDs of AWS accounts, and the
ARNs of organizational units (OU) or organizations from AWS Organizations.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 AssociateResourceShareRequest 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 String toString()
toString in class ObjectObject.toString()public AssociateResourceShareRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2021. All rights reserved.