public final class ContainerPort 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 Run Admin 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 |
|---|
ContainerPort() |
| Modifier and Type | Method and Description |
|---|---|
ContainerPort |
clone() |
Integer |
getContainerPort()
(Optional) Port number the container listens on.
|
String |
getName()
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported If specified,
used to specify which protocol to use.
|
String |
getProtocol()
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Protocol for
port.
|
ContainerPort |
set(String fieldName,
Object value) |
ContainerPort |
setContainerPort(Integer containerPort)
(Optional) Port number the container listens on.
|
ContainerPort |
setName(String name)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported If specified,
used to specify which protocol to use.
|
ContainerPort |
setProtocol(String protocol)
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Protocol for
port.
|
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 Integer getContainerPort()
null for nonepublic ContainerPort setContainerPort(Integer containerPort)
containerPort - containerPort or null for nonepublic String getName()
null for nonepublic ContainerPort setName(String name)
name - name or null for nonepublic String getProtocol()
null for nonepublic ContainerPort setProtocol(String protocol)
protocol - protocol or null for nonepublic ContainerPort set(String fieldName, Object value)
set in class GenericJsonpublic ContainerPort clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.