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

com.pulumi.azurenative.sql.ServerTrustGroupArgs 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.sql;

import com.pulumi.azurenative.sql.inputs.ServerInfoArgs;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ServerTrustGroupArgs Empty = new ServerTrustGroupArgs();

    /**
     * Group members information for the server trust group.
     * 
     */
    @Import(name="groupMembers", required=true)
    private Output> groupMembers;

    /**
     * @return Group members information for the server trust group.
     * 
     */
    public Output> groupMembers() {
        return this.groupMembers;
    }

    /**
     * The name of the region where the resource is located.
     * 
     */
    @Import(name="locationName", required=true)
    private Output locationName;

    /**
     * @return The name of the region where the resource is located.
     * 
     */
    public Output locationName() {
        return this.locationName;
    }

    /**
     * The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the server trust group.
     * 
     */
    @Import(name="serverTrustGroupName")
    private @Nullable Output serverTrustGroupName;

    /**
     * @return The name of the server trust group.
     * 
     */
    public Optional> serverTrustGroupName() {
        return Optional.ofNullable(this.serverTrustGroupName);
    }

    /**
     * Trust scope of the server trust group.
     * 
     */
    @Import(name="trustScopes", required=true)
    private Output> trustScopes;

    /**
     * @return Trust scope of the server trust group.
     * 
     */
    public Output> trustScopes() {
        return this.trustScopes;
    }

    private ServerTrustGroupArgs() {}

    private ServerTrustGroupArgs(ServerTrustGroupArgs $) {
        this.groupMembers = $.groupMembers;
        this.locationName = $.locationName;
        this.resourceGroupName = $.resourceGroupName;
        this.serverTrustGroupName = $.serverTrustGroupName;
        this.trustScopes = $.trustScopes;
    }

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

    public static final class Builder {
        private ServerTrustGroupArgs $;

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

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

        /**
         * @param groupMembers Group members information for the server trust group.
         * 
         * @return builder
         * 
         */
        public Builder groupMembers(Output> groupMembers) {
            $.groupMembers = groupMembers;
            return this;
        }

        /**
         * @param groupMembers Group members information for the server trust group.
         * 
         * @return builder
         * 
         */
        public Builder groupMembers(List groupMembers) {
            return groupMembers(Output.of(groupMembers));
        }

        /**
         * @param groupMembers Group members information for the server trust group.
         * 
         * @return builder
         * 
         */
        public Builder groupMembers(ServerInfoArgs... groupMembers) {
            return groupMembers(List.of(groupMembers));
        }

        /**
         * @param locationName The name of the region where the resource is located.
         * 
         * @return builder
         * 
         */
        public Builder locationName(Output locationName) {
            $.locationName = locationName;
            return this;
        }

        /**
         * @param locationName The name of the region where the resource is located.
         * 
         * @return builder
         * 
         */
        public Builder locationName(String locationName) {
            return locationName(Output.of(locationName));
        }

        /**
         * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param serverTrustGroupName The name of the server trust group.
         * 
         * @return builder
         * 
         */
        public Builder serverTrustGroupName(@Nullable Output serverTrustGroupName) {
            $.serverTrustGroupName = serverTrustGroupName;
            return this;
        }

        /**
         * @param serverTrustGroupName The name of the server trust group.
         * 
         * @return builder
         * 
         */
        public Builder serverTrustGroupName(String serverTrustGroupName) {
            return serverTrustGroupName(Output.of(serverTrustGroupName));
        }

        /**
         * @param trustScopes Trust scope of the server trust group.
         * 
         * @return builder
         * 
         */
        public Builder trustScopes(Output> trustScopes) {
            $.trustScopes = trustScopes;
            return this;
        }

        /**
         * @param trustScopes Trust scope of the server trust group.
         * 
         * @return builder
         * 
         */
        public Builder trustScopes(List trustScopes) {
            return trustScopes(Output.of(trustScopes));
        }

        /**
         * @param trustScopes Trust scope of the server trust group.
         * 
         * @return builder
         * 
         */
        public Builder trustScopes(String... trustScopes) {
            return trustScopes(List.of(trustScopes));
        }

        public ServerTrustGroupArgs build() {
            if ($.groupMembers == null) {
                throw new MissingRequiredPropertyException("ServerTrustGroupArgs", "groupMembers");
            }
            if ($.locationName == null) {
                throw new MissingRequiredPropertyException("ServerTrustGroupArgs", "locationName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ServerTrustGroupArgs", "resourceGroupName");
            }
            if ($.trustScopes == null) {
                throw new MissingRequiredPropertyException("ServerTrustGroupArgs", "trustScopes");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy