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

software.amazon.awscdk.services.codebuild.EfsFileSystemLocationProps Maven / Gradle / Ivy

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

/**
 * Construction properties for {@link EfsFileSystemLocation}.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.27.0 (build 07d848a)", date = "2021-04-12T10:04:54.698Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.codebuild.$Module.class, fqn = "@aws-cdk/aws-codebuild.EfsFileSystemLocationProps")
@software.amazon.jsii.Jsii.Proxy(EfsFileSystemLocationProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface EfsFileSystemLocationProps extends software.amazon.jsii.JsiiSerializable {

    /**
     * The name used to access a file system created by Amazon EFS.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.String getIdentifier();

    /**
     * A string that specifies the location of the file system, like Amazon EFS.
     * 

* Example: *

*

{@code
     * // Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
     * 'fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory'.get();}
*/ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getLocation(); /** * The location in the container where you mount the file system. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getMountPoint(); /** * The mount options for a file system such as Amazon EFS. *

* Default: 'nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2'. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getMountOptions() { return null; } /** * @return a {@link Builder} of {@link EfsFileSystemLocationProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link EfsFileSystemLocationProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { private java.lang.String identifier; private java.lang.String location; private java.lang.String mountPoint; private java.lang.String mountOptions; /** * Sets the value of {@link EfsFileSystemLocationProps#getIdentifier} * @param identifier The name used to access a file system created by Amazon EFS. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder identifier(java.lang.String identifier) { this.identifier = identifier; return this; } /** * Sets the value of {@link EfsFileSystemLocationProps#getLocation} * @param location A string that specifies the location of the file system, like Amazon EFS. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder location(java.lang.String location) { this.location = location; return this; } /** * Sets the value of {@link EfsFileSystemLocationProps#getMountPoint} * @param mountPoint The location in the container where you mount the file system. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder mountPoint(java.lang.String mountPoint) { this.mountPoint = mountPoint; return this; } /** * Sets the value of {@link EfsFileSystemLocationProps#getMountOptions} * @param mountOptions The mount options for a file system such as Amazon EFS. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder mountOptions(java.lang.String mountOptions) { this.mountOptions = mountOptions; return this; } /** * Builds the configured instance. * @return a new instance of {@link EfsFileSystemLocationProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public EfsFileSystemLocationProps build() { return new Jsii$Proxy(identifier, location, mountPoint, mountOptions); } } /** * An implementation for {@link EfsFileSystemLocationProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements EfsFileSystemLocationProps { private final java.lang.String identifier; private final java.lang.String location; private final java.lang.String mountPoint; private final java.lang.String mountOptions; /** * 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.identifier = software.amazon.jsii.Kernel.get(this, "identifier", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.location = software.amazon.jsii.Kernel.get(this, "location", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.mountPoint = software.amazon.jsii.Kernel.get(this, "mountPoint", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.mountOptions = software.amazon.jsii.Kernel.get(this, "mountOptions", 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 identifier, final java.lang.String location, final java.lang.String mountPoint, final java.lang.String mountOptions) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.identifier = java.util.Objects.requireNonNull(identifier, "identifier is required"); this.location = java.util.Objects.requireNonNull(location, "location is required"); this.mountPoint = java.util.Objects.requireNonNull(mountPoint, "mountPoint is required"); this.mountOptions = mountOptions; } @Override public final java.lang.String getIdentifier() { return this.identifier; } @Override public final java.lang.String getLocation() { return this.location; } @Override public final java.lang.String getMountPoint() { return this.mountPoint; } @Override public final java.lang.String getMountOptions() { return this.mountOptions; } @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("identifier", om.valueToTree(this.getIdentifier())); data.set("location", om.valueToTree(this.getLocation())); data.set("mountPoint", om.valueToTree(this.getMountPoint())); if (this.getMountOptions() != null) { data.set("mountOptions", om.valueToTree(this.getMountOptions())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/aws-codebuild.EfsFileSystemLocationProps")); 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; EfsFileSystemLocationProps.Jsii$Proxy that = (EfsFileSystemLocationProps.Jsii$Proxy) o; if (!identifier.equals(that.identifier)) return false; if (!location.equals(that.location)) return false; if (!mountPoint.equals(that.mountPoint)) return false; return this.mountOptions != null ? this.mountOptions.equals(that.mountOptions) : that.mountOptions == null; } @Override public final int hashCode() { int result = this.identifier.hashCode(); result = 31 * result + (this.location.hashCode()); result = 31 * result + (this.mountPoint.hashCode()); result = 31 * result + (this.mountOptions != null ? this.mountOptions.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy