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

com.pulumi.azurenative.containerservice.FleetMemberArgs 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.containerservice;

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


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

    public static final FleetMemberArgs Empty = new FleetMemberArgs();

    /**
     * The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'.
     * 
     */
    @Import(name="clusterResourceId", required=true)
    private Output clusterResourceId;

    /**
     * @return The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'.
     * 
     */
    public Output clusterResourceId() {
        return this.clusterResourceId;
    }

    /**
     * The name of the Fleet member resource.
     * 
     */
    @Import(name="fleetMemberName")
    private @Nullable Output fleetMemberName;

    /**
     * @return The name of the Fleet member resource.
     * 
     */
    public Optional> fleetMemberName() {
        return Optional.ofNullable(this.fleetMemberName);
    }

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

    /**
     * @return The name of the Fleet resource.
     * 
     */
    public Output fleetName() {
        return this.fleetName;
    }

    /**
     * The group this member belongs to for multi-cluster update management.
     * 
     */
    @Import(name="group")
    private @Nullable Output group;

    /**
     * @return The group this member belongs to for multi-cluster update management.
     * 
     */
    public Optional> group() {
        return Optional.ofNullable(this.group);
    }

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

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private FleetMemberArgs() {}

    private FleetMemberArgs(FleetMemberArgs $) {
        this.clusterResourceId = $.clusterResourceId;
        this.fleetMemberName = $.fleetMemberName;
        this.fleetName = $.fleetName;
        this.group = $.group;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private FleetMemberArgs $;

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

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

        /**
         * @param clusterResourceId The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'.
         * 
         * @return builder
         * 
         */
        public Builder clusterResourceId(Output clusterResourceId) {
            $.clusterResourceId = clusterResourceId;
            return this;
        }

        /**
         * @param clusterResourceId The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'.
         * 
         * @return builder
         * 
         */
        public Builder clusterResourceId(String clusterResourceId) {
            return clusterResourceId(Output.of(clusterResourceId));
        }

        /**
         * @param fleetMemberName The name of the Fleet member resource.
         * 
         * @return builder
         * 
         */
        public Builder fleetMemberName(@Nullable Output fleetMemberName) {
            $.fleetMemberName = fleetMemberName;
            return this;
        }

        /**
         * @param fleetMemberName The name of the Fleet member resource.
         * 
         * @return builder
         * 
         */
        public Builder fleetMemberName(String fleetMemberName) {
            return fleetMemberName(Output.of(fleetMemberName));
        }

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

        /**
         * @param fleetName The name of the Fleet resource.
         * 
         * @return builder
         * 
         */
        public Builder fleetName(String fleetName) {
            return fleetName(Output.of(fleetName));
        }

        /**
         * @param group The group this member belongs to for multi-cluster update management.
         * 
         * @return builder
         * 
         */
        public Builder group(@Nullable Output group) {
            $.group = group;
            return this;
        }

        /**
         * @param group The group this member belongs to for multi-cluster update management.
         * 
         * @return builder
         * 
         */
        public Builder group(String group) {
            return group(Output.of(group));
        }

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

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy