public final class CustomerEncryptionKey
extends com.google.api.client.json.GenericJson
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 Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
CustomerEncryptionKey() |
Modifier and Type | Method and Description |
---|---|
CustomerEncryptionKey |
clone() |
java.lang.String |
getRawKey()
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either
encrypt or decrypt this resource.
|
java.lang.String |
getSha256()
[Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key
that protects this resource.
|
CustomerEncryptionKey |
set(java.lang.String fieldName,
java.lang.Object value) |
CustomerEncryptionKey |
setRawKey(java.lang.String rawKey)
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either
encrypt or decrypt this resource.
|
CustomerEncryptionKey |
setSha256(java.lang.String sha256)
[Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key
that protects this resource.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.String getRawKey()
null
for nonepublic CustomerEncryptionKey setRawKey(java.lang.String rawKey)
rawKey
- rawKey or null
for nonepublic java.lang.String getSha256()
null
for nonepublic CustomerEncryptionKey setSha256(java.lang.String sha256)
sha256
- sha256 or null
for nonepublic CustomerEncryptionKey set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public CustomerEncryptionKey clone()
clone
in class com.google.api.client.json.GenericJson