public final class SetLabelsRequest
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 Google Kubernetes 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 |
|---|
SetLabelsRequest() |
| Modifier and Type | Method and Description |
|---|---|
SetLabelsRequest |
clone() |
java.lang.String |
getClusterId()
The name of the cluster.
|
java.lang.String |
getLabelFingerprint()
The fingerprint of the previous set of labels for this resource, used to detect conflicts.
|
java.lang.String |
getName()
The name (project, location, cluster id) of the cluster to set labels.
|
java.lang.String |
getProjectId()
The Google Developers Console [project ID or project
number](https://developers.google.com/console/help/new/#projectnumber).
|
java.util.Map<java.lang.String,java.lang.String> |
getResourceLabels()
The labels to set for that cluster.
|
java.lang.String |
getZone()
The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the
cluster resides.
|
SetLabelsRequest |
set(java.lang.String fieldName,
java.lang.Object value) |
SetLabelsRequest |
setClusterId(java.lang.String clusterId)
The name of the cluster.
|
SetLabelsRequest |
setLabelFingerprint(java.lang.String labelFingerprint)
The fingerprint of the previous set of labels for this resource, used to detect conflicts.
|
SetLabelsRequest |
setName(java.lang.String name)
The name (project, location, cluster id) of the cluster to set labels.
|
SetLabelsRequest |
setProjectId(java.lang.String projectId)
The Google Developers Console [project ID or project
number](https://developers.google.com/console/help/new/#projectnumber).
|
SetLabelsRequest |
setResourceLabels(java.util.Map<java.lang.String,java.lang.String> resourceLabels)
The labels to set for that cluster.
|
SetLabelsRequest |
setZone(java.lang.String zone)
The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the
cluster resides.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getClusterId()
null for nonepublic SetLabelsRequest setClusterId(java.lang.String clusterId)
clusterId - clusterId or null for nonepublic java.lang.String getLabelFingerprint()
null for nonepublic SetLabelsRequest setLabelFingerprint(java.lang.String labelFingerprint)
labelFingerprint - labelFingerprint or null for nonepublic java.lang.String getName()
null for nonepublic SetLabelsRequest setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getProjectId()
null for nonepublic SetLabelsRequest setProjectId(java.lang.String projectId)
projectId - projectId or null for nonepublic java.util.Map<java.lang.String,java.lang.String> getResourceLabels()
null for nonepublic SetLabelsRequest setResourceLabels(java.util.Map<java.lang.String,java.lang.String> resourceLabels)
resourceLabels - resourceLabels or null for nonepublic java.lang.String getZone()
null for nonepublic SetLabelsRequest setZone(java.lang.String zone)
zone - zone or null for nonepublic SetLabelsRequest set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic SetLabelsRequest clone()
clone in class com.google.api.client.json.GenericJson