All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.iotoperationsmq.outputs.VolumeClaimSpecSelectorMatchExpressionsResponse Maven / Gradle / Ivy

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.iotoperationsmq.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class VolumeClaimSpecSelectorMatchExpressionsResponse {
    /**
     * @return key is the label key that the selector applies to.
     * 
     */
    private String key;
    /**
     * @return operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
     * 
     */
    private String operator;
    /**
     * @return values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
     * 
     */
    private @Nullable List values;

    private VolumeClaimSpecSelectorMatchExpressionsResponse() {}
    /**
     * @return key is the label key that the selector applies to.
     * 
     */
    public String key() {
        return this.key;
    }
    /**
     * @return operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
     * 
     */
    public String operator() {
        return this.operator;
    }
    /**
     * @return values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
     * 
     */
    public List values() {
        return this.values == null ? List.of() : this.values;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(VolumeClaimSpecSelectorMatchExpressionsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String key;
        private String operator;
        private @Nullable List values;
        public Builder() {}
        public Builder(VolumeClaimSpecSelectorMatchExpressionsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.key = defaults.key;
    	      this.operator = defaults.operator;
    	      this.values = defaults.values;
        }

        @CustomType.Setter
        public Builder key(String key) {
            if (key == null) {
              throw new MissingRequiredPropertyException("VolumeClaimSpecSelectorMatchExpressionsResponse", "key");
            }
            this.key = key;
            return this;
        }
        @CustomType.Setter
        public Builder operator(String operator) {
            if (operator == null) {
              throw new MissingRequiredPropertyException("VolumeClaimSpecSelectorMatchExpressionsResponse", "operator");
            }
            this.operator = operator;
            return this;
        }
        @CustomType.Setter
        public Builder values(@Nullable List values) {

            this.values = values;
            return this;
        }
        public Builder values(String... values) {
            return values(List.of(values));
        }
        public VolumeClaimSpecSelectorMatchExpressionsResponse build() {
            final var _resultValue = new VolumeClaimSpecSelectorMatchExpressionsResponse();
            _resultValue.key = key;
            _resultValue.operator = operator;
            _resultValue.values = values;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy