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

com.pulumi.azurenative.security.inputs.DevOpsPolicyDescriptorArgs 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.security.inputs;

import com.pulumi.azurenative.security.enums.DevOpsPolicyType;
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;


/**
 * Condensed information to identify a DevOps Policy resource.
 * 
 */
public final class DevOpsPolicyDescriptorArgs extends com.pulumi.resources.ResourceArgs {

    public static final DevOpsPolicyDescriptorArgs Empty = new DevOpsPolicyDescriptorArgs();

    /**
     * Gets or sets the policy GUID.
     * 
     */
    @Import(name="policyId")
    private @Nullable Output policyId;

    /**
     * @return Gets or sets the policy GUID.
     * 
     */
    public Optional> policyId() {
        return Optional.ofNullable(this.policyId);
    }

    /**
     * Gets or sets the policy name.
     * 
     */
    @Import(name="policyName")
    private @Nullable Output policyName;

    /**
     * @return Gets or sets the policy name.
     * 
     */
    public Optional> policyName() {
        return Optional.ofNullable(this.policyName);
    }

    /**
     * DevOps Policy resource types.
     * 
     */
    @Import(name="policyType")
    private @Nullable Output> policyType;

    /**
     * @return DevOps Policy resource types.
     * 
     */
    public Optional>> policyType() {
        return Optional.ofNullable(this.policyType);
    }

    /**
     * Gets or sets the version.
     * 
     */
    @Import(name="policyVersion")
    private @Nullable Output policyVersion;

    /**
     * @return Gets or sets the version.
     * 
     */
    public Optional> policyVersion() {
        return Optional.ofNullable(this.policyVersion);
    }

    private DevOpsPolicyDescriptorArgs() {}

    private DevOpsPolicyDescriptorArgs(DevOpsPolicyDescriptorArgs $) {
        this.policyId = $.policyId;
        this.policyName = $.policyName;
        this.policyType = $.policyType;
        this.policyVersion = $.policyVersion;
    }

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

    public static final class Builder {
        private DevOpsPolicyDescriptorArgs $;

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

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

        /**
         * @param policyId Gets or sets the policy GUID.
         * 
         * @return builder
         * 
         */
        public Builder policyId(@Nullable Output policyId) {
            $.policyId = policyId;
            return this;
        }

        /**
         * @param policyId Gets or sets the policy GUID.
         * 
         * @return builder
         * 
         */
        public Builder policyId(String policyId) {
            return policyId(Output.of(policyId));
        }

        /**
         * @param policyName Gets or sets the policy name.
         * 
         * @return builder
         * 
         */
        public Builder policyName(@Nullable Output policyName) {
            $.policyName = policyName;
            return this;
        }

        /**
         * @param policyName Gets or sets the policy name.
         * 
         * @return builder
         * 
         */
        public Builder policyName(String policyName) {
            return policyName(Output.of(policyName));
        }

        /**
         * @param policyType DevOps Policy resource types.
         * 
         * @return builder
         * 
         */
        public Builder policyType(@Nullable Output> policyType) {
            $.policyType = policyType;
            return this;
        }

        /**
         * @param policyType DevOps Policy resource types.
         * 
         * @return builder
         * 
         */
        public Builder policyType(Either policyType) {
            return policyType(Output.of(policyType));
        }

        /**
         * @param policyType DevOps Policy resource types.
         * 
         * @return builder
         * 
         */
        public Builder policyType(String policyType) {
            return policyType(Either.ofLeft(policyType));
        }

        /**
         * @param policyType DevOps Policy resource types.
         * 
         * @return builder
         * 
         */
        public Builder policyType(DevOpsPolicyType policyType) {
            return policyType(Either.ofRight(policyType));
        }

        /**
         * @param policyVersion Gets or sets the version.
         * 
         * @return builder
         * 
         */
        public Builder policyVersion(@Nullable Output policyVersion) {
            $.policyVersion = policyVersion;
            return this;
        }

        /**
         * @param policyVersion Gets or sets the version.
         * 
         * @return builder
         * 
         */
        public Builder policyVersion(String policyVersion) {
            return policyVersion(Output.of(policyVersion));
        }

        public DevOpsPolicyDescriptorArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy