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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateTrustRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTrustRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
List<String>
getConditionalForwarderIpAddrs()
String
getDirectoryId()
The Directory ID of the Microsoft AD in the AWS cloud for which to establish the trust relationship.String
getRemoteDomainName()
The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.String
getTrustDirection()
The direction of the trust relationship.String
getTrustPassword()
The trust password.String
getTrustType()
The trust relationship type.int
hashCode()
void
setConditionalForwarderIpAddrs(Collection<String> conditionalForwarderIpAddrs)
void
setDirectoryId(String directoryId)
The Directory ID of the Microsoft AD in the AWS cloud for which to establish the trust relationship.void
setRemoteDomainName(String remoteDomainName)
The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.void
setTrustDirection(TrustDirection trustDirection)
The direction of the trust relationship.void
setTrustDirection(String trustDirection)
The direction of the trust relationship.void
setTrustPassword(String trustPassword)
The trust password.void
setTrustType(TrustType trustType)
The trust relationship type.void
setTrustType(String trustType)
The trust relationship type.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateTrustRequest
withConditionalForwarderIpAddrs(String... conditionalForwarderIpAddrs)
NOTE: This method appends the values to the existing list (if any).CreateTrustRequest
withConditionalForwarderIpAddrs(Collection<String> conditionalForwarderIpAddrs)
CreateTrustRequest
withDirectoryId(String directoryId)
The Directory ID of the Microsoft AD in the AWS cloud for which to establish the trust relationship.CreateTrustRequest
withRemoteDomainName(String remoteDomainName)
The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.CreateTrustRequest
withTrustDirection(TrustDirection trustDirection)
The direction of the trust relationship.CreateTrustRequest
withTrustDirection(String trustDirection)
The direction of the trust relationship.CreateTrustRequest
withTrustPassword(String trustPassword)
The trust password.CreateTrustRequest
withTrustType(TrustType trustType)
The trust relationship type.CreateTrustRequest
withTrustType(String trustType)
The trust relationship type.-
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 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:
TrustDirection
-
getTrustDirection
public String getTrustDirection()
The direction of the trust relationship.- Returns:
- The direction of the trust relationship.
- See Also:
TrustDirection
-
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:
TrustDirection
-
setTrustDirection
public void setTrustDirection(TrustDirection trustDirection)
The direction of the trust relationship.- Parameters:
trustDirection
- The direction of the trust relationship.- See Also:
TrustDirection
-
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:
TrustDirection
-
setTrustType
public void setTrustType(String trustType)
The trust relationship type.- Parameters:
trustType
- The trust relationship type.- See Also:
TrustType
-
getTrustType
public String getTrustType()
The trust relationship type.- Returns:
- The trust relationship type.
- See Also:
TrustType
-
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:
TrustType
-
setTrustType
public void setTrustType(TrustType trustType)
The trust relationship type.- Parameters:
trustType
- The trust relationship type.- See Also:
TrustType
-
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:
TrustType
-
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)
orwithConditionalForwarderIpAddrs(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
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 classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-