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

com.google.api.services.spanner.v1.model.EncryptionInfo Maven / Gradle / Ivy

There is a newer version: v1-rev20241119-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.spanner.v1.model;

/**
 * Encryption information for a Cloud Spanner database or backup.
 *
 * 

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 Spanner 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 EncryptionInfo extends com.google.api.client.json.GenericJson { /** * Output only. If present, the status of a recent encrypt/decrypt call on underlying data for * this database or backup. Regardless of status, data is always encrypted at rest. * The value may be {@code null}. */ @com.google.api.client.util.Key private Status encryptionStatus; /** * Output only. The type of encryption. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String encryptionType; /** * Output only. A Cloud KMS key version that is being used to protect the database or backup. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kmsKeyVersion; /** * Output only. If present, the status of a recent encrypt/decrypt call on underlying data for * this database or backup. Regardless of status, data is always encrypted at rest. * @return value or {@code null} for none */ public Status getEncryptionStatus() { return encryptionStatus; } /** * Output only. If present, the status of a recent encrypt/decrypt call on underlying data for * this database or backup. Regardless of status, data is always encrypted at rest. * @param encryptionStatus encryptionStatus or {@code null} for none */ public EncryptionInfo setEncryptionStatus(Status encryptionStatus) { this.encryptionStatus = encryptionStatus; return this; } /** * Output only. The type of encryption. * @return value or {@code null} for none */ public java.lang.String getEncryptionType() { return encryptionType; } /** * Output only. The type of encryption. * @param encryptionType encryptionType or {@code null} for none */ public EncryptionInfo setEncryptionType(java.lang.String encryptionType) { this.encryptionType = encryptionType; return this; } /** * Output only. A Cloud KMS key version that is being used to protect the database or backup. * @return value or {@code null} for none */ public java.lang.String getKmsKeyVersion() { return kmsKeyVersion; } /** * Output only. A Cloud KMS key version that is being used to protect the database or backup. * @param kmsKeyVersion kmsKeyVersion or {@code null} for none */ public EncryptionInfo setKmsKeyVersion(java.lang.String kmsKeyVersion) { this.kmsKeyVersion = kmsKeyVersion; return this; } @Override public EncryptionInfo set(String fieldName, Object value) { return (EncryptionInfo) super.set(fieldName, value); } @Override public EncryptionInfo clone() { return (EncryptionInfo) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy