public final class CryptoKey
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 Cloud Key Management Service (KMS) 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 |
---|
CryptoKey() |
Modifier and Type | Method and Description |
---|---|
CryptoKey |
clone() |
java.lang.String |
getCreateTime()
Output only.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Labels with user-defined metadata.
|
java.lang.String |
getName()
Output only.
|
java.lang.String |
getNextRotationTime()
At next_rotation_time, the Key Management Service will automatically:
1.
|
CryptoKeyVersion |
getPrimary()
Output only.
|
java.lang.String |
getPurpose()
Immutable.
|
java.lang.String |
getRotationPeriod()
next_rotation_time will be advanced by this period when the service automatically rotates a
key.
|
CryptoKeyVersionTemplate |
getVersionTemplate()
A template describing settings for new CryptoKeyVersion instances.
|
CryptoKey |
set(java.lang.String fieldName,
java.lang.Object value) |
CryptoKey |
setCreateTime(java.lang.String createTime)
Output only.
|
CryptoKey |
setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
Labels with user-defined metadata.
|
CryptoKey |
setName(java.lang.String name)
Output only.
|
CryptoKey |
setNextRotationTime(java.lang.String nextRotationTime)
At next_rotation_time, the Key Management Service will automatically:
1.
|
CryptoKey |
setPrimary(CryptoKeyVersion primary)
Output only.
|
CryptoKey |
setPurpose(java.lang.String purpose)
Immutable.
|
CryptoKey |
setRotationPeriod(java.lang.String rotationPeriod)
next_rotation_time will be advanced by this period when the service automatically rotates a
key.
|
CryptoKey |
setVersionTemplate(CryptoKeyVersionTemplate versionTemplate)
A template describing settings for new CryptoKeyVersion instances.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getCreateTime()
null
for nonepublic CryptoKey setCreateTime(java.lang.String createTime)
createTime
- createTime or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getLabels()
null
for nonepublic CryptoKey setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
labels
- labels or null
for nonepublic java.lang.String getName()
null
for nonepublic CryptoKey setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.String getNextRotationTime()
null
for nonepublic CryptoKey setNextRotationTime(java.lang.String nextRotationTime)
nextRotationTime
- nextRotationTime or null
for nonepublic CryptoKeyVersion getPrimary()
null
for nonepublic CryptoKey setPrimary(CryptoKeyVersion primary)
primary
- primary or null
for nonepublic java.lang.String getPurpose()
null
for nonepublic CryptoKey setPurpose(java.lang.String purpose)
purpose
- purpose or null
for nonepublic java.lang.String getRotationPeriod()
null
for nonepublic CryptoKey setRotationPeriod(java.lang.String rotationPeriod)
rotationPeriod
- rotationPeriod or null
for nonepublic CryptoKeyVersionTemplate getVersionTemplate()
null
for nonepublic CryptoKey setVersionTemplate(CryptoKeyVersionTemplate versionTemplate)
versionTemplate
- versionTemplate or null
for nonepublic CryptoKey set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public CryptoKey clone()
clone
in class com.google.api.client.json.GenericJson