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

com.pulumi.azurenative.compute.CloudServiceArgs 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.compute;

import com.pulumi.azurenative.compute.inputs.CloudServicePropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CloudServiceArgs Empty = new CloudServiceArgs();

    /**
     * Name of the cloud service.
     * 
     */
    @Import(name="cloudServiceName")
    private @Nullable Output cloudServiceName;

    /**
     * @return Name of the cloud service.
     * 
     */
    public Optional> cloudServiceName() {
        return Optional.ofNullable(this.cloudServiceName);
    }

    /**
     * Resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Cloud service properties
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Cloud service properties
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * Name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional.
     * 
     */
    @Import(name="zones")
    private @Nullable Output> zones;

    /**
     * @return List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional.
     * 
     */
    public Optional>> zones() {
        return Optional.ofNullable(this.zones);
    }

    private CloudServiceArgs() {}

    private CloudServiceArgs(CloudServiceArgs $) {
        this.cloudServiceName = $.cloudServiceName;
        this.location = $.location;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.zones = $.zones;
    }

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

    public static final class Builder {
        private CloudServiceArgs $;

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

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

        /**
         * @param cloudServiceName Name of the cloud service.
         * 
         * @return builder
         * 
         */
        public Builder cloudServiceName(@Nullable Output cloudServiceName) {
            $.cloudServiceName = cloudServiceName;
            return this;
        }

        /**
         * @param cloudServiceName Name of the cloud service.
         * 
         * @return builder
         * 
         */
        public Builder cloudServiceName(String cloudServiceName) {
            return cloudServiceName(Output.of(cloudServiceName));
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param properties Cloud service properties
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Cloud service properties
         * 
         * @return builder
         * 
         */
        public Builder properties(CloudServicePropertiesArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param resourceGroupName Name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param zones List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional.
         * 
         * @return builder
         * 
         */
        public Builder zones(@Nullable Output> zones) {
            $.zones = zones;
            return this;
        }

        /**
         * @param zones List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional.
         * 
         * @return builder
         * 
         */
        public Builder zones(List zones) {
            return zones(Output.of(zones));
        }

        /**
         * @param zones List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional.
         * 
         * @return builder
         * 
         */
        public Builder zones(String... zones) {
            return zones(List.of(zones));
        }

        public CloudServiceArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("CloudServiceArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy