public final class SetNetworkPolicyRequest
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 |
|---|
SetNetworkPolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
SetNetworkPolicyRequest |
clone() |
java.lang.String |
getClusterId()
The name of the cluster.
|
java.lang.String |
getName()
The name (project, location, cluster id) of the cluster to set networking policy.
|
NetworkPolicy |
getNetworkPolicy()
Configuration options for the NetworkPolicy feature.
|
java.lang.String |
getProjectId()
The Google Developers Console [project ID or project
number](https://developers.google.com/console/help/new/#projectnumber).
|
java.lang.String |
getZone()
The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the
cluster resides.
|
SetNetworkPolicyRequest |
set(java.lang.String fieldName,
java.lang.Object value) |
SetNetworkPolicyRequest |
setClusterId(java.lang.String clusterId)
The name of the cluster.
|
SetNetworkPolicyRequest |
setName(java.lang.String name)
The name (project, location, cluster id) of the cluster to set networking policy.
|
SetNetworkPolicyRequest |
setNetworkPolicy(NetworkPolicy networkPolicy)
Configuration options for the NetworkPolicy feature.
|
SetNetworkPolicyRequest |
setProjectId(java.lang.String projectId)
The Google Developers Console [project ID or project
number](https://developers.google.com/console/help/new/#projectnumber).
|
SetNetworkPolicyRequest |
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 SetNetworkPolicyRequest setClusterId(java.lang.String clusterId)
clusterId - clusterId or null for nonepublic java.lang.String getName()
null for nonepublic SetNetworkPolicyRequest setName(java.lang.String name)
name - name or null for nonepublic NetworkPolicy getNetworkPolicy()
null for nonepublic SetNetworkPolicyRequest setNetworkPolicy(NetworkPolicy networkPolicy)
networkPolicy - networkPolicy or null for nonepublic java.lang.String getProjectId()
null for nonepublic SetNetworkPolicyRequest setProjectId(java.lang.String projectId)
projectId - projectId or null for nonepublic java.lang.String getZone()
null for nonepublic SetNetworkPolicyRequest setZone(java.lang.String zone)
zone - zone or null for nonepublic SetNetworkPolicyRequest set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic SetNetworkPolicyRequest clone()
clone in class com.google.api.client.json.GenericJson