@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeTrustsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Describes the trust relationships for a particular Managed Microsoft AD directory. If no input parameters are provided, such as directory ID or trust ID, this request describes all the trust relationships.
NOOP
Constructor and Description |
---|
DescribeTrustsRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeTrustsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDirectoryId()
The Directory ID of the Amazon Web Services 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 Amazon Web Services 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.
|
DescribeTrustsRequest |
withDirectoryId(String directoryId)
The Directory ID of the Amazon Web Services 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(Collection<String> trustIds)
A list of identifiers of the trust relationships for which to obtain the information.
|
DescribeTrustsRequest |
withTrustIds(String... trustIds)
A list of identifiers of the trust relationships for which to obtain the information.
|
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 setDirectoryId(String directoryId)
The Directory ID of the Amazon Web Services directory that is a part of the requested trust relationship.
directoryId
- The Directory ID of the Amazon Web Services directory that is a part of the requested trust relationship.public String getDirectoryId()
The Directory ID of the Amazon Web Services directory that is a part of the requested trust relationship.
public DescribeTrustsRequest withDirectoryId(String directoryId)
The Directory ID of the Amazon Web Services directory that is a part of the requested trust relationship.
directoryId
- The Directory ID of the Amazon Web Services directory that is a part of the requested trust relationship.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.
An empty list results in an InvalidParameterException
being thrown.
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.
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.
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)
or withTrustIds(java.util.Collection)
if you want to override
the existing values.
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.
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.
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.
public void setNextToken(String nextToken)
The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null if this is the first call.
nextToken
- The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null
if this is the first call.public String getNextToken()
The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null if this is the first call.
public DescribeTrustsRequest withNextToken(String nextToken)
The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null if this is the first call.
nextToken
- The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null
if this is the first call.public void setLimit(Integer limit)
The maximum number of objects to return.
limit
- The maximum number of objects to return.public Integer getLimit()
The maximum number of objects to return.
public DescribeTrustsRequest withLimit(Integer limit)
The maximum number of objects to return.
limit
- The maximum number of objects to return.public String toString()
toString
in class Object
Object.toString()
public DescribeTrustsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()