Class V1VolumeProjection
java.lang.Object
io.kubernetes.client.openapi.models.V1VolumeProjection
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1VolumeProjection
extends Object
Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclusterTrustBundle
(V1ClusterTrustBundleProjection clusterTrustBundle) configMap
(V1ConfigMapProjection configMap) downwardAPI
(V1DownwardAPIProjection downwardAPI) boolean
static V1VolumeProjection
Create an instance of V1VolumeProjection given an JSON stringGet clusterTrustBundleGet configMapGet downwardAPIGet secretGet serviceAccountTokenint
hashCode()
secret
(V1SecretProjection secret) serviceAccountToken
(V1ServiceAccountTokenProjection serviceAccountToken) void
setClusterTrustBundle
(V1ClusterTrustBundleProjection clusterTrustBundle) void
setConfigMap
(V1ConfigMapProjection configMap) void
setDownwardAPI
(V1DownwardAPIProjection downwardAPI) void
setSecret
(V1SecretProjection secret) void
setServiceAccountToken
(V1ServiceAccountTokenProjection serviceAccountToken) toJson()
Convert an instance of V1VolumeProjection to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE
- See Also:
-
SERIALIZED_NAME_CONFIG_MAP
- See Also:
-
SERIALIZED_NAME_DOWNWARD_A_P_I
- See Also:
-
SERIALIZED_NAME_SECRET
- See Also:
-
SERIALIZED_NAME_SERVICE_ACCOUNT_TOKEN
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1VolumeProjection
public V1VolumeProjection()
-
-
Method Details
-
clusterTrustBundle
-
getClusterTrustBundle
Get clusterTrustBundle- Returns:
- clusterTrustBundle
-
setClusterTrustBundle
-
configMap
-
getConfigMap
Get configMap- Returns:
- configMap
-
setConfigMap
-
downwardAPI
-
getDownwardAPI
Get downwardAPI- Returns:
- downwardAPI
-
setDownwardAPI
-
secret
-
getSecret
Get secret- Returns:
- secret
-
setSecret
-
serviceAccountToken
-
getServiceAccountToken
Get serviceAccountToken- Returns:
- serviceAccountToken
-
setServiceAccountToken
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1VolumeProjection
-
fromJson
Create an instance of V1VolumeProjection given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1VolumeProjection
- Throws:
IOException
- if the JSON string is invalid with respect to V1VolumeProjection
-
toJson
Convert an instance of V1VolumeProjection to an JSON string- Returns:
- JSON string
-