software.amazon.awscdk.services.transfer.CfnUser Maven / Gradle / Ivy
Show all versions of transfer Show documentation
package software.amazon.awscdk.services.transfer;
/**
* A CloudFormation `AWS::Transfer::User`.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.30.0 (build adae23f)", date = "2021-06-17T00:23:00.179Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.transfer.$Module.class, fqn = "@aws-cdk/aws-transfer.CfnUser")
public class CfnUser extends software.amazon.awscdk.core.CfnResource implements software.amazon.awscdk.core.IInspectable {
protected CfnUser(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected CfnUser(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
static {
CFN_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.transfer.CfnUser.class, "CFN_RESOURCE_TYPE_NAME", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Create a new `AWS::Transfer::User`.
*
* @param scope - scope in which this resource is defined. This parameter is required.
* @param id - scoped id of the resource. This parameter is required.
* @param props - resource properties. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public CfnUser(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.transfer.CfnUserProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* Examines the CloudFormation resource and discloses attributes.
*
* @param inspector - tree inspector to collect and process attributes. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public void inspect(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.TreeInspector inspector) {
software.amazon.jsii.Kernel.call(this, "inspect", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(inspector, "inspector is required") });
}
/**
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
protected @org.jetbrains.annotations.NotNull java.util.Map renderProperties(final @org.jetbrains.annotations.NotNull java.util.Map props) {
return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.call(this, "renderProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(props, "props is required") }));
}
/**
* The CloudFormation resource type name for this resource class.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final static java.lang.String CFN_RESOURCE_TYPE_NAME;
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getAttrArn() {
return software.amazon.jsii.Kernel.get(this, "attrArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getAttrServerId() {
return software.amazon.jsii.Kernel.get(this, "attrServerId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getAttrUserName() {
return software.amazon.jsii.Kernel.get(this, "attrUserName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
protected @org.jetbrains.annotations.NotNull java.util.Map getCfnProperties() {
return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.get(this, "cfnProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class))));
}
/**
* `AWS::Transfer::User.Tags`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.TagManager getTags() {
return software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.core.TagManager.class));
}
/**
* `AWS::Transfer::User.Role`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getRole() {
return software.amazon.jsii.Kernel.get(this, "role", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* `AWS::Transfer::User.Role`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setRole(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "role", java.util.Objects.requireNonNull(value, "role is required"));
}
/**
* `AWS::Transfer::User.ServerId`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getServerId() {
return software.amazon.jsii.Kernel.get(this, "serverId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* `AWS::Transfer::User.ServerId`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setServerId(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "serverId", java.util.Objects.requireNonNull(value, "serverId is required"));
}
/**
* `AWS::Transfer::User.UserName`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getUserName() {
return software.amazon.jsii.Kernel.get(this, "userName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* `AWS::Transfer::User.UserName`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setUserName(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "userName", java.util.Objects.requireNonNull(value, "userName is required"));
}
/**
* `AWS::Transfer::User.HomeDirectory`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.String getHomeDirectory() {
return software.amazon.jsii.Kernel.get(this, "homeDirectory", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* `AWS::Transfer::User.HomeDirectory`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setHomeDirectory(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "homeDirectory", value);
}
/**
* `AWS::Transfer::User.HomeDirectoryMappings`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.Object getHomeDirectoryMappings() {
return software.amazon.jsii.Kernel.get(this, "homeDirectoryMappings", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* `AWS::Transfer::User.HomeDirectoryMappings`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setHomeDirectoryMappings(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "homeDirectoryMappings", value);
}
/**
* `AWS::Transfer::User.HomeDirectoryMappings`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setHomeDirectoryMappings(final @org.jetbrains.annotations.Nullable java.util.List value) {
software.amazon.jsii.Kernel.set(this, "homeDirectoryMappings", value);
}
/**
* `AWS::Transfer::User.HomeDirectoryType`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.String getHomeDirectoryType() {
return software.amazon.jsii.Kernel.get(this, "homeDirectoryType", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* `AWS::Transfer::User.HomeDirectoryType`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setHomeDirectoryType(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "homeDirectoryType", value);
}
/**
* `AWS::Transfer::User.Policy`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.String getPolicy() {
return software.amazon.jsii.Kernel.get(this, "policy", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* `AWS::Transfer::User.Policy`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setPolicy(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "policy", value);
}
/**
* `AWS::Transfer::User.PosixProfile`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.Object getPosixProfile() {
return software.amazon.jsii.Kernel.get(this, "posixProfile", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* `AWS::Transfer::User.PosixProfile`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setPosixProfile(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "posixProfile", value);
}
/**
* `AWS::Transfer::User.PosixProfile`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setPosixProfile(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.transfer.CfnUser.PosixProfileProperty value) {
software.amazon.jsii.Kernel.set(this, "posixProfile", value);
}
/**
* `AWS::Transfer::User.SshPublicKeys`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.util.List getSshPublicKeys() {
return java.util.Optional.ofNullable((java.util.List)(software.amazon.jsii.Kernel.get(this, "sshPublicKeys", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))))).map(java.util.Collections::unmodifiableList).orElse(null);
}
/**
* `AWS::Transfer::User.SshPublicKeys`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setSshPublicKeys(final @org.jetbrains.annotations.Nullable java.util.List value) {
software.amazon.jsii.Kernel.set(this, "sshPublicKeys", value);
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.transfer.$Module.class, fqn = "@aws-cdk/aws-transfer.CfnUser.HomeDirectoryMapEntryProperty")
@software.amazon.jsii.Jsii.Proxy(HomeDirectoryMapEntryProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface HomeDirectoryMapEntryProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnUser.HomeDirectoryMapEntryProperty.Entry`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getEntry();
/**
* `CfnUser.HomeDirectoryMapEntryProperty.Target`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getTarget();
/**
* @return a {@link Builder} of {@link HomeDirectoryMapEntryProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link HomeDirectoryMapEntryProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.String entry;
private java.lang.String target;
/**
* Sets the value of {@link HomeDirectoryMapEntryProperty#getEntry}
* @param entry `CfnUser.HomeDirectoryMapEntryProperty.Entry`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder entry(java.lang.String entry) {
this.entry = entry;
return this;
}
/**
* Sets the value of {@link HomeDirectoryMapEntryProperty#getTarget}
* @param target `CfnUser.HomeDirectoryMapEntryProperty.Target`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder target(java.lang.String target) {
this.target = target;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link HomeDirectoryMapEntryProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public HomeDirectoryMapEntryProperty build() {
return new Jsii$Proxy(entry, target);
}
}
/**
* An implementation for {@link HomeDirectoryMapEntryProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements HomeDirectoryMapEntryProperty {
private final java.lang.String entry;
private final java.lang.String target;
/**
* 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.entry = software.amazon.jsii.Kernel.get(this, "entry", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.target = software.amazon.jsii.Kernel.get(this, "target", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.String entry, final java.lang.String target) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.entry = java.util.Objects.requireNonNull(entry, "entry is required");
this.target = java.util.Objects.requireNonNull(target, "target is required");
}
@Override
public final java.lang.String getEntry() {
return this.entry;
}
@Override
public final java.lang.String getTarget() {
return this.target;
}
@Override
@software.amazon.jsii.Internal
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("entry", om.valueToTree(this.getEntry()));
data.set("target", om.valueToTree(this.getTarget()));
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@aws-cdk/aws-transfer.CfnUser.HomeDirectoryMapEntryProperty"));
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 final boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
HomeDirectoryMapEntryProperty.Jsii$Proxy that = (HomeDirectoryMapEntryProperty.Jsii$Proxy) o;
if (!entry.equals(that.entry)) return false;
return this.target.equals(that.target);
}
@Override
public final int hashCode() {
int result = this.entry.hashCode();
result = 31 * result + (this.target.hashCode());
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.transfer.$Module.class, fqn = "@aws-cdk/aws-transfer.CfnUser.PosixProfileProperty")
@software.amazon.jsii.Jsii.Proxy(PosixProfileProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface PosixProfileProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnUser.PosixProfileProperty.Gid`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Number getGid();
/**
* `CfnUser.PosixProfileProperty.Uid`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Number getUid();
/**
* `CfnUser.PosixProfileProperty.SecondaryGids`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getSecondaryGids() {
return null;
}
/**
* @return a {@link Builder} of {@link PosixProfileProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link PosixProfileProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.Number gid;
private java.lang.Number uid;
private java.lang.Object secondaryGids;
/**
* Sets the value of {@link PosixProfileProperty#getGid}
* @param gid `CfnUser.PosixProfileProperty.Gid`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder gid(java.lang.Number gid) {
this.gid = gid;
return this;
}
/**
* Sets the value of {@link PosixProfileProperty#getUid}
* @param uid `CfnUser.PosixProfileProperty.Uid`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder uid(java.lang.Number uid) {
this.uid = uid;
return this;
}
/**
* Sets the value of {@link PosixProfileProperty#getSecondaryGids}
* @param secondaryGids `CfnUser.PosixProfileProperty.SecondaryGids`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder secondaryGids(software.amazon.awscdk.core.IResolvable secondaryGids) {
this.secondaryGids = secondaryGids;
return this;
}
/**
* Sets the value of {@link PosixProfileProperty#getSecondaryGids}
* @param secondaryGids `CfnUser.PosixProfileProperty.SecondaryGids`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder secondaryGids(java.util.List extends java.lang.Number> secondaryGids) {
this.secondaryGids = secondaryGids;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link PosixProfileProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public PosixProfileProperty build() {
return new Jsii$Proxy(gid, uid, secondaryGids);
}
}
/**
* An implementation for {@link PosixProfileProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PosixProfileProperty {
private final java.lang.Number gid;
private final java.lang.Number uid;
private final java.lang.Object secondaryGids;
/**
* 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.gid = software.amazon.jsii.Kernel.get(this, "gid", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.uid = software.amazon.jsii.Kernel.get(this, "uid", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.secondaryGids = software.amazon.jsii.Kernel.get(this, "secondaryGids", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.Number gid, final java.lang.Number uid, final java.lang.Object secondaryGids) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.gid = java.util.Objects.requireNonNull(gid, "gid is required");
this.uid = java.util.Objects.requireNonNull(uid, "uid is required");
this.secondaryGids = secondaryGids;
}
@Override
public final java.lang.Number getGid() {
return this.gid;
}
@Override
public final java.lang.Number getUid() {
return this.uid;
}
@Override
public final java.lang.Object getSecondaryGids() {
return this.secondaryGids;
}
@Override
@software.amazon.jsii.Internal
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("gid", om.valueToTree(this.getGid()));
data.set("uid", om.valueToTree(this.getUid()));
if (this.getSecondaryGids() != null) {
data.set("secondaryGids", om.valueToTree(this.getSecondaryGids()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@aws-cdk/aws-transfer.CfnUser.PosixProfileProperty"));
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 final boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PosixProfileProperty.Jsii$Proxy that = (PosixProfileProperty.Jsii$Proxy) o;
if (!gid.equals(that.gid)) return false;
if (!uid.equals(that.uid)) return false;
return this.secondaryGids != null ? this.secondaryGids.equals(that.secondaryGids) : that.secondaryGids == null;
}
@Override
public final int hashCode() {
int result = this.gid.hashCode();
result = 31 * result + (this.uid.hashCode());
result = 31 * result + (this.secondaryGids != null ? this.secondaryGids.hashCode() : 0);
return result;
}
}
}
/**
* A fluent builder for {@link software.amazon.awscdk.services.transfer.CfnUser}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope - scope in which this resource is defined. This parameter is required.
* @param id - scoped id of the resource. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static Builder create(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) {
return new Builder(scope, id);
}
private final software.amazon.awscdk.core.Construct scope;
private final java.lang.String id;
private final software.amazon.awscdk.services.transfer.CfnUserProps.Builder props;
private Builder(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new software.amazon.awscdk.services.transfer.CfnUserProps.Builder();
}
/**
* `AWS::Transfer::User.Role`.
*
* @return {@code this}
* @param role `AWS::Transfer::User.Role`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder role(final java.lang.String role) {
this.props.role(role);
return this;
}
/**
* `AWS::Transfer::User.ServerId`.
*
* @return {@code this}
* @param serverId `AWS::Transfer::User.ServerId`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder serverId(final java.lang.String serverId) {
this.props.serverId(serverId);
return this;
}
/**
* `AWS::Transfer::User.UserName`.
*
* @return {@code this}
* @param userName `AWS::Transfer::User.UserName`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder userName(final java.lang.String userName) {
this.props.userName(userName);
return this;
}
/**
* `AWS::Transfer::User.HomeDirectory`.
*
* @return {@code this}
* @param homeDirectory `AWS::Transfer::User.HomeDirectory`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder homeDirectory(final java.lang.String homeDirectory) {
this.props.homeDirectory(homeDirectory);
return this;
}
/**
* `AWS::Transfer::User.HomeDirectoryMappings`.
*
* @return {@code this}
* @param homeDirectoryMappings `AWS::Transfer::User.HomeDirectoryMappings`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder homeDirectoryMappings(final software.amazon.awscdk.core.IResolvable homeDirectoryMappings) {
this.props.homeDirectoryMappings(homeDirectoryMappings);
return this;
}
/**
* `AWS::Transfer::User.HomeDirectoryMappings`.
*
* @return {@code this}
* @param homeDirectoryMappings `AWS::Transfer::User.HomeDirectoryMappings`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder homeDirectoryMappings(final java.util.List extends java.lang.Object> homeDirectoryMappings) {
this.props.homeDirectoryMappings(homeDirectoryMappings);
return this;
}
/**
* `AWS::Transfer::User.HomeDirectoryType`.
*
* @return {@code this}
* @param homeDirectoryType `AWS::Transfer::User.HomeDirectoryType`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder homeDirectoryType(final java.lang.String homeDirectoryType) {
this.props.homeDirectoryType(homeDirectoryType);
return this;
}
/**
* `AWS::Transfer::User.Policy`.
*
* @return {@code this}
* @param policy `AWS::Transfer::User.Policy`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder policy(final java.lang.String policy) {
this.props.policy(policy);
return this;
}
/**
* `AWS::Transfer::User.PosixProfile`.
*
* @return {@code this}
* @param posixProfile `AWS::Transfer::User.PosixProfile`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder posixProfile(final software.amazon.awscdk.core.IResolvable posixProfile) {
this.props.posixProfile(posixProfile);
return this;
}
/**
* `AWS::Transfer::User.PosixProfile`.
*
* @return {@code this}
* @param posixProfile `AWS::Transfer::User.PosixProfile`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder posixProfile(final software.amazon.awscdk.services.transfer.CfnUser.PosixProfileProperty posixProfile) {
this.props.posixProfile(posixProfile);
return this;
}
/**
* `AWS::Transfer::User.SshPublicKeys`.
*
* @return {@code this}
* @param sshPublicKeys `AWS::Transfer::User.SshPublicKeys`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder sshPublicKeys(final java.util.List sshPublicKeys) {
this.props.sshPublicKeys(sshPublicKeys);
return this;
}
/**
* `AWS::Transfer::User.Tags`.
*
* @return {@code this}
* @param tags `AWS::Transfer::User.Tags`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder tags(final java.util.List extends software.amazon.awscdk.core.CfnTag> tags) {
this.props.tags(tags);
return this;
}
/**
* @returns a newly built instance of {@link software.amazon.awscdk.services.transfer.CfnUser}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public software.amazon.awscdk.services.transfer.CfnUser build() {
return new software.amazon.awscdk.services.transfer.CfnUser(
this.scope,
this.id,
this.props.build()
);
}
}
}