@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetResourceShareAssociationsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetResourceShareAssociationsRequest() |
Modifier and Type | Method and Description |
---|---|
GetResourceShareAssociationsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAssociationStatus()
The association status.
|
String |
getAssociationType()
The association type.
|
Integer |
getMaxResults()
The maximum number of results to return with a single call.
|
String |
getNextToken()
The token for the next page of results.
|
String |
getPrincipal()
The principal.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the resource.
|
List<String> |
getResourceShareArns()
The Amazon Resource Names (ARN) of the resource shares.
|
int |
hashCode() |
void |
setAssociationStatus(String associationStatus)
The association status.
|
void |
setAssociationType(String associationType)
The association type.
|
void |
setMaxResults(Integer maxResults)
The maximum number of results to return with a single call.
|
void |
setNextToken(String nextToken)
The token for the next page of results.
|
void |
setPrincipal(String principal)
The principal.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource.
|
void |
setResourceShareArns(Collection<String> resourceShareArns)
The Amazon Resource Names (ARN) of the resource shares.
|
String |
toString()
Returns a string representation of this object.
|
GetResourceShareAssociationsRequest |
withAssociationStatus(ResourceShareAssociationStatus associationStatus)
The association status.
|
GetResourceShareAssociationsRequest |
withAssociationStatus(String associationStatus)
The association status.
|
GetResourceShareAssociationsRequest |
withAssociationType(ResourceShareAssociationType associationType)
The association type.
|
GetResourceShareAssociationsRequest |
withAssociationType(String associationType)
The association type.
|
GetResourceShareAssociationsRequest |
withMaxResults(Integer maxResults)
The maximum number of results to return with a single call.
|
GetResourceShareAssociationsRequest |
withNextToken(String nextToken)
The token for the next page of results.
|
GetResourceShareAssociationsRequest |
withPrincipal(String principal)
The principal.
|
GetResourceShareAssociationsRequest |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource.
|
GetResourceShareAssociationsRequest |
withResourceShareArns(Collection<String> resourceShareArns)
The Amazon Resource Names (ARN) of the resource shares.
|
GetResourceShareAssociationsRequest |
withResourceShareArns(String... resourceShareArns)
The Amazon Resource Names (ARN) of the resource shares.
|
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 setAssociationType(String associationType)
The association type. Specify PRINCIPAL
to list the principals that are associated with the
specified resource share. Specify RESOURCE
to list the resources that are associated with the
specified resource share.
associationType
- The association type. Specify PRINCIPAL
to list the principals that are associated with the
specified resource share. Specify RESOURCE
to list the resources that are associated with the
specified resource share.ResourceShareAssociationType
public String getAssociationType()
The association type. Specify PRINCIPAL
to list the principals that are associated with the
specified resource share. Specify RESOURCE
to list the resources that are associated with the
specified resource share.
PRINCIPAL
to list the principals that are associated with the
specified resource share. Specify RESOURCE
to list the resources that are associated with
the specified resource share.ResourceShareAssociationType
public GetResourceShareAssociationsRequest withAssociationType(String associationType)
The association type. Specify PRINCIPAL
to list the principals that are associated with the
specified resource share. Specify RESOURCE
to list the resources that are associated with the
specified resource share.
associationType
- The association type. Specify PRINCIPAL
to list the principals that are associated with the
specified resource share. Specify RESOURCE
to list the resources that are associated with the
specified resource share.ResourceShareAssociationType
public GetResourceShareAssociationsRequest withAssociationType(ResourceShareAssociationType associationType)
The association type. Specify PRINCIPAL
to list the principals that are associated with the
specified resource share. Specify RESOURCE
to list the resources that are associated with the
specified resource share.
associationType
- The association type. Specify PRINCIPAL
to list the principals that are associated with the
specified resource share. Specify RESOURCE
to list the resources that are associated with the
specified resource share.ResourceShareAssociationType
public List<String> getResourceShareArns()
The Amazon Resource Names (ARN) of the resource shares.
public void setResourceShareArns(Collection<String> resourceShareArns)
The Amazon Resource Names (ARN) of the resource shares.
resourceShareArns
- The Amazon Resource Names (ARN) of the resource shares.public GetResourceShareAssociationsRequest withResourceShareArns(String... resourceShareArns)
The Amazon Resource Names (ARN) of the resource shares.
NOTE: This method appends the values to the existing list (if any). Use
setResourceShareArns(java.util.Collection)
or withResourceShareArns(java.util.Collection)
if
you want to override the existing values.
resourceShareArns
- The Amazon Resource Names (ARN) of the resource shares.public GetResourceShareAssociationsRequest withResourceShareArns(Collection<String> resourceShareArns)
The Amazon Resource Names (ARN) of the resource shares.
resourceShareArns
- The Amazon Resource Names (ARN) of the resource shares.public void setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource. You cannot specify this parameter if the association type is
PRINCIPAL
.
resourceArn
- The Amazon Resource Name (ARN) of the resource. You cannot specify this parameter if the association type
is PRINCIPAL
.public String getResourceArn()
The Amazon Resource Name (ARN) of the resource. You cannot specify this parameter if the association type is
PRINCIPAL
.
PRINCIPAL
.public GetResourceShareAssociationsRequest withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource. You cannot specify this parameter if the association type is
PRINCIPAL
.
resourceArn
- The Amazon Resource Name (ARN) of the resource. You cannot specify this parameter if the association type
is PRINCIPAL
.public void setPrincipal(String principal)
The principal. You cannot specify this parameter if the association type is RESOURCE
.
principal
- The principal. You cannot specify this parameter if the association type is RESOURCE
.public String getPrincipal()
The principal. You cannot specify this parameter if the association type is RESOURCE
.
RESOURCE
.public GetResourceShareAssociationsRequest withPrincipal(String principal)
The principal. You cannot specify this parameter if the association type is RESOURCE
.
principal
- The principal. You cannot specify this parameter if the association type is RESOURCE
.public void setAssociationStatus(String associationStatus)
The association status.
associationStatus
- The association status.ResourceShareAssociationStatus
public String getAssociationStatus()
The association status.
ResourceShareAssociationStatus
public GetResourceShareAssociationsRequest withAssociationStatus(String associationStatus)
The association status.
associationStatus
- The association status.ResourceShareAssociationStatus
public GetResourceShareAssociationsRequest withAssociationStatus(ResourceShareAssociationStatus associationStatus)
The association status.
associationStatus
- The association status.ResourceShareAssociationStatus
public void setNextToken(String nextToken)
The token for the next page of results.
nextToken
- The token for the next page of results.public String getNextToken()
The token for the next page of results.
public GetResourceShareAssociationsRequest withNextToken(String nextToken)
The token for the next page of results.
nextToken
- The token for the next page of results.public void setMaxResults(Integer maxResults)
The maximum number of results to return with a single call. To retrieve the remaining results, make another call
with the returned nextToken
value.
maxResults
- The maximum number of results to return with a single call. To retrieve the remaining results, make
another call with the returned nextToken
value.public Integer getMaxResults()
The maximum number of results to return with a single call. To retrieve the remaining results, make another call
with the returned nextToken
value.
nextToken
value.public GetResourceShareAssociationsRequest withMaxResults(Integer maxResults)
The maximum number of results to return with a single call. To retrieve the remaining results, make another call
with the returned nextToken
value.
maxResults
- The maximum number of results to return with a single call. To retrieve the remaining results, make
another call with the returned nextToken
value.public String toString()
toString
in class Object
Object.toString()
public GetResourceShareAssociationsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()