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

com.google.api.services.gkebackup.v1.model.VolumeRestore Maven / Gradle / Ivy

There is a newer version: v1-rev20241002-2.0.0
Show newest version
/*
 * 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.gkebackup.v1.model;

/**
 * Represents the operation of restoring a volume from a VolumeBackup. Next id: 13
 *
 * 

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 Backup for GKE 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 VolumeRestore extends com.google.api.client.json.GenericJson { /** * Output only. The timestamp when the associated underlying volume restoration completed. * The value may be {@code null}. */ @com.google.api.client.util.Key private String completeTime; /** * Output only. The timestamp when this VolumeRestore resource was created. * The value may be {@code null}. */ @com.google.api.client.util.Key private String createTime; /** * Output only. `etag` is used for optimistic concurrency control as a way to help prevent * simultaneous updates of a volume restore from overwriting each other. It is strongly suggested * that systems make use of the `etag` in the read-modify-write cycle to perform volume restore * updates in order to avoid race conditions. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String etag; /** * Output only. Full name of the VolumeRestore resource. Format: * `projects/locations/restorePlans/restores/volumeRestores` * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Output only. The current state of this VolumeRestore. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String state; /** * Output only. A human readable message explaining why the VolumeRestore is in its current state. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String stateMessage; /** * Output only. The reference to the target Kubernetes PVC to be restored. * The value may be {@code null}. */ @com.google.api.client.util.Key private NamespacedName targetPvc; /** * Output only. Server generated global unique identifier of * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String uid; /** * Output only. The timestamp when this VolumeRestore resource was last updated. * The value may be {@code null}. */ @com.google.api.client.util.Key private String updateTime; /** * Output only. The full name of the VolumeBackup from which the volume will be restored. Format: * `projects/locations/backupPlans/backups/volumeBackups`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String volumeBackup; /** * Output only. A storage system-specific opaque handler to the underlying volume created for the * target PVC from the volume backup. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String volumeHandle; /** * Output only. The type of volume provisioned * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String volumeType; /** * Output only. The timestamp when the associated underlying volume restoration completed. * @return value or {@code null} for none */ public String getCompleteTime() { return completeTime; } /** * Output only. The timestamp when the associated underlying volume restoration completed. * @param completeTime completeTime or {@code null} for none */ public VolumeRestore setCompleteTime(String completeTime) { this.completeTime = completeTime; return this; } /** * Output only. The timestamp when this VolumeRestore resource was created. * @return value or {@code null} for none */ public String getCreateTime() { return createTime; } /** * Output only. The timestamp when this VolumeRestore resource was created. * @param createTime createTime or {@code null} for none */ public VolumeRestore setCreateTime(String createTime) { this.createTime = createTime; return this; } /** * Output only. `etag` is used for optimistic concurrency control as a way to help prevent * simultaneous updates of a volume restore from overwriting each other. It is strongly suggested * that systems make use of the `etag` in the read-modify-write cycle to perform volume restore * updates in order to avoid race conditions. * @return value or {@code null} for none */ public java.lang.String getEtag() { return etag; } /** * Output only. `etag` is used for optimistic concurrency control as a way to help prevent * simultaneous updates of a volume restore from overwriting each other. It is strongly suggested * that systems make use of the `etag` in the read-modify-write cycle to perform volume restore * updates in order to avoid race conditions. * @param etag etag or {@code null} for none */ public VolumeRestore setEtag(java.lang.String etag) { this.etag = etag; return this; } /** * Output only. Full name of the VolumeRestore resource. Format: * `projects/locations/restorePlans/restores/volumeRestores` * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Output only. Full name of the VolumeRestore resource. Format: * `projects/locations/restorePlans/restores/volumeRestores` * @param name name or {@code null} for none */ public VolumeRestore setName(java.lang.String name) { this.name = name; return this; } /** * Output only. The current state of this VolumeRestore. * @return value or {@code null} for none */ public java.lang.String getState() { return state; } /** * Output only. The current state of this VolumeRestore. * @param state state or {@code null} for none */ public VolumeRestore setState(java.lang.String state) { this.state = state; return this; } /** * Output only. A human readable message explaining why the VolumeRestore is in its current state. * @return value or {@code null} for none */ public java.lang.String getStateMessage() { return stateMessage; } /** * Output only. A human readable message explaining why the VolumeRestore is in its current state. * @param stateMessage stateMessage or {@code null} for none */ public VolumeRestore setStateMessage(java.lang.String stateMessage) { this.stateMessage = stateMessage; return this; } /** * Output only. The reference to the target Kubernetes PVC to be restored. * @return value or {@code null} for none */ public NamespacedName getTargetPvc() { return targetPvc; } /** * Output only. The reference to the target Kubernetes PVC to be restored. * @param targetPvc targetPvc or {@code null} for none */ public VolumeRestore setTargetPvc(NamespacedName targetPvc) { this.targetPvc = targetPvc; return this; } /** * Output only. Server generated global unique identifier of * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format. * @return value or {@code null} for none */ public java.lang.String getUid() { return uid; } /** * Output only. Server generated global unique identifier of * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format. * @param uid uid or {@code null} for none */ public VolumeRestore setUid(java.lang.String uid) { this.uid = uid; return this; } /** * Output only. The timestamp when this VolumeRestore resource was last updated. * @return value or {@code null} for none */ public String getUpdateTime() { return updateTime; } /** * Output only. The timestamp when this VolumeRestore resource was last updated. * @param updateTime updateTime or {@code null} for none */ public VolumeRestore setUpdateTime(String updateTime) { this.updateTime = updateTime; return this; } /** * Output only. The full name of the VolumeBackup from which the volume will be restored. Format: * `projects/locations/backupPlans/backups/volumeBackups`. * @return value or {@code null} for none */ public java.lang.String getVolumeBackup() { return volumeBackup; } /** * Output only. The full name of the VolumeBackup from which the volume will be restored. Format: * `projects/locations/backupPlans/backups/volumeBackups`. * @param volumeBackup volumeBackup or {@code null} for none */ public VolumeRestore setVolumeBackup(java.lang.String volumeBackup) { this.volumeBackup = volumeBackup; return this; } /** * Output only. A storage system-specific opaque handler to the underlying volume created for the * target PVC from the volume backup. * @return value or {@code null} for none */ public java.lang.String getVolumeHandle() { return volumeHandle; } /** * Output only. A storage system-specific opaque handler to the underlying volume created for the * target PVC from the volume backup. * @param volumeHandle volumeHandle or {@code null} for none */ public VolumeRestore setVolumeHandle(java.lang.String volumeHandle) { this.volumeHandle = volumeHandle; return this; } /** * Output only. The type of volume provisioned * @return value or {@code null} for none */ public java.lang.String getVolumeType() { return volumeType; } /** * Output only. The type of volume provisioned * @param volumeType volumeType or {@code null} for none */ public VolumeRestore setVolumeType(java.lang.String volumeType) { this.volumeType = volumeType; return this; } @Override public VolumeRestore set(String fieldName, Object value) { return (VolumeRestore) super.set(fieldName, value); } @Override public VolumeRestore clone() { return (VolumeRestore) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy