/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.rds.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* An Active Directory Domain membership record associated with the DB instance or cluster. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DomainMembership implements Serializable, Cloneable { /** ** The identifier of the Active Directory Domain. *
*/ private String domain; /** *
* The status of the Active Directory Domain membership for the DB instance or cluster. Values include
* joined
, pending-join
, failed
, and so on.
*
* The fully qualified domain name (FQDN) of the Active Directory Domain. *
*/ private String fQDN; /** ** The name of the IAM role used when making API calls to the Directory Service. *
*/ private String iAMRoleName; /** ** The Active Directory organizational unit for the DB instance or cluster. *
*/ private String oU; /** ** The ARN for the Secrets Manager secret with the credentials for the user that's a member of the domain. *
*/ private String authSecretArn; /** ** The IPv4 DNS IP addresses of the primary and secondary Active Directory domain controllers. *
*/ private com.amazonaws.internal.SdkInternalList* The identifier of the Active Directory Domain. *
* * @param domain * The identifier of the Active Directory Domain. */ public void setDomain(String domain) { this.domain = domain; } /** ** The identifier of the Active Directory Domain. *
* * @return The identifier of the Active Directory Domain. */ public String getDomain() { return this.domain; } /** ** The identifier of the Active Directory Domain. *
* * @param domain * The identifier of the Active Directory Domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainMembership withDomain(String domain) { setDomain(domain); return this; } /** *
* The status of the Active Directory Domain membership for the DB instance or cluster. Values include
* joined
, pending-join
, failed
, and so on.
*
joined
, pending-join
, failed
, and so on.
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the Active Directory Domain membership for the DB instance or cluster. Values include
* joined
, pending-join
, failed
, and so on.
*
joined
, pending-join
, failed
, and so on.
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the Active Directory Domain membership for the DB instance or cluster. Values include
* joined
, pending-join
, failed
, and so on.
*
joined
, pending-join
, failed
, and so on.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainMembership withStatus(String status) {
setStatus(status);
return this;
}
/**
* * The fully qualified domain name (FQDN) of the Active Directory Domain. *
* * @param fQDN * The fully qualified domain name (FQDN) of the Active Directory Domain. */ public void setFQDN(String fQDN) { this.fQDN = fQDN; } /** ** The fully qualified domain name (FQDN) of the Active Directory Domain. *
* * @return The fully qualified domain name (FQDN) of the Active Directory Domain. */ public String getFQDN() { return this.fQDN; } /** ** The fully qualified domain name (FQDN) of the Active Directory Domain. *
* * @param fQDN * The fully qualified domain name (FQDN) of the Active Directory Domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainMembership withFQDN(String fQDN) { setFQDN(fQDN); return this; } /** ** The name of the IAM role used when making API calls to the Directory Service. *
* * @param iAMRoleName * The name of the IAM role used when making API calls to the Directory Service. */ public void setIAMRoleName(String iAMRoleName) { this.iAMRoleName = iAMRoleName; } /** ** The name of the IAM role used when making API calls to the Directory Service. *
* * @return The name of the IAM role used when making API calls to the Directory Service. */ public String getIAMRoleName() { return this.iAMRoleName; } /** ** The name of the IAM role used when making API calls to the Directory Service. *
* * @param iAMRoleName * The name of the IAM role used when making API calls to the Directory Service. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainMembership withIAMRoleName(String iAMRoleName) { setIAMRoleName(iAMRoleName); return this; } /** ** The Active Directory organizational unit for the DB instance or cluster. *
* * @param oU * The Active Directory organizational unit for the DB instance or cluster. */ public void setOU(String oU) { this.oU = oU; } /** ** The Active Directory organizational unit for the DB instance or cluster. *
* * @return The Active Directory organizational unit for the DB instance or cluster. */ public String getOU() { return this.oU; } /** ** The Active Directory organizational unit for the DB instance or cluster. *
* * @param oU * The Active Directory organizational unit for the DB instance or cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainMembership withOU(String oU) { setOU(oU); return this; } /** ** The ARN for the Secrets Manager secret with the credentials for the user that's a member of the domain. *
* * @param authSecretArn * The ARN for the Secrets Manager secret with the credentials for the user that's a member of the domain. */ public void setAuthSecretArn(String authSecretArn) { this.authSecretArn = authSecretArn; } /** ** The ARN for the Secrets Manager secret with the credentials for the user that's a member of the domain. *
* * @return The ARN for the Secrets Manager secret with the credentials for the user that's a member of the domain. */ public String getAuthSecretArn() { return this.authSecretArn; } /** ** The ARN for the Secrets Manager secret with the credentials for the user that's a member of the domain. *
* * @param authSecretArn * The ARN for the Secrets Manager secret with the credentials for the user that's a member of the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainMembership withAuthSecretArn(String authSecretArn) { setAuthSecretArn(authSecretArn); return this; } /** ** The IPv4 DNS IP addresses of the primary and secondary Active Directory domain controllers. *
* * @return The IPv4 DNS IP addresses of the primary and secondary Active Directory domain controllers. */ public java.util.List* The IPv4 DNS IP addresses of the primary and secondary Active Directory domain controllers. *
* * @param dnsIps * The IPv4 DNS IP addresses of the primary and secondary Active Directory domain controllers. */ public void setDnsIps(java.util.Collection* The IPv4 DNS IP addresses of the primary and secondary Active Directory domain controllers. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDnsIps(java.util.Collection)} or {@link #withDnsIps(java.util.Collection)} if you want to override the * existing values. *
* * @param dnsIps * The IPv4 DNS IP addresses of the primary and secondary Active Directory domain controllers. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainMembership withDnsIps(String... dnsIps) { if (this.dnsIps == null) { setDnsIps(new com.amazonaws.internal.SdkInternalList* The IPv4 DNS IP addresses of the primary and secondary Active Directory domain controllers. *
* * @param dnsIps * The IPv4 DNS IP addresses of the primary and secondary Active Directory domain controllers. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainMembership withDnsIps(java.util.Collection