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

com.pulumi.azurenative.iotoperations.inputs.VolumeClaimSpecSelectorArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show 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.iotoperations.inputs;

import com.pulumi.azurenative.iotoperations.inputs.VolumeClaimSpecSelectorMatchExpressionsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * VolumeClaimSpecSelector properties
 * 
 */
public final class VolumeClaimSpecSelectorArgs extends com.pulumi.resources.ResourceArgs {

    public static final VolumeClaimSpecSelectorArgs Empty = new VolumeClaimSpecSelectorArgs();

    /**
     * MatchExpressions is a list of label selector requirements. The requirements are ANDed.
     * 
     */
    @Import(name="matchExpressions")
    private @Nullable Output> matchExpressions;

    /**
     * @return MatchExpressions is a list of label selector requirements. The requirements are ANDed.
     * 
     */
    public Optional>> matchExpressions() {
        return Optional.ofNullable(this.matchExpressions);
    }

    /**
     * MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
     * 
     */
    @Import(name="matchLabels")
    private @Nullable Output> matchLabels;

    /**
     * @return MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
     * 
     */
    public Optional>> matchLabels() {
        return Optional.ofNullable(this.matchLabels);
    }

    private VolumeClaimSpecSelectorArgs() {}

    private VolumeClaimSpecSelectorArgs(VolumeClaimSpecSelectorArgs $) {
        this.matchExpressions = $.matchExpressions;
        this.matchLabels = $.matchLabels;
    }

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

    public static final class Builder {
        private VolumeClaimSpecSelectorArgs $;

        public Builder() {
            $ = new VolumeClaimSpecSelectorArgs();
        }

        public Builder(VolumeClaimSpecSelectorArgs defaults) {
            $ = new VolumeClaimSpecSelectorArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param matchExpressions MatchExpressions is a list of label selector requirements. The requirements are ANDed.
         * 
         * @return builder
         * 
         */
        public Builder matchExpressions(@Nullable Output> matchExpressions) {
            $.matchExpressions = matchExpressions;
            return this;
        }

        /**
         * @param matchExpressions MatchExpressions is a list of label selector requirements. The requirements are ANDed.
         * 
         * @return builder
         * 
         */
        public Builder matchExpressions(List matchExpressions) {
            return matchExpressions(Output.of(matchExpressions));
        }

        /**
         * @param matchExpressions MatchExpressions is a list of label selector requirements. The requirements are ANDed.
         * 
         * @return builder
         * 
         */
        public Builder matchExpressions(VolumeClaimSpecSelectorMatchExpressionsArgs... matchExpressions) {
            return matchExpressions(List.of(matchExpressions));
        }

        /**
         * @param matchLabels MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
         * 
         * @return builder
         * 
         */
        public Builder matchLabels(@Nullable Output> matchLabels) {
            $.matchLabels = matchLabels;
            return this;
        }

        /**
         * @param matchLabels MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
         * 
         * @return builder
         * 
         */
        public Builder matchLabels(Map matchLabels) {
            return matchLabels(Output.of(matchLabels));
        }

        public VolumeClaimSpecSelectorArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy