Class DescribeTrustsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.directory.model.DescribeTrustsRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class DescribeTrustsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Describes the trust relationships for a particular Microsoft AD in the AWS cloud. If no input parameters are are provided, such as directory ID or trust ID, this request describes all the trust relationships.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DescribeTrustsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeTrustsRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetDirectoryId()The Directory ID of the AWS directory that is a part of the requested trust relationship.IntegergetLimit()The maximum number of objects to return.StringgetNextToken()The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts.List<String>getTrustIds()A list of identifiers of the trust relationships for which to obtain the information.inthashCode()voidsetDirectoryId(String directoryId)The Directory ID of the AWS directory that is a part of the requested trust relationship.voidsetLimit(Integer limit)The maximum number of objects to return.voidsetNextToken(String nextToken)The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts.voidsetTrustIds(Collection<String> trustIds)A list of identifiers of the trust relationships for which to obtain the information.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeTrustsRequestwithDirectoryId(String directoryId)The Directory ID of the AWS directory that is a part of the requested trust relationship.DescribeTrustsRequestwithLimit(Integer limit)The maximum number of objects to return.DescribeTrustsRequestwithNextToken(String nextToken)The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts.DescribeTrustsRequestwithTrustIds(String... trustIds)A list of identifiers of the trust relationships for which to obtain the information.DescribeTrustsRequestwithTrustIds(Collection<String> trustIds)A list of identifiers of the trust relationships for which to obtain the information.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setDirectoryId
public void setDirectoryId(String directoryId)
The Directory ID of the AWS directory that is a part of the requested trust relationship.- Parameters:
directoryId- The Directory ID of the AWS directory that is a part of the requested trust relationship.
-
getDirectoryId
public String getDirectoryId()
The Directory ID of the AWS directory that is a part of the requested trust relationship.- Returns:
- The Directory ID of the AWS directory that is a part of the requested trust relationship.
-
withDirectoryId
public DescribeTrustsRequest withDirectoryId(String directoryId)
The Directory ID of the AWS directory that is a part of the requested trust relationship.- Parameters:
directoryId- The Directory ID of the AWS directory that is a part of the requested trust relationship.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTrustIds
public List<String> getTrustIds()
A list of identifiers of the trust relationships for which to obtain the information. If this member is null, all trust relationships that belong to the current account are returned.
An empty list results in an
InvalidParameterExceptionbeing thrown.- Returns:
- A list of identifiers of the trust relationships for which to
obtain the information. If this member is null, all trust
relationships that belong to the current account are
returned.
An empty list results in an
InvalidParameterExceptionbeing thrown.
-
setTrustIds
public void setTrustIds(Collection<String> trustIds)
A list of identifiers of the trust relationships for which to obtain the information. If this member is null, all trust relationships that belong to the current account are returned.
An empty list results in an
InvalidParameterExceptionbeing thrown.- Parameters:
trustIds- A list of identifiers of the trust relationships for which to obtain the information. If this member is null, all trust relationships that belong to the current account are returned.An empty list results in an
InvalidParameterExceptionbeing thrown.
-
withTrustIds
public DescribeTrustsRequest withTrustIds(String... trustIds)
A list of identifiers of the trust relationships for which to obtain the information. If this member is null, all trust relationships that belong to the current account are returned.
An empty list results in an
InvalidParameterExceptionbeing thrown.NOTE: This method appends the values to the existing list (if any). Use
setTrustIds(java.util.Collection)orwithTrustIds(java.util.Collection)if you want to override the existing values.- Parameters:
trustIds- A list of identifiers of the trust relationships for which to obtain the information. If this member is null, all trust relationships that belong to the current account are returned.An empty list results in an
InvalidParameterExceptionbeing thrown.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTrustIds
public DescribeTrustsRequest withTrustIds(Collection<String> trustIds)
A list of identifiers of the trust relationships for which to obtain the information. If this member is null, all trust relationships that belong to the current account are returned.
An empty list results in an
InvalidParameterExceptionbeing thrown.- Parameters:
trustIds- A list of identifiers of the trust relationships for which to obtain the information. If this member is null, all trust relationships that belong to the current account are returned.An empty list results in an
InvalidParameterExceptionbeing thrown.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null if this is the first call.
- Parameters:
nextToken- The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null if this is the first call.
-
getNextToken
public String getNextToken()
The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null if this is the first call.
- Returns:
- The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null if this is the first call.
-
withNextToken
public DescribeTrustsRequest withNextToken(String nextToken)
The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null if this is the first call.
- Parameters:
nextToken- The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null if this is the first call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLimit
public void setLimit(Integer limit)
The maximum number of objects to return.- Parameters:
limit- The maximum number of objects to return.
-
getLimit
public Integer getLimit()
The maximum number of objects to return.- Returns:
- The maximum number of objects to return.
-
withLimit
public DescribeTrustsRequest withLimit(Integer limit)
The maximum number of objects to return.- Parameters:
limit- The maximum number of objects to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeTrustsRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-