public final class InstancesSetLabelsRequest
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: http://code.google.com/p/google-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
InstancesSetLabelsRequest() |
Modifier and Type | Method and Description |
---|---|
InstancesSetLabelsRequest |
clone() |
byte[] |
decodeLabelFingerprint()
Fingerprint of the previous set of labels for this resource, used to prevent conflicts.
|
InstancesSetLabelsRequest |
encodeLabelFingerprint(byte[] labelFingerprint)
Fingerprint of the previous set of labels for this resource, used to prevent conflicts.
|
java.lang.String |
getLabelFingerprint()
Fingerprint of the previous set of labels for this resource, used to prevent conflicts.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
The new labels for the resource, in the form of key/value pairs.
|
InstancesSetLabelsRequest |
set(java.lang.String fieldName,
java.lang.Object value) |
InstancesSetLabelsRequest |
setLabelFingerprint(java.lang.String labelFingerprint)
Fingerprint of the previous set of labels for this resource, used to prevent conflicts.
|
InstancesSetLabelsRequest |
setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
The new labels for the resource, in the form of key/value pairs.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.String getLabelFingerprint()
null
for nonedecodeLabelFingerprint()
public byte[] decodeLabelFingerprint()
null
for nonegetLabelFingerprint()
public InstancesSetLabelsRequest setLabelFingerprint(java.lang.String labelFingerprint)
labelFingerprint
- labelFingerprint or null
for none#encodeLabelFingerprint()
public InstancesSetLabelsRequest encodeLabelFingerprint(byte[] labelFingerprint)
The value is encoded Base64 or {@code null} for none.
public java.util.Map<java.lang.String,java.lang.String> getLabels()
null
for nonepublic InstancesSetLabelsRequest setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
labels
- labels or null
for nonepublic InstancesSetLabelsRequest set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public InstancesSetLabelsRequest clone()
clone
in class com.google.api.client.json.GenericJson