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 DescribeTrustsRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getDirectoryId()
The Directory ID of the AWS directory that is a part of the requested trust relationship.Integer
getLimit()
The maximum number of objects to return.String
getNextToken()
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.int
hashCode()
void
setDirectoryId(String directoryId)
The Directory ID of the AWS directory that is a part of the requested trust relationship.void
setLimit(Integer limit)
The maximum number of objects to return.void
setNextToken(String nextToken)
The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts.void
setTrustIds(Collection<String> trustIds)
A list of identifiers of the trust relationships for which to obtain the information.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeTrustsRequest
withDirectoryId(String directoryId)
The Directory ID of the AWS directory that is a part of the requested trust relationship.DescribeTrustsRequest
withLimit(Integer limit)
The maximum number of objects to return.DescribeTrustsRequest
withNextToken(String nextToken)
The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts.DescribeTrustsRequest
withTrustIds(String... trustIds)
A list of identifiers of the trust relationships for which to obtain the information.DescribeTrustsRequest
withTrustIds(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
InvalidParameterException
being 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
InvalidParameterException
being 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
InvalidParameterException
being 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
InvalidParameterException
being 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
InvalidParameterException
being 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
InvalidParameterException
being 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
InvalidParameterException
being 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
InvalidParameterException
being 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeTrustsRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-