Class CSIStorageCapacityArgs.Builder
- java.lang.Object
-
- com.pulumi.kubernetes.storage.v1.inputs.CSIStorageCapacityArgs.Builder
-
- Enclosing class:
- CSIStorageCapacityArgs
public static final class CSIStorageCapacityArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(CSIStorageCapacityArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(CSIStorageCapacityArgs defaults)
-
-
Method Detail
-
apiVersion
public CSIStorageCapacityArgs.Builder apiVersion(@Nullable com.pulumi.core.Output<java.lang.String> apiVersion)
- Parameters:
apiVersion
- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Returns:
- builder
-
apiVersion
public CSIStorageCapacityArgs.Builder apiVersion(java.lang.String apiVersion)
- Parameters:
apiVersion
- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Returns:
- builder
-
capacity
public CSIStorageCapacityArgs.Builder capacity(@Nullable com.pulumi.core.Output<java.lang.String> capacity)
- Parameters:
capacity
- capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.- Returns:
- builder
-
capacity
public CSIStorageCapacityArgs.Builder capacity(java.lang.String capacity)
- Parameters:
capacity
- capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.- Returns:
- builder
-
kind
public CSIStorageCapacityArgs.Builder kind(@Nullable com.pulumi.core.Output<java.lang.String> kind)
- Parameters:
kind
- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Returns:
- builder
-
kind
public CSIStorageCapacityArgs.Builder kind(java.lang.String kind)
- Parameters:
kind
- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Returns:
- builder
-
maximumVolumeSize
public CSIStorageCapacityArgs.Builder maximumVolumeSize(@Nullable com.pulumi.core.Output<java.lang.String> maximumVolumeSize)
- Parameters:
maximumVolumeSize
- maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.- Returns:
- builder
-
maximumVolumeSize
public CSIStorageCapacityArgs.Builder maximumVolumeSize(java.lang.String maximumVolumeSize)
- Parameters:
maximumVolumeSize
- maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.- Returns:
- builder
-
metadata
public CSIStorageCapacityArgs.Builder metadata(@Nullable com.pulumi.core.Output<ObjectMetaArgs> metadata)
- Parameters:
metadata
- Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends with the unique CSI driver name. Objects are namespaced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
- builder
-
metadata
public CSIStorageCapacityArgs.Builder metadata(ObjectMetaArgs metadata)
- Parameters:
metadata
- Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends with the unique CSI driver name. Objects are namespaced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
- builder
-
nodeTopology
public CSIStorageCapacityArgs.Builder nodeTopology(@Nullable com.pulumi.core.Output<LabelSelectorArgs> nodeTopology)
- Parameters:
nodeTopology
- nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable.- Returns:
- builder
-
nodeTopology
public CSIStorageCapacityArgs.Builder nodeTopology(LabelSelectorArgs nodeTopology)
- Parameters:
nodeTopology
- nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable.- Returns:
- builder
-
storageClassName
public CSIStorageCapacityArgs.Builder storageClassName(com.pulumi.core.Output<java.lang.String> storageClassName)
- Parameters:
storageClassName
- storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.- Returns:
- builder
-
storageClassName
public CSIStorageCapacityArgs.Builder storageClassName(java.lang.String storageClassName)
- Parameters:
storageClassName
- storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.- Returns:
- builder
-
build
public CSIStorageCapacityArgs build()
-
-