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

com.google.api.services.backupdr.v1.model.CustomerEncryptionKey Maven / Gradle / Ivy

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

/**
 * A customer-supplied encryption key.
 *
 * 

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 and DR Service 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 CustomerEncryptionKey extends com.google.api.client.json.GenericJson { /** * Optional. The name of the encryption key that is stored in Google Cloud KMS. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kmsKeyName; /** * Optional. The service account being used for the encryption request for the given KMS key. If * absent, the Compute Engine default service account is used. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kmsKeyServiceAccount; /** * Optional. Specifies a 256-bit customer-supplied encryption key. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String rawKey; /** * Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt * this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String rsaEncryptedKey; /** * Optional. The name of the encryption key that is stored in Google Cloud KMS. * @return value or {@code null} for none */ public java.lang.String getKmsKeyName() { return kmsKeyName; } /** * Optional. The name of the encryption key that is stored in Google Cloud KMS. * @param kmsKeyName kmsKeyName or {@code null} for none */ public CustomerEncryptionKey setKmsKeyName(java.lang.String kmsKeyName) { this.kmsKeyName = kmsKeyName; return this; } /** * Optional. The service account being used for the encryption request for the given KMS key. If * absent, the Compute Engine default service account is used. * @return value or {@code null} for none */ public java.lang.String getKmsKeyServiceAccount() { return kmsKeyServiceAccount; } /** * Optional. The service account being used for the encryption request for the given KMS key. If * absent, the Compute Engine default service account is used. * @param kmsKeyServiceAccount kmsKeyServiceAccount or {@code null} for none */ public CustomerEncryptionKey setKmsKeyServiceAccount(java.lang.String kmsKeyServiceAccount) { this.kmsKeyServiceAccount = kmsKeyServiceAccount; return this; } /** * Optional. Specifies a 256-bit customer-supplied encryption key. * @return value or {@code null} for none */ public java.lang.String getRawKey() { return rawKey; } /** * Optional. Specifies a 256-bit customer-supplied encryption key. * @param rawKey rawKey or {@code null} for none */ public CustomerEncryptionKey setRawKey(java.lang.String rawKey) { this.rawKey = rawKey; return this; } /** * Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt * this resource. * @return value or {@code null} for none */ public java.lang.String getRsaEncryptedKey() { return rsaEncryptedKey; } /** * Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt * this resource. * @param rsaEncryptedKey rsaEncryptedKey or {@code null} for none */ public CustomerEncryptionKey setRsaEncryptedKey(java.lang.String rsaEncryptedKey) { this.rsaEncryptedKey = rsaEncryptedKey; return this; } @Override public CustomerEncryptionKey set(String fieldName, Object value) { return (CustomerEncryptionKey) super.set(fieldName, value); } @Override public CustomerEncryptionKey clone() { return (CustomerEncryptionKey) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy