
io.kubernetes.client.models.V1FlexPersistentVolumeSource Maven / Gradle / Ivy
/*
* Kubernetes
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1.11.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.kubernetes.client.models;
import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.kubernetes.client.models.V1SecretReference;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.
*/
@ApiModel(description = "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.")
public class V1FlexPersistentVolumeSource {
@SerializedName("driver")
private String driver = null;
@SerializedName("fsType")
private String fsType = null;
@SerializedName("options")
private Map options = null;
@SerializedName("readOnly")
private Boolean readOnly = null;
@SerializedName("secretRef")
private V1SecretReference secretRef = null;
public V1FlexPersistentVolumeSource driver(String driver) {
this.driver = driver;
return this;
}
/**
* Driver is the name of the driver to use for this volume.
* @return driver
**/
@ApiModelProperty(required = true, value = "Driver is the name of the driver to use for this volume.")
public String getDriver() {
return driver;
}
public void setDriver(String driver) {
this.driver = driver;
}
public V1FlexPersistentVolumeSource fsType(String fsType) {
this.fsType = fsType;
return this;
}
/**
* Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.
* @return fsType
**/
@ApiModelProperty(value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.")
public String getFsType() {
return fsType;
}
public void setFsType(String fsType) {
this.fsType = fsType;
}
public V1FlexPersistentVolumeSource options(Map options) {
this.options = options;
return this;
}
public V1FlexPersistentVolumeSource putOptionsItem(String key, String optionsItem) {
if (this.options == null) {
this.options = new HashMap();
}
this.options.put(key, optionsItem);
return this;
}
/**
* Optional: Extra command options if any.
* @return options
**/
@ApiModelProperty(value = "Optional: Extra command options if any.")
public Map getOptions() {
return options;
}
public void setOptions(Map options) {
this.options = options;
}
public V1FlexPersistentVolumeSource readOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
/**
* Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
* @return readOnly
**/
@ApiModelProperty(value = "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.")
public Boolean isReadOnly() {
return readOnly;
}
public void setReadOnly(Boolean readOnly) {
this.readOnly = readOnly;
}
public V1FlexPersistentVolumeSource secretRef(V1SecretReference secretRef) {
this.secretRef = secretRef;
return this;
}
/**
* Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.
* @return secretRef
**/
@ApiModelProperty(value = "Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.")
public V1SecretReference getSecretRef() {
return secretRef;
}
public void setSecretRef(V1SecretReference secretRef) {
this.secretRef = secretRef;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1FlexPersistentVolumeSource v1FlexPersistentVolumeSource = (V1FlexPersistentVolumeSource) o;
return Objects.equals(this.driver, v1FlexPersistentVolumeSource.driver) &&
Objects.equals(this.fsType, v1FlexPersistentVolumeSource.fsType) &&
Objects.equals(this.options, v1FlexPersistentVolumeSource.options) &&
Objects.equals(this.readOnly, v1FlexPersistentVolumeSource.readOnly) &&
Objects.equals(this.secretRef, v1FlexPersistentVolumeSource.secretRef);
}
@Override
public int hashCode() {
return Objects.hash(driver, fsType, options, readOnly, secretRef);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1FlexPersistentVolumeSource {\n");
sb.append(" driver: ").append(toIndentedString(driver)).append("\n");
sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n");
sb.append(" options: ").append(toIndentedString(options)).append("\n");
sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n");
sb.append(" secretRef: ").append(toIndentedString(secretRef)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy