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

com.pulumi.azurenative.authorization.outputs.OverrideResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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.authorization.outputs;

import com.pulumi.azurenative.authorization.outputs.SelectorResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class OverrideResponse {
    /**
     * @return The override kind.
     * 
     */
    private @Nullable String kind;
    /**
     * @return The list of the selector expressions.
     * 
     */
    private @Nullable List selectors;
    /**
     * @return The value to override the policy property.
     * 
     */
    private @Nullable String value;

    private OverrideResponse() {}
    /**
     * @return The override kind.
     * 
     */
    public Optional kind() {
        return Optional.ofNullable(this.kind);
    }
    /**
     * @return The list of the selector expressions.
     * 
     */
    public List selectors() {
        return this.selectors == null ? List.of() : this.selectors;
    }
    /**
     * @return The value to override the policy property.
     * 
     */
    public Optional value() {
        return Optional.ofNullable(this.value);
    }

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

    public static Builder builder(OverrideResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String kind;
        private @Nullable List selectors;
        private @Nullable String value;
        public Builder() {}
        public Builder(OverrideResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.kind = defaults.kind;
    	      this.selectors = defaults.selectors;
    	      this.value = defaults.value;
        }

        @CustomType.Setter
        public Builder kind(@Nullable String kind) {

            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder selectors(@Nullable List selectors) {

            this.selectors = selectors;
            return this;
        }
        public Builder selectors(SelectorResponse... selectors) {
            return selectors(List.of(selectors));
        }
        @CustomType.Setter
        public Builder value(@Nullable String value) {

            this.value = value;
            return this;
        }
        public OverrideResponse build() {
            final var _resultValue = new OverrideResponse();
            _resultValue.kind = kind;
            _resultValue.selectors = selectors;
            _resultValue.value = value;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy