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

com.amazonaws.services.securityhub.model.AwsRdsDbDomainMembership Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS SecurityHub module holds the client classes that are used for communicating with AWS SecurityHub Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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.securityhub.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Information about an Active Directory domain membership record associated with the DB instance. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsRdsDbDomainMembership implements Serializable, Cloneable, StructuredPojo { /** *

* The identifier of the Active Directory domain. *

*/ private String domain; /** *

* The status of the Active Directory Domain membership for the DB instance. *

*/ private String status; /** *

* The fully qualified domain name of the Active Directory domain. *

*/ private String fqdn; /** *

* The name of the IAM role to use when making API calls to the Directory Service. *

*/ private String iamRoleName; /** *

* 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 AwsRdsDbDomainMembership withDomain(String domain) { setDomain(domain); return this; } /** *

* The status of the Active Directory Domain membership for the DB instance. *

* * @param status * The status of the Active Directory Domain membership for the DB instance. */ public void setStatus(String status) { this.status = status; } /** *

* The status of the Active Directory Domain membership for the DB instance. *

* * @return The status of the Active Directory Domain membership for the DB instance. */ public String getStatus() { return this.status; } /** *

* The status of the Active Directory Domain membership for the DB instance. *

* * @param status * The status of the Active Directory Domain membership for the DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbDomainMembership withStatus(String status) { setStatus(status); return this; } /** *

* The fully qualified domain name of the Active Directory domain. *

* * @param fqdn * The fully qualified domain name of the Active Directory domain. */ public void setFqdn(String fqdn) { this.fqdn = fqdn; } /** *

* The fully qualified domain name of the Active Directory domain. *

* * @return The fully qualified domain name of the Active Directory domain. */ public String getFqdn() { return this.fqdn; } /** *

* The fully qualified domain name of the Active Directory domain. *

* * @param fqdn * The fully qualified domain name of the Active Directory domain. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbDomainMembership withFqdn(String fqdn) { setFqdn(fqdn); return this; } /** *

* The name of the IAM role to use when making API calls to the Directory Service. *

* * @param iamRoleName * The name of the IAM role to use when making API calls to the Directory Service. */ public void setIamRoleName(String iamRoleName) { this.iamRoleName = iamRoleName; } /** *

* The name of the IAM role to use when making API calls to the Directory Service. *

* * @return The name of the IAM role to use when making API calls to the Directory Service. */ public String getIamRoleName() { return this.iamRoleName; } /** *

* The name of the IAM role to use when making API calls to the Directory Service. *

* * @param iamRoleName * The name of the IAM role to use when making API calls to the Directory Service. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbDomainMembership withIamRoleName(String iamRoleName) { setIamRoleName(iamRoleName); 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()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AwsRdsDbDomainMembership == false) return false; AwsRdsDbDomainMembership other = (AwsRdsDbDomainMembership) 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; 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()); return hashCode; } @Override public AwsRdsDbDomainMembership clone() { try { return (AwsRdsDbDomainMembership) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.securityhub.model.transform.AwsRdsDbDomainMembershipMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy