public final class CryptoKey extends 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
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CryptoKey() |
| Modifier and Type | Method and Description |
|---|---|
CryptoKey |
clone() |
String |
getCreateTime()
Output only.
|
Map<String,String> |
getLabels()
Labels with user-defined metadata.
|
String |
getName()
Output only.
|
String |
getNextRotationTime()
At next_rotation_time, the Key Management Service will automatically:
1.
|
CryptoKeyVersion |
getPrimary()
Output only.
|
String |
getPurpose()
Immutable.
|
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(String fieldName,
Object value) |
CryptoKey |
setCreateTime(String createTime)
Output only.
|
CryptoKey |
setLabels(Map<String,String> labels)
Labels with user-defined metadata.
|
CryptoKey |
setName(String name)
Output only.
|
CryptoKey |
setNextRotationTime(String nextRotationTime)
At next_rotation_time, the Key Management Service will automatically:
1.
|
CryptoKey |
setPrimary(CryptoKeyVersion primary)
Output only.
|
CryptoKey |
setPurpose(String purpose)
Immutable.
|
CryptoKey |
setRotationPeriod(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, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getCreateTime()
null for nonepublic CryptoKey setCreateTime(String createTime)
createTime - createTime or null for nonepublic Map<String,String> getLabels()
null for nonepublic CryptoKey setLabels(Map<String,String> labels)
labels - labels or null for nonepublic String getName()
null for nonepublic CryptoKey setName(String name)
name - name or null for nonepublic String getNextRotationTime()
null for nonepublic CryptoKey setNextRotationTime(String nextRotationTime)
nextRotationTime - nextRotationTime or null for nonepublic CryptoKeyVersion getPrimary()
null for nonepublic CryptoKey setPrimary(CryptoKeyVersion primary)
primary - primary or null for nonepublic String getPurpose()
null for nonepublic CryptoKey setPurpose(String purpose)
purpose - purpose or null for nonepublic String getRotationPeriod()
null for nonepublic CryptoKey setRotationPeriod(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(String fieldName, Object value)
set in class GenericJsonpublic CryptoKey clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.