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

org.cdk8s.plus31.AzureDiskVolumeOptions Maven / Gradle / Ivy

package org.cdk8s.plus31;

/**
 * Options of Volume.fromAzureDisk.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.104.0 (build e79254c)", date = "2024-10-12T12:14:17.300Z")
@software.amazon.jsii.Jsii(module = org.cdk8s.plus31.$Module.class, fqn = "cdk8s-plus-31.AzureDiskVolumeOptions")
@software.amazon.jsii.Jsii.Proxy(AzureDiskVolumeOptions.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface AzureDiskVolumeOptions extends software.amazon.jsii.JsiiSerializable {

    /**
     * Host Caching mode.
     * 

* Default: - AzureDiskPersistentVolumeCachingMode.NONE. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable org.cdk8s.plus31.AzureDiskPersistentVolumeCachingMode getCachingMode() { return null; } /** * Filesystem type to mount. *

* Must be a filesystem type supported by the host operating system. *

* Default: 'ext4' */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getFsType() { return null; } /** * Kind of disk. *

* Default: AzureDiskPersistentVolumeKind.SHARED */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable org.cdk8s.plus31.AzureDiskPersistentVolumeKind getKind() { return null; } /** * The volume name. *

* Default: - auto-generated */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getName() { return null; } /** * Force the ReadOnly setting in VolumeMounts. *

* Default: false */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Boolean getReadOnly() { return null; } /** * @return a {@link Builder} of {@link AzureDiskVolumeOptions} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link AzureDiskVolumeOptions} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { org.cdk8s.plus31.AzureDiskPersistentVolumeCachingMode cachingMode; java.lang.String fsType; org.cdk8s.plus31.AzureDiskPersistentVolumeKind kind; java.lang.String name; java.lang.Boolean readOnly; /** * Sets the value of {@link AzureDiskVolumeOptions#getCachingMode} * @param cachingMode Host Caching mode. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder cachingMode(org.cdk8s.plus31.AzureDiskPersistentVolumeCachingMode cachingMode) { this.cachingMode = cachingMode; return this; } /** * Sets the value of {@link AzureDiskVolumeOptions#getFsType} * @param fsType Filesystem type to mount. * Must be a filesystem type supported by the host operating system. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder fsType(java.lang.String fsType) { this.fsType = fsType; return this; } /** * Sets the value of {@link AzureDiskVolumeOptions#getKind} * @param kind Kind of disk. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder kind(org.cdk8s.plus31.AzureDiskPersistentVolumeKind kind) { this.kind = kind; return this; } /** * Sets the value of {@link AzureDiskVolumeOptions#getName} * @param name The volume name. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder name(java.lang.String name) { this.name = name; return this; } /** * Sets the value of {@link AzureDiskVolumeOptions#getReadOnly} * @param readOnly Force the ReadOnly setting in VolumeMounts. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder readOnly(java.lang.Boolean readOnly) { this.readOnly = readOnly; return this; } /** * Builds the configured instance. * @return a new instance of {@link AzureDiskVolumeOptions} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public AzureDiskVolumeOptions build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link AzureDiskVolumeOptions} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AzureDiskVolumeOptions { private final org.cdk8s.plus31.AzureDiskPersistentVolumeCachingMode cachingMode; private final java.lang.String fsType; private final org.cdk8s.plus31.AzureDiskPersistentVolumeKind kind; private final java.lang.String name; private final java.lang.Boolean readOnly; /** * 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.cachingMode = software.amazon.jsii.Kernel.get(this, "cachingMode", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus31.AzureDiskPersistentVolumeCachingMode.class)); this.fsType = software.amazon.jsii.Kernel.get(this, "fsType", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.kind = software.amazon.jsii.Kernel.get(this, "kind", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus31.AzureDiskPersistentVolumeKind.class)); this.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.readOnly = software.amazon.jsii.Kernel.get(this, "readOnly", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.cachingMode = builder.cachingMode; this.fsType = builder.fsType; this.kind = builder.kind; this.name = builder.name; this.readOnly = builder.readOnly; } @Override public final org.cdk8s.plus31.AzureDiskPersistentVolumeCachingMode getCachingMode() { return this.cachingMode; } @Override public final java.lang.String getFsType() { return this.fsType; } @Override public final org.cdk8s.plus31.AzureDiskPersistentVolumeKind getKind() { return this.kind; } @Override public final java.lang.String getName() { return this.name; } @Override public final java.lang.Boolean getReadOnly() { return this.readOnly; } @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(); if (this.getCachingMode() != null) { data.set("cachingMode", om.valueToTree(this.getCachingMode())); } if (this.getFsType() != null) { data.set("fsType", om.valueToTree(this.getFsType())); } if (this.getKind() != null) { data.set("kind", om.valueToTree(this.getKind())); } if (this.getName() != null) { data.set("name", om.valueToTree(this.getName())); } if (this.getReadOnly() != null) { data.set("readOnly", om.valueToTree(this.getReadOnly())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("cdk8s-plus-31.AzureDiskVolumeOptions")); 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; AzureDiskVolumeOptions.Jsii$Proxy that = (AzureDiskVolumeOptions.Jsii$Proxy) o; if (this.cachingMode != null ? !this.cachingMode.equals(that.cachingMode) : that.cachingMode != null) return false; if (this.fsType != null ? !this.fsType.equals(that.fsType) : that.fsType != null) return false; if (this.kind != null ? !this.kind.equals(that.kind) : that.kind != null) return false; if (this.name != null ? !this.name.equals(that.name) : that.name != null) return false; return this.readOnly != null ? this.readOnly.equals(that.readOnly) : that.readOnly == null; } @Override public final int hashCode() { int result = this.cachingMode != null ? this.cachingMode.hashCode() : 0; result = 31 * result + (this.fsType != null ? this.fsType.hashCode() : 0); result = 31 * result + (this.kind != null ? this.kind.hashCode() : 0); result = 31 * result + (this.name != null ? this.name.hashCode() : 0); result = 31 * result + (this.readOnly != null ? this.readOnly.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy