All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.rds.model.DomainMembership Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon RDS module holds the client classes that are used for communicating with Amazon Relational Database Service

The newest version!
/*
 * Copyright 2019-2024 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. *

*/ private String status; /** *

* 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 dnsIps; /** *

* 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. *

* * @param status * The status of the Active Directory Domain membership for the DB instance or cluster. Values include * 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. *

* * @return The status of the Active Directory Domain membership for the DB instance or cluster. Values include * 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. *

* * @param status * The status of the Active Directory Domain membership for the DB instance or cluster. Values include * 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 getDnsIps() { if (dnsIps == null) { dnsIps = new com.amazonaws.internal.SdkInternalList(); } return dnsIps; } /** *

* 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 dnsIps) { if (dnsIps == null) { this.dnsIps = null; return; } this.dnsIps = new com.amazonaws.internal.SdkInternalList(dnsIps); } /** *

* 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(dnsIps.length)); } for (String ele : dnsIps) { this.dnsIps.add(ele); } return this; } /** *

* 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 dnsIps) { setDnsIps(dnsIps); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDomain() != null) sb.append("Domain: ").append(getDomain()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getFQDN() != null) sb.append("FQDN: ").append(getFQDN()).append(","); if (getIAMRoleName() != null) sb.append("IAMRoleName: ").append(getIAMRoleName()).append(","); if (getOU() != null) sb.append("OU: ").append(getOU()).append(","); if (getAuthSecretArn() != null) sb.append("AuthSecretArn: ").append(getAuthSecretArn()).append(","); if (getDnsIps() != null) sb.append("DnsIps: ").append(getDnsIps()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DomainMembership == false) return false; DomainMembership other = (DomainMembership) obj; if (other.getDomain() == null ^ this.getDomain() == null) return false; if (other.getDomain() != null && other.getDomain().equals(this.getDomain()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getFQDN() == null ^ this.getFQDN() == null) return false; if (other.getFQDN() != null && other.getFQDN().equals(this.getFQDN()) == false) return false; if (other.getIAMRoleName() == null ^ this.getIAMRoleName() == null) return false; if (other.getIAMRoleName() != null && other.getIAMRoleName().equals(this.getIAMRoleName()) == false) return false; if (other.getOU() == null ^ this.getOU() == null) return false; if (other.getOU() != null && other.getOU().equals(this.getOU()) == false) return false; if (other.getAuthSecretArn() == null ^ this.getAuthSecretArn() == null) return false; if (other.getAuthSecretArn() != null && other.getAuthSecretArn().equals(this.getAuthSecretArn()) == false) return false; if (other.getDnsIps() == null ^ this.getDnsIps() == null) return false; if (other.getDnsIps() != null && other.getDnsIps().equals(this.getDnsIps()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDomain() == null) ? 0 : getDomain().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getFQDN() == null) ? 0 : getFQDN().hashCode()); hashCode = prime * hashCode + ((getIAMRoleName() == null) ? 0 : getIAMRoleName().hashCode()); hashCode = prime * hashCode + ((getOU() == null) ? 0 : getOU().hashCode()); hashCode = prime * hashCode + ((getAuthSecretArn() == null) ? 0 : getAuthSecretArn().hashCode()); hashCode = prime * hashCode + ((getDnsIps() == null) ? 0 : getDnsIps().hashCode()); return hashCode; } @Override public DomainMembership clone() { try { return (DomainMembership) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy