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

software.amazon.awscdk.services.appstream.CfnUserProps Maven / Gradle / Ivy

There is a newer version: 1.204.0
Show newest version
package software.amazon.awscdk.services.appstream;

/**
 * Properties for defining a `AWS::AppStream::User`.
 * 

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-user.html */ @javax.annotation.Generated(value = "jsii-pacmak/0.21.1 (build 9ff44cb)", date = "2020-01-16T18:33:58.225Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.appstream.$Module.class, fqn = "@aws-cdk/aws-appstream.CfnUserProps") @software.amazon.jsii.Jsii.Proxy(CfnUserProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public interface CfnUserProps extends software.amazon.jsii.JsiiSerializable { /** * `AWS::AppStream::User.AuthenticationType`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-user.html#cfn-appstream-user-authenticationtype */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) java.lang.String getAuthenticationType(); /** * `AWS::AppStream::User.UserName`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-user.html#cfn-appstream-user-username */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) java.lang.String getUserName(); /** * `AWS::AppStream::User.FirstName`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-user.html#cfn-appstream-user-firstname */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) default java.lang.String getFirstName() { return null; } /** * `AWS::AppStream::User.LastName`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-user.html#cfn-appstream-user-lastname */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) default java.lang.String getLastName() { return null; } /** * `AWS::AppStream::User.MessageAction`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-user.html#cfn-appstream-user-messageaction */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) default java.lang.String getMessageAction() { return null; } /** * @return a {@link Builder} of {@link CfnUserProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) static Builder builder() { return new Builder(); } /** * A builder for {@link CfnUserProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public static final class Builder { private java.lang.String authenticationType; private java.lang.String userName; private java.lang.String firstName; private java.lang.String lastName; private java.lang.String messageAction; /** * Sets the value of {@link CfnUserProps#getAuthenticationType} * @param authenticationType `AWS::AppStream::User.AuthenticationType`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public Builder authenticationType(java.lang.String authenticationType) { this.authenticationType = authenticationType; return this; } /** * Sets the value of {@link CfnUserProps#getUserName} * @param userName `AWS::AppStream::User.UserName`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public Builder userName(java.lang.String userName) { this.userName = userName; return this; } /** * Sets the value of {@link CfnUserProps#getFirstName} * @param firstName `AWS::AppStream::User.FirstName`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public Builder firstName(java.lang.String firstName) { this.firstName = firstName; return this; } /** * Sets the value of {@link CfnUserProps#getLastName} * @param lastName `AWS::AppStream::User.LastName`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public Builder lastName(java.lang.String lastName) { this.lastName = lastName; return this; } /** * Sets the value of {@link CfnUserProps#getMessageAction} * @param messageAction `AWS::AppStream::User.MessageAction`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public Builder messageAction(java.lang.String messageAction) { this.messageAction = messageAction; return this; } /** * Builds the configured instance. * @return a new instance of {@link CfnUserProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public CfnUserProps build() { return new Jsii$Proxy(authenticationType, userName, firstName, lastName, messageAction); } } /** * An implementation for {@link CfnUserProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnUserProps { private final java.lang.String authenticationType; private final java.lang.String userName; private final java.lang.String firstName; private final java.lang.String lastName; private final java.lang.String messageAction; /** * 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.authenticationType = this.jsiiGet("authenticationType", java.lang.String.class); this.userName = this.jsiiGet("userName", java.lang.String.class); this.firstName = this.jsiiGet("firstName", java.lang.String.class); this.lastName = this.jsiiGet("lastName", java.lang.String.class); this.messageAction = this.jsiiGet("messageAction", java.lang.String.class); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ private Jsii$Proxy(final java.lang.String authenticationType, final java.lang.String userName, final java.lang.String firstName, final java.lang.String lastName, final java.lang.String messageAction) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.authenticationType = java.util.Objects.requireNonNull(authenticationType, "authenticationType is required"); this.userName = java.util.Objects.requireNonNull(userName, "userName is required"); this.firstName = firstName; this.lastName = lastName; this.messageAction = messageAction; } @Override public java.lang.String getAuthenticationType() { return this.authenticationType; } @Override public java.lang.String getUserName() { return this.userName; } @Override public java.lang.String getFirstName() { return this.firstName; } @Override public java.lang.String getLastName() { return this.lastName; } @Override public java.lang.String getMessageAction() { return this.messageAction; } @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("authenticationType", om.valueToTree(this.getAuthenticationType())); data.set("userName", om.valueToTree(this.getUserName())); if (this.getFirstName() != null) { data.set("firstName", om.valueToTree(this.getFirstName())); } if (this.getLastName() != null) { data.set("lastName", om.valueToTree(this.getLastName())); } if (this.getMessageAction() != null) { data.set("messageAction", om.valueToTree(this.getMessageAction())); } 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.CfnUserProps")); 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; CfnUserProps.Jsii$Proxy that = (CfnUserProps.Jsii$Proxy) o; if (!authenticationType.equals(that.authenticationType)) return false; if (!userName.equals(that.userName)) return false; if (this.firstName != null ? !this.firstName.equals(that.firstName) : that.firstName != null) return false; if (this.lastName != null ? !this.lastName.equals(that.lastName) : that.lastName != null) return false; return this.messageAction != null ? this.messageAction.equals(that.messageAction) : that.messageAction == null; } @Override public int hashCode() { int result = this.authenticationType.hashCode(); result = 31 * result + (this.userName.hashCode()); result = 31 * result + (this.firstName != null ? this.firstName.hashCode() : 0); result = 31 * result + (this.lastName != null ? this.lastName.hashCode() : 0); result = 31 * result + (this.messageAction != null ? this.messageAction.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy