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

com.amazonaws.services.appstream.model.DomainJoinInfo Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon AppStream module holds the client classes that are used for communicating with Amazon AppStream.

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.appstream.model;

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

/**
 * 

* Describes the configuration information required to join fleets and image builders to Microsoft Active Directory * domains. *

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

* The fully qualified name of the directory (for example, corp.example.com). *

*/ private String directoryName; /** *

* The distinguished name of the organizational unit for computer accounts. *

*/ private String organizationalUnitDistinguishedName; /** *

* The fully qualified name of the directory (for example, corp.example.com). *

* * @param directoryName * The fully qualified name of the directory (for example, corp.example.com). */ public void setDirectoryName(String directoryName) { this.directoryName = directoryName; } /** *

* The fully qualified name of the directory (for example, corp.example.com). *

* * @return The fully qualified name of the directory (for example, corp.example.com). */ public String getDirectoryName() { return this.directoryName; } /** *

* The fully qualified name of the directory (for example, corp.example.com). *

* * @param directoryName * The fully qualified name of the directory (for example, corp.example.com). * @return Returns a reference to this object so that method calls can be chained together. */ public DomainJoinInfo withDirectoryName(String directoryName) { setDirectoryName(directoryName); return this; } /** *

* The distinguished name of the organizational unit for computer accounts. *

* * @param organizationalUnitDistinguishedName * The distinguished name of the organizational unit for computer accounts. */ public void setOrganizationalUnitDistinguishedName(String organizationalUnitDistinguishedName) { this.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName; } /** *

* The distinguished name of the organizational unit for computer accounts. *

* * @return The distinguished name of the organizational unit for computer accounts. */ public String getOrganizationalUnitDistinguishedName() { return this.organizationalUnitDistinguishedName; } /** *

* The distinguished name of the organizational unit for computer accounts. *

* * @param organizationalUnitDistinguishedName * The distinguished name of the organizational unit for computer accounts. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainJoinInfo withOrganizationalUnitDistinguishedName(String organizationalUnitDistinguishedName) { setOrganizationalUnitDistinguishedName(organizationalUnitDistinguishedName); 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 (getDirectoryName() != null) sb.append("DirectoryName: ").append(getDirectoryName()).append(","); if (getOrganizationalUnitDistinguishedName() != null) sb.append("OrganizationalUnitDistinguishedName: ").append(getOrganizationalUnitDistinguishedName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DomainJoinInfo == false) return false; DomainJoinInfo other = (DomainJoinInfo) obj; if (other.getDirectoryName() == null ^ this.getDirectoryName() == null) return false; if (other.getDirectoryName() != null && other.getDirectoryName().equals(this.getDirectoryName()) == false) return false; if (other.getOrganizationalUnitDistinguishedName() == null ^ this.getOrganizationalUnitDistinguishedName() == null) return false; if (other.getOrganizationalUnitDistinguishedName() != null && other.getOrganizationalUnitDistinguishedName().equals(this.getOrganizationalUnitDistinguishedName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDirectoryName() == null) ? 0 : getDirectoryName().hashCode()); hashCode = prime * hashCode + ((getOrganizationalUnitDistinguishedName() == null) ? 0 : getOrganizationalUnitDistinguishedName().hashCode()); return hashCode; } @Override public DomainJoinInfo clone() { try { return (DomainJoinInfo) 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.appstream.model.transform.DomainJoinInfoMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy