software.amazon.awscdk.services.appstream.CfnDirectoryConfigProps Maven / Gradle / Ivy
Show all versions of appstream Show documentation
package software.amazon.awscdk.services.appstream;
/**
* Properties for defining a `AWS::AppStream::DirectoryConfig`.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-directoryconfig.html
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.21.1 (build 9ff44cb)", date = "2020-01-16T18:33:58.215Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.appstream.$Module.class, fqn = "@aws-cdk/aws-appstream.CfnDirectoryConfigProps")
@software.amazon.jsii.Jsii.Proxy(CfnDirectoryConfigProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External)
public interface CfnDirectoryConfigProps extends software.amazon.jsii.JsiiSerializable {
/**
* `AWS::AppStream::DirectoryConfig.DirectoryName`.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-directoryconfig.html#cfn-appstream-directoryconfig-directoryname
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External)
java.lang.String getDirectoryName();
/**
* `AWS::AppStream::DirectoryConfig.OrganizationalUnitDistinguishedNames`.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-directoryconfig.html#cfn-appstream-directoryconfig-organizationalunitdistinguishednames
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External)
java.util.List getOrganizationalUnitDistinguishedNames();
/**
* `AWS::AppStream::DirectoryConfig.ServiceAccountCredentials`.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-directoryconfig.html#cfn-appstream-directoryconfig-serviceaccountcredentials
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External)
java.lang.Object getServiceAccountCredentials();
/**
* @return a {@link Builder} of {@link CfnDirectoryConfigProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link CfnDirectoryConfigProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External)
public static final class Builder {
private java.lang.String directoryName;
private java.util.List organizationalUnitDistinguishedNames;
private java.lang.Object serviceAccountCredentials;
/**
* Sets the value of {@link CfnDirectoryConfigProps#getDirectoryName}
* @param directoryName `AWS::AppStream::DirectoryConfig.DirectoryName`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External)
public Builder directoryName(java.lang.String directoryName) {
this.directoryName = directoryName;
return this;
}
/**
* Sets the value of {@link CfnDirectoryConfigProps#getOrganizationalUnitDistinguishedNames}
* @param organizationalUnitDistinguishedNames `AWS::AppStream::DirectoryConfig.OrganizationalUnitDistinguishedNames`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External)
public Builder organizationalUnitDistinguishedNames(java.util.List organizationalUnitDistinguishedNames) {
this.organizationalUnitDistinguishedNames = organizationalUnitDistinguishedNames;
return this;
}
/**
* Sets the value of {@link CfnDirectoryConfigProps#getServiceAccountCredentials}
* @param serviceAccountCredentials `AWS::AppStream::DirectoryConfig.ServiceAccountCredentials`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External)
public Builder serviceAccountCredentials(software.amazon.awscdk.core.IResolvable serviceAccountCredentials) {
this.serviceAccountCredentials = serviceAccountCredentials;
return this;
}
/**
* Sets the value of {@link CfnDirectoryConfigProps#getServiceAccountCredentials}
* @param serviceAccountCredentials `AWS::AppStream::DirectoryConfig.ServiceAccountCredentials`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External)
public Builder serviceAccountCredentials(software.amazon.awscdk.services.appstream.CfnDirectoryConfig.ServiceAccountCredentialsProperty serviceAccountCredentials) {
this.serviceAccountCredentials = serviceAccountCredentials;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link CfnDirectoryConfigProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External)
public CfnDirectoryConfigProps build() {
return new Jsii$Proxy(directoryName, organizationalUnitDistinguishedNames, serviceAccountCredentials);
}
}
/**
* An implementation for {@link CfnDirectoryConfigProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External)
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnDirectoryConfigProps {
private final java.lang.String directoryName;
private final java.util.List organizationalUnitDistinguishedNames;
private final java.lang.Object serviceAccountCredentials;
/**
* Constructor that initializes the object based on values retrieved from the JsiiObject.
* @param objRef Reference to the JSII managed object.
*/
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
this.directoryName = this.jsiiGet("directoryName", java.lang.String.class);
this.organizationalUnitDistinguishedNames = this.jsiiGet("organizationalUnitDistinguishedNames", java.util.List.class);
this.serviceAccountCredentials = this.jsiiGet("serviceAccountCredentials", java.lang.Object.class);
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
private Jsii$Proxy(final java.lang.String directoryName, final java.util.List organizationalUnitDistinguishedNames, final java.lang.Object serviceAccountCredentials) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.directoryName = java.util.Objects.requireNonNull(directoryName, "directoryName is required");
this.organizationalUnitDistinguishedNames = java.util.Objects.requireNonNull(organizationalUnitDistinguishedNames, "organizationalUnitDistinguishedNames is required");
this.serviceAccountCredentials = java.util.Objects.requireNonNull(serviceAccountCredentials, "serviceAccountCredentials is required");
}
@Override
public java.lang.String getDirectoryName() {
return this.directoryName;
}
@Override
public java.util.List getOrganizationalUnitDistinguishedNames() {
return this.organizationalUnitDistinguishedNames;
}
@Override
public java.lang.Object getServiceAccountCredentials() {
return this.serviceAccountCredentials;
}
@Override
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
data.set("directoryName", om.valueToTree(this.getDirectoryName()));
data.set("organizationalUnitDistinguishedNames", om.valueToTree(this.getOrganizationalUnitDistinguishedNames()));
data.set("serviceAccountCredentials", om.valueToTree(this.getServiceAccountCredentials()));
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@aws-cdk/aws-appstream.CfnDirectoryConfigProps"));
struct.set("data", data);
final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
obj.set("$jsii.struct", struct);
return obj;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CfnDirectoryConfigProps.Jsii$Proxy that = (CfnDirectoryConfigProps.Jsii$Proxy) o;
if (!directoryName.equals(that.directoryName)) return false;
if (!organizationalUnitDistinguishedNames.equals(that.organizationalUnitDistinguishedNames)) return false;
return this.serviceAccountCredentials.equals(that.serviceAccountCredentials);
}
@Override
public int hashCode() {
int result = this.directoryName.hashCode();
result = 31 * result + (this.organizationalUnitDistinguishedNames.hashCode());
result = 31 * result + (this.serviceAccountCredentials.hashCode());
return result;
}
}
}