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:
  • Constructor Details

    • DescribeTrustsRequest

      public DescribeTrustsRequest()
  • Method Details

    • 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) or withTrustIds(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: