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

com.pulumi.azurenative.security.inputs.GovernanceRuleOwnerSourceArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.security.inputs;

import com.pulumi.azurenative.security.enums.GovernanceRuleOwnerSourceType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describe the owner source of governance rule
 * 
 */
public final class GovernanceRuleOwnerSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final GovernanceRuleOwnerSourceArgs Empty = new GovernanceRuleOwnerSourceArgs();

    /**
     * The owner type for the governance rule owner source
     * 
     */
    @Import(name="type")
    private @Nullable Output> type;

    /**
     * @return The owner type for the governance rule owner source
     * 
     */
    public Optional>> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * The source value e.g. tag key like owner name or email address
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return The source value e.g. tag key like owner name or email address
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private GovernanceRuleOwnerSourceArgs() {}

    private GovernanceRuleOwnerSourceArgs(GovernanceRuleOwnerSourceArgs $) {
        this.type = $.type;
        this.value = $.value;
    }

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

    public static final class Builder {
        private GovernanceRuleOwnerSourceArgs $;

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

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

        /**
         * @param type The owner type for the governance rule owner source
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The owner type for the governance rule owner source
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type The owner type for the governance rule owner source
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type The owner type for the governance rule owner source
         * 
         * @return builder
         * 
         */
        public Builder type(GovernanceRuleOwnerSourceType type) {
            return type(Either.ofRight(type));
        }

        /**
         * @param value The source value e.g. tag key like owner name or email address
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The source value e.g. tag key like owner name or email address
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public GovernanceRuleOwnerSourceArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy