
com.appscode.stash.client.models.V1alpha1FileGroup Maven / Gradle / Ivy
The newest version!
/*
* Stash
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v0.7.0
* Contact: [email protected]
*
* 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 com.appscode.stash.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.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* V1alpha1FileGroup
*/
public class V1alpha1FileGroup {
@SerializedName("path")
private String path = null;
@SerializedName("retentionPolicyName")
private String retentionPolicyName = null;
@SerializedName("tags")
private List tags = null;
public V1alpha1FileGroup path(String path) {
this.path = path;
return this;
}
/**
* Source of the backup volumeName:path
* @return path
**/
@ApiModelProperty(value = "Source of the backup volumeName:path")
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public V1alpha1FileGroup retentionPolicyName(String retentionPolicyName) {
this.retentionPolicyName = retentionPolicyName;
return this;
}
/**
* retention policy of snapshots
* @return retentionPolicyName
**/
@ApiModelProperty(value = "retention policy of snapshots")
public String getRetentionPolicyName() {
return retentionPolicyName;
}
public void setRetentionPolicyName(String retentionPolicyName) {
this.retentionPolicyName = retentionPolicyName;
}
public V1alpha1FileGroup tags(List tags) {
this.tags = tags;
return this;
}
public V1alpha1FileGroup addTagsItem(String tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList();
}
this.tags.add(tagsItem);
return this;
}
/**
* Tags of a snapshots
* @return tags
**/
@ApiModelProperty(value = "Tags of a snapshots")
public List getTags() {
return tags;
}
public void setTags(List tags) {
this.tags = tags;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1alpha1FileGroup v1alpha1FileGroup = (V1alpha1FileGroup) o;
return Objects.equals(this.path, v1alpha1FileGroup.path) &&
Objects.equals(this.retentionPolicyName, v1alpha1FileGroup.retentionPolicyName) &&
Objects.equals(this.tags, v1alpha1FileGroup.tags);
}
@Override
public int hashCode() {
return Objects.hash(path, retentionPolicyName, tags);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1alpha1FileGroup {\n");
sb.append(" path: ").append(toIndentedString(path)).append("\n");
sb.append(" retentionPolicyName: ").append(toIndentedString(retentionPolicyName)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).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