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

com.pulumi.azurenative.compute.ProximityPlacementGroupArgs 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.enums.ProximityPlacementGroupType;
import com.pulumi.azurenative.compute.inputs.InstanceViewStatusArgs;
import com.pulumi.azurenative.compute.inputs.ProximityPlacementGroupPropertiesIntentArgs;
import com.pulumi.core.Either;
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 ProximityPlacementGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final ProximityPlacementGroupArgs Empty = new ProximityPlacementGroupArgs();

    /**
     * Describes colocation status of the Proximity Placement Group.
     * 
     */
    @Import(name="colocationStatus")
    private @Nullable Output colocationStatus;

    /**
     * @return Describes colocation status of the Proximity Placement Group.
     * 
     */
    public Optional> colocationStatus() {
        return Optional.ofNullable(this.colocationStatus);
    }

    /**
     * Specifies the user intent of the proximity placement group.
     * 
     */
    @Import(name="intent")
    private @Nullable Output intent;

    /**
     * @return Specifies the user intent of the proximity placement group.
     * 
     */
    public Optional> intent() {
        return Optional.ofNullable(this.intent);
    }

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

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

    /**
     * The name of the proximity placement group.
     * 
     */
    @Import(name="proximityPlacementGroupName")
    private @Nullable Output proximityPlacementGroupName;

    /**
     * @return The name of the proximity placement group.
     * 
     */
    public Optional> proximityPlacementGroupName() {
        return Optional.ofNullable(this.proximityPlacementGroupName);
    }

    /**
     * Specifies the type of the proximity placement group. Possible values are: **Standard** : Co-locate resources within an Azure region or Availability Zone. **Ultra** : For future use.
     * 
     */
    @Import(name="proximityPlacementGroupType")
    private @Nullable Output> proximityPlacementGroupType;

    /**
     * @return Specifies the type of the proximity placement group. Possible values are: **Standard** : Co-locate resources within an Azure region or Availability Zone. **Ultra** : For future use.
     * 
     */
    public Optional>> proximityPlacementGroupType() {
        return Optional.ofNullable(this.proximityPlacementGroupType);
    }

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

    /**
     * @return The 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);
    }

    /**
     * Specifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the  proximity placement group can be created.
     * 
     */
    @Import(name="zones")
    private @Nullable Output> zones;

    /**
     * @return Specifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the  proximity placement group can be created.
     * 
     */
    public Optional>> zones() {
        return Optional.ofNullable(this.zones);
    }

    private ProximityPlacementGroupArgs() {}

    private ProximityPlacementGroupArgs(ProximityPlacementGroupArgs $) {
        this.colocationStatus = $.colocationStatus;
        this.intent = $.intent;
        this.location = $.location;
        this.proximityPlacementGroupName = $.proximityPlacementGroupName;
        this.proximityPlacementGroupType = $.proximityPlacementGroupType;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.zones = $.zones;
    }

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

    public static final class Builder {
        private ProximityPlacementGroupArgs $;

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

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

        /**
         * @param colocationStatus Describes colocation status of the Proximity Placement Group.
         * 
         * @return builder
         * 
         */
        public Builder colocationStatus(@Nullable Output colocationStatus) {
            $.colocationStatus = colocationStatus;
            return this;
        }

        /**
         * @param colocationStatus Describes colocation status of the Proximity Placement Group.
         * 
         * @return builder
         * 
         */
        public Builder colocationStatus(InstanceViewStatusArgs colocationStatus) {
            return colocationStatus(Output.of(colocationStatus));
        }

        /**
         * @param intent Specifies the user intent of the proximity placement group.
         * 
         * @return builder
         * 
         */
        public Builder intent(@Nullable Output intent) {
            $.intent = intent;
            return this;
        }

        /**
         * @param intent Specifies the user intent of the proximity placement group.
         * 
         * @return builder
         * 
         */
        public Builder intent(ProximityPlacementGroupPropertiesIntentArgs intent) {
            return intent(Output.of(intent));
        }

        /**
         * @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 proximityPlacementGroupName The name of the proximity placement group.
         * 
         * @return builder
         * 
         */
        public Builder proximityPlacementGroupName(@Nullable Output proximityPlacementGroupName) {
            $.proximityPlacementGroupName = proximityPlacementGroupName;
            return this;
        }

        /**
         * @param proximityPlacementGroupName The name of the proximity placement group.
         * 
         * @return builder
         * 
         */
        public Builder proximityPlacementGroupName(String proximityPlacementGroupName) {
            return proximityPlacementGroupName(Output.of(proximityPlacementGroupName));
        }

        /**
         * @param proximityPlacementGroupType Specifies the type of the proximity placement group. Possible values are: **Standard** : Co-locate resources within an Azure region or Availability Zone. **Ultra** : For future use.
         * 
         * @return builder
         * 
         */
        public Builder proximityPlacementGroupType(@Nullable Output> proximityPlacementGroupType) {
            $.proximityPlacementGroupType = proximityPlacementGroupType;
            return this;
        }

        /**
         * @param proximityPlacementGroupType Specifies the type of the proximity placement group. Possible values are: **Standard** : Co-locate resources within an Azure region or Availability Zone. **Ultra** : For future use.
         * 
         * @return builder
         * 
         */
        public Builder proximityPlacementGroupType(Either proximityPlacementGroupType) {
            return proximityPlacementGroupType(Output.of(proximityPlacementGroupType));
        }

        /**
         * @param proximityPlacementGroupType Specifies the type of the proximity placement group. Possible values are: **Standard** : Co-locate resources within an Azure region or Availability Zone. **Ultra** : For future use.
         * 
         * @return builder
         * 
         */
        public Builder proximityPlacementGroupType(String proximityPlacementGroupType) {
            return proximityPlacementGroupType(Either.ofLeft(proximityPlacementGroupType));
        }

        /**
         * @param proximityPlacementGroupType Specifies the type of the proximity placement group. Possible values are: **Standard** : Co-locate resources within an Azure region or Availability Zone. **Ultra** : For future use.
         * 
         * @return builder
         * 
         */
        public Builder proximityPlacementGroupType(ProximityPlacementGroupType proximityPlacementGroupType) {
            return proximityPlacementGroupType(Either.ofRight(proximityPlacementGroupType));
        }

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

        /**
         * @param resourceGroupName The 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 Specifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the  proximity placement group can be created.
         * 
         * @return builder
         * 
         */
        public Builder zones(@Nullable Output> zones) {
            $.zones = zones;
            return this;
        }

        /**
         * @param zones Specifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the  proximity placement group can be created.
         * 
         * @return builder
         * 
         */
        public Builder zones(List zones) {
            return zones(Output.of(zones));
        }

        /**
         * @param zones Specifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the  proximity placement group can be created.
         * 
         * @return builder
         * 
         */
        public Builder zones(String... zones) {
            return zones(List.of(zones));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy