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

com.pulumi.azurenative.chaos.TargetArgs 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.chaos;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class TargetArgs extends com.pulumi.resources.ResourceArgs {

    public static final TargetArgs Empty = new TargetArgs();

    /**
     * Location of the target resource.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Location of the target resource.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * String that represents a resource provider namespace.
     * 
     */
    @Import(name="parentProviderNamespace", required=true)
    private Output parentProviderNamespace;

    /**
     * @return String that represents a resource provider namespace.
     * 
     */
    public Output parentProviderNamespace() {
        return this.parentProviderNamespace;
    }

    /**
     * String that represents a resource name.
     * 
     */
    @Import(name="parentResourceName", required=true)
    private Output parentResourceName;

    /**
     * @return String that represents a resource name.
     * 
     */
    public Output parentResourceName() {
        return this.parentResourceName;
    }

    /**
     * String that represents a resource type.
     * 
     */
    @Import(name="parentResourceType", required=true)
    private Output parentResourceType;

    /**
     * @return String that represents a resource type.
     * 
     */
    public Output parentResourceType() {
        return this.parentResourceType;
    }

    /**
     * The properties of the target resource.
     * 
     */
    @Import(name="properties", required=true)
    private Output properties;

    /**
     * @return The properties of the target resource.
     * 
     */
    public Output properties() {
        return this.properties;
    }

    /**
     * String that represents an Azure resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return String that represents an Azure resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * String that represents a Target resource name.
     * 
     */
    @Import(name="targetName")
    private @Nullable Output targetName;

    /**
     * @return String that represents a Target resource name.
     * 
     */
    public Optional> targetName() {
        return Optional.ofNullable(this.targetName);
    }

    private TargetArgs() {}

    private TargetArgs(TargetArgs $) {
        this.location = $.location;
        this.parentProviderNamespace = $.parentProviderNamespace;
        this.parentResourceName = $.parentResourceName;
        this.parentResourceType = $.parentResourceType;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.targetName = $.targetName;
    }

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

    public static final class Builder {
        private TargetArgs $;

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

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

        /**
         * @param location Location of the target resource.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Location of the target resource.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param parentProviderNamespace String that represents a resource provider namespace.
         * 
         * @return builder
         * 
         */
        public Builder parentProviderNamespace(Output parentProviderNamespace) {
            $.parentProviderNamespace = parentProviderNamespace;
            return this;
        }

        /**
         * @param parentProviderNamespace String that represents a resource provider namespace.
         * 
         * @return builder
         * 
         */
        public Builder parentProviderNamespace(String parentProviderNamespace) {
            return parentProviderNamespace(Output.of(parentProviderNamespace));
        }

        /**
         * @param parentResourceName String that represents a resource name.
         * 
         * @return builder
         * 
         */
        public Builder parentResourceName(Output parentResourceName) {
            $.parentResourceName = parentResourceName;
            return this;
        }

        /**
         * @param parentResourceName String that represents a resource name.
         * 
         * @return builder
         * 
         */
        public Builder parentResourceName(String parentResourceName) {
            return parentResourceName(Output.of(parentResourceName));
        }

        /**
         * @param parentResourceType String that represents a resource type.
         * 
         * @return builder
         * 
         */
        public Builder parentResourceType(Output parentResourceType) {
            $.parentResourceType = parentResourceType;
            return this;
        }

        /**
         * @param parentResourceType String that represents a resource type.
         * 
         * @return builder
         * 
         */
        public Builder parentResourceType(String parentResourceType) {
            return parentResourceType(Output.of(parentResourceType));
        }

        /**
         * @param properties The properties of the target resource.
         * 
         * @return builder
         * 
         */
        public Builder properties(Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties The properties of the target resource.
         * 
         * @return builder
         * 
         */
        public Builder properties(Object properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param resourceGroupName String that represents an Azure resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName String that represents an Azure resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param targetName String that represents a Target resource name.
         * 
         * @return builder
         * 
         */
        public Builder targetName(@Nullable Output targetName) {
            $.targetName = targetName;
            return this;
        }

        /**
         * @param targetName String that represents a Target resource name.
         * 
         * @return builder
         * 
         */
        public Builder targetName(String targetName) {
            return targetName(Output.of(targetName));
        }

        public TargetArgs build() {
            if ($.parentProviderNamespace == null) {
                throw new MissingRequiredPropertyException("TargetArgs", "parentProviderNamespace");
            }
            if ($.parentResourceName == null) {
                throw new MissingRequiredPropertyException("TargetArgs", "parentResourceName");
            }
            if ($.parentResourceType == null) {
                throw new MissingRequiredPropertyException("TargetArgs", "parentResourceType");
            }
            if ($.properties == null) {
                throw new MissingRequiredPropertyException("TargetArgs", "properties");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("TargetArgs", "resourceGroupName");
            }
            return $;
        }
    }

}