com.google.api.services.file.v1.model.Snapshot Maven / Gradle / Ivy
/*
* 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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.file.v1.model;
/**
* A Filestore snapshot.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Filestore API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Snapshot extends com.google.api.client.json.GenericJson {
/**
* Output only. The time when the snapshot was created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;
/**
* A description of the snapshot with 2048 characters or less. Requests with longer descriptions
* will be rejected.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String description;
/**
* Output only. The amount of bytes needed to allocate a full copy of the snapshot content
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long filesystemUsedBytes;
/**
* Resource labels to represent user provided metadata.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map labels;
/**
* Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/
* {location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Output only. The snapshot state.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String state;
/**
* Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example:
* "123/environment": "production", "123/costCenter": "marketing"
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map tags;
/**
* Output only. The time when the snapshot was created.
* @return value or {@code null} for none
*/
public String getCreateTime() {
return createTime;
}
/**
* Output only. The time when the snapshot was created.
* @param createTime createTime or {@code null} for none
*/
public Snapshot setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* A description of the snapshot with 2048 characters or less. Requests with longer descriptions
* will be rejected.
* @return value or {@code null} for none
*/
public java.lang.String getDescription() {
return description;
}
/**
* A description of the snapshot with 2048 characters or less. Requests with longer descriptions
* will be rejected.
* @param description description or {@code null} for none
*/
public Snapshot setDescription(java.lang.String description) {
this.description = description;
return this;
}
/**
* Output only. The amount of bytes needed to allocate a full copy of the snapshot content
* @return value or {@code null} for none
*/
public java.lang.Long getFilesystemUsedBytes() {
return filesystemUsedBytes;
}
/**
* Output only. The amount of bytes needed to allocate a full copy of the snapshot content
* @param filesystemUsedBytes filesystemUsedBytes or {@code null} for none
*/
public Snapshot setFilesystemUsedBytes(java.lang.Long filesystemUsedBytes) {
this.filesystemUsedBytes = filesystemUsedBytes;
return this;
}
/**
* Resource labels to represent user provided metadata.
* @return value or {@code null} for none
*/
public java.util.Map getLabels() {
return labels;
}
/**
* Resource labels to represent user provided metadata.
* @param labels labels or {@code null} for none
*/
public Snapshot setLabels(java.util.Map labels) {
this.labels = labels;
return this;
}
/**
* Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/
* {location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/
* {location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
* @param name name or {@code null} for none
*/
public Snapshot setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Output only. The snapshot state.
* @return value or {@code null} for none
*/
public java.lang.String getState() {
return state;
}
/**
* Output only. The snapshot state.
* @param state state or {@code null} for none
*/
public Snapshot setState(java.lang.String state) {
this.state = state;
return this;
}
/**
* Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example:
* "123/environment": "production", "123/costCenter": "marketing"
* @return value or {@code null} for none
*/
public java.util.Map getTags() {
return tags;
}
/**
* Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example:
* "123/environment": "production", "123/costCenter": "marketing"
* @param tags tags or {@code null} for none
*/
public Snapshot setTags(java.util.Map tags) {
this.tags = tags;
return this;
}
@Override
public Snapshot set(String fieldName, Object value) {
return (Snapshot) super.set(fieldName, value);
}
@Override
public Snapshot clone() {
return (Snapshot) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy