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

com.amazonaws.services.appstream.model.DirectoryConfig 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 2015-2020 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 DirectoryConfig implements Serializable, Cloneable, StructuredPojo { /** *

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

*/ private String directoryName; /** *

* The distinguished names of the organizational units for computer accounts. *

*/ private java.util.List organizationalUnitDistinguishedNames; /** *

* The credentials for the service account used by the fleet or image builder to connect to the directory. *

*/ private ServiceAccountCredentials serviceAccountCredentials; /** *

* The time the directory configuration was created. *

*/ private java.util.Date createdTime; /** *

* 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 DirectoryConfig withDirectoryName(String directoryName) { setDirectoryName(directoryName); return this; } /** *

* The distinguished names of the organizational units for computer accounts. *

* * @return The distinguished names of the organizational units for computer accounts. */ public java.util.List getOrganizationalUnitDistinguishedNames() { return organizationalUnitDistinguishedNames; } /** *

* The distinguished names of the organizational units for computer accounts. *

* * @param organizationalUnitDistinguishedNames * The distinguished names of the organizational units for computer accounts. */ public void setOrganizationalUnitDistinguishedNames(java.util.Collection organizationalUnitDistinguishedNames) { if (organizationalUnitDistinguishedNames == null) { this.organizationalUnitDistinguishedNames = null; return; } this.organizationalUnitDistinguishedNames = new java.util.ArrayList(organizationalUnitDistinguishedNames); } /** *

* The distinguished names of the organizational units for computer accounts. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setOrganizationalUnitDistinguishedNames(java.util.Collection)} or * {@link #withOrganizationalUnitDistinguishedNames(java.util.Collection)} if you want to override the existing * values. *

* * @param organizationalUnitDistinguishedNames * The distinguished names of the organizational units for computer accounts. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectoryConfig withOrganizationalUnitDistinguishedNames(String... organizationalUnitDistinguishedNames) { if (this.organizationalUnitDistinguishedNames == null) { setOrganizationalUnitDistinguishedNames(new java.util.ArrayList(organizationalUnitDistinguishedNames.length)); } for (String ele : organizationalUnitDistinguishedNames) { this.organizationalUnitDistinguishedNames.add(ele); } return this; } /** *

* The distinguished names of the organizational units for computer accounts. *

* * @param organizationalUnitDistinguishedNames * The distinguished names of the organizational units for computer accounts. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectoryConfig withOrganizationalUnitDistinguishedNames(java.util.Collection organizationalUnitDistinguishedNames) { setOrganizationalUnitDistinguishedNames(organizationalUnitDistinguishedNames); return this; } /** *

* The credentials for the service account used by the fleet or image builder to connect to the directory. *

* * @param serviceAccountCredentials * The credentials for the service account used by the fleet or image builder to connect to the directory. */ public void setServiceAccountCredentials(ServiceAccountCredentials serviceAccountCredentials) { this.serviceAccountCredentials = serviceAccountCredentials; } /** *

* The credentials for the service account used by the fleet or image builder to connect to the directory. *

* * @return The credentials for the service account used by the fleet or image builder to connect to the directory. */ public ServiceAccountCredentials getServiceAccountCredentials() { return this.serviceAccountCredentials; } /** *

* The credentials for the service account used by the fleet or image builder to connect to the directory. *

* * @param serviceAccountCredentials * The credentials for the service account used by the fleet or image builder to connect to the directory. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectoryConfig withServiceAccountCredentials(ServiceAccountCredentials serviceAccountCredentials) { setServiceAccountCredentials(serviceAccountCredentials); return this; } /** *

* The time the directory configuration was created. *

* * @param createdTime * The time the directory configuration was created. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** *

* The time the directory configuration was created. *

* * @return The time the directory configuration was created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** *

* The time the directory configuration was created. *

* * @param createdTime * The time the directory configuration was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectoryConfig withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); 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 (getOrganizationalUnitDistinguishedNames() != null) sb.append("OrganizationalUnitDistinguishedNames: ").append(getOrganizationalUnitDistinguishedNames()).append(","); if (getServiceAccountCredentials() != null) sb.append("ServiceAccountCredentials: ").append(getServiceAccountCredentials()).append(","); if (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DirectoryConfig == false) return false; DirectoryConfig other = (DirectoryConfig) obj; if (other.getDirectoryName() == null ^ this.getDirectoryName() == null) return false; if (other.getDirectoryName() != null && other.getDirectoryName().equals(this.getDirectoryName()) == false) return false; if (other.getOrganizationalUnitDistinguishedNames() == null ^ this.getOrganizationalUnitDistinguishedNames() == null) return false; if (other.getOrganizationalUnitDistinguishedNames() != null && other.getOrganizationalUnitDistinguishedNames().equals(this.getOrganizationalUnitDistinguishedNames()) == false) return false; if (other.getServiceAccountCredentials() == null ^ this.getServiceAccountCredentials() == null) return false; if (other.getServiceAccountCredentials() != null && other.getServiceAccountCredentials().equals(this.getServiceAccountCredentials()) == false) return false; if (other.getCreatedTime() == null ^ this.getCreatedTime() == null) return false; if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == 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 + ((getOrganizationalUnitDistinguishedNames() == null) ? 0 : getOrganizationalUnitDistinguishedNames().hashCode()); hashCode = prime * hashCode + ((getServiceAccountCredentials() == null) ? 0 : getServiceAccountCredentials().hashCode()); hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); return hashCode; } @Override public DirectoryConfig clone() { try { return (DirectoryConfig) 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.DirectoryConfigMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy