Class CreateTrustRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.directory.model.CreateTrustRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class CreateTrustRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

AWS Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your Microsoft AD in the AWS cloud, and your existing on-premises Microsoft Active Directory. This would allow you to provide users and groups access to resources in either domain, with a single set of credentials.

This action initiates the creation of the AWS side of a trust relationship between a Microsoft AD in the AWS cloud and an external domain.

See Also:
  • Constructor Details

    • CreateTrustRequest

      public CreateTrustRequest()
  • Method Details

    • setDirectoryId

      public void setDirectoryId(String directoryId)
      The Directory ID of the Microsoft AD in the AWS cloud for which to establish the trust relationship.
      Parameters:
      directoryId - The Directory ID of the Microsoft AD in the AWS cloud for which to establish the trust relationship.
    • getDirectoryId

      public String getDirectoryId()
      The Directory ID of the Microsoft AD in the AWS cloud for which to establish the trust relationship.
      Returns:
      The Directory ID of the Microsoft AD in the AWS cloud for which to establish the trust relationship.
    • withDirectoryId

      public CreateTrustRequest withDirectoryId(String directoryId)
      The Directory ID of the Microsoft AD in the AWS cloud for which to establish the trust relationship.
      Parameters:
      directoryId - The Directory ID of the Microsoft AD in the AWS cloud for which to establish the trust relationship.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setRemoteDomainName

      public void setRemoteDomainName(String remoteDomainName)
      The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.
      Parameters:
      remoteDomainName - The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.
    • getRemoteDomainName

      public String getRemoteDomainName()
      The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.
      Returns:
      The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.
    • withRemoteDomainName

      public CreateTrustRequest withRemoteDomainName(String remoteDomainName)
      The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.
      Parameters:
      remoteDomainName - The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setTrustPassword

      public void setTrustPassword(String trustPassword)
      The trust password. The must be the same password that was used when creating the trust relationship on the external domain.
      Parameters:
      trustPassword - The trust password. The must be the same password that was used when creating the trust relationship on the external domain.
    • getTrustPassword

      public String getTrustPassword()
      The trust password. The must be the same password that was used when creating the trust relationship on the external domain.
      Returns:
      The trust password. The must be the same password that was used when creating the trust relationship on the external domain.
    • withTrustPassword

      public CreateTrustRequest withTrustPassword(String trustPassword)
      The trust password. The must be the same password that was used when creating the trust relationship on the external domain.
      Parameters:
      trustPassword - The trust password. The must be the same password that was used when creating the trust relationship on the external domain.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setTrustDirection

      public void setTrustDirection(String trustDirection)
      The direction of the trust relationship.
      Parameters:
      trustDirection - The direction of the trust relationship.
      See Also:
    • getTrustDirection

      public String getTrustDirection()
      The direction of the trust relationship.
      Returns:
      The direction of the trust relationship.
      See Also:
    • withTrustDirection

      public CreateTrustRequest withTrustDirection(String trustDirection)
      The direction of the trust relationship.
      Parameters:
      trustDirection - The direction of the trust relationship.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setTrustDirection

      public void setTrustDirection(TrustDirection trustDirection)
      The direction of the trust relationship.
      Parameters:
      trustDirection - The direction of the trust relationship.
      See Also:
    • withTrustDirection

      public CreateTrustRequest withTrustDirection(TrustDirection trustDirection)
      The direction of the trust relationship.
      Parameters:
      trustDirection - The direction of the trust relationship.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setTrustType

      public void setTrustType(String trustType)
      The trust relationship type.
      Parameters:
      trustType - The trust relationship type.
      See Also:
    • getTrustType

      public String getTrustType()
      The trust relationship type.
      Returns:
      The trust relationship type.
      See Also:
    • withTrustType

      public CreateTrustRequest withTrustType(String trustType)
      The trust relationship type.
      Parameters:
      trustType - The trust relationship type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setTrustType

      public void setTrustType(TrustType trustType)
      The trust relationship type.
      Parameters:
      trustType - The trust relationship type.
      See Also:
    • withTrustType

      public CreateTrustRequest withTrustType(TrustType trustType)
      The trust relationship type.
      Parameters:
      trustType - The trust relationship type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • getConditionalForwarderIpAddrs

      public List<String> getConditionalForwarderIpAddrs()
      Returns:
    • setConditionalForwarderIpAddrs

      public void setConditionalForwarderIpAddrs(Collection<String> conditionalForwarderIpAddrs)
      Parameters:
      conditionalForwarderIpAddrs -
    • withConditionalForwarderIpAddrs

      public CreateTrustRequest withConditionalForwarderIpAddrs(String... conditionalForwarderIpAddrs)

      NOTE: This method appends the values to the existing list (if any). Use setConditionalForwarderIpAddrs(java.util.Collection) or withConditionalForwarderIpAddrs(java.util.Collection) if you want to override the existing values.

      Parameters:
      conditionalForwarderIpAddrs -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withConditionalForwarderIpAddrs

      public CreateTrustRequest withConditionalForwarderIpAddrs(Collection<String> conditionalForwarderIpAddrs)
      Parameters:
      conditionalForwarderIpAddrs -
      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 CreateTrustRequest 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: