io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource Maven / Gradle / Ivy
/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.kubernetes.client.openapi.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support
* ownership management or SELinux relabeling.
*/
@ApiModel(
description =
"Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.")
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
date = "2021-01-04T09:55:14.976Z[Etc/UTC]")
public class V1GlusterfsVolumeSource {
public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints";
@SerializedName(SERIALIZED_NAME_ENDPOINTS)
private String endpoints;
public static final String SERIALIZED_NAME_PATH = "path";
@SerializedName(SERIALIZED_NAME_PATH)
private String path;
public static final String SERIALIZED_NAME_READ_ONLY = "readOnly";
@SerializedName(SERIALIZED_NAME_READ_ONLY)
private Boolean readOnly;
public V1GlusterfsVolumeSource endpoints(String endpoints) {
this.endpoints = endpoints;
return this;
}
/**
* EndpointsName is the endpoint name that details Glusterfs topology. More info:
* https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
*
* @return endpoints
*/
@ApiModelProperty(
required = true,
value =
"EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod")
public String getEndpoints() {
return endpoints;
}
public void setEndpoints(String endpoints) {
this.endpoints = endpoints;
}
public V1GlusterfsVolumeSource path(String path) {
this.path = path;
return this;
}
/**
* Path is the Glusterfs volume path. More info:
* https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
*
* @return path
*/
@ApiModelProperty(
required = true,
value =
"Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod")
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public V1GlusterfsVolumeSource readOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
/**
* ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
* Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
*
* @return readOnly
*/
@javax.annotation.Nullable
@ApiModelProperty(
value =
"ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod")
public Boolean getReadOnly() {
return readOnly;
}
public void setReadOnly(Boolean readOnly) {
this.readOnly = readOnly;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1GlusterfsVolumeSource v1GlusterfsVolumeSource = (V1GlusterfsVolumeSource) o;
return Objects.equals(this.endpoints, v1GlusterfsVolumeSource.endpoints)
&& Objects.equals(this.path, v1GlusterfsVolumeSource.path)
&& Objects.equals(this.readOnly, v1GlusterfsVolumeSource.readOnly);
}
@Override
public int hashCode() {
return Objects.hash(endpoints, path, readOnly);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1GlusterfsVolumeSource {\n");
sb.append(" endpoints: ").append(toIndentedString(endpoints)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).append("\n");
sb.append(" readOnly: ").append(toIndentedString(readOnly)).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 ");
}
}