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

com.pulumi.alicloud.vpc.GatewayEndpointArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.vpc;

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


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

    public static final GatewayEndpointArgs Empty = new GatewayEndpointArgs();

    /**
     * The description of the gateway endpoint.
     * 
     */
    @Import(name="gatewayEndpointDescrption")
    private @Nullable Output gatewayEndpointDescrption;

    /**
     * @return The description of the gateway endpoint.
     * 
     */
    public Optional> gatewayEndpointDescrption() {
        return Optional.ofNullable(this.gatewayEndpointDescrption);
    }

    /**
     * The name of the gateway endpoint.
     * 
     */
    @Import(name="gatewayEndpointName")
    private @Nullable Output gatewayEndpointName;

    /**
     * @return The name of the gateway endpoint.
     * 
     */
    public Optional> gatewayEndpointName() {
        return Optional.ofNullable(this.gatewayEndpointName);
    }

    /**
     * Access control policies for cloud services. This parameter is required when the cloud service is oss. For details about the syntax and structure of access policies, see [syntax and structure of permission Policies](https://help.aliyun.com/document_detail/93739.html).
     * 
     */
    @Import(name="policyDocument")
    private @Nullable Output policyDocument;

    /**
     * @return Access control policies for cloud services. This parameter is required when the cloud service is oss. For details about the syntax and structure of access policies, see [syntax and structure of permission Policies](https://help.aliyun.com/document_detail/93739.html).
     * 
     */
    public Optional> policyDocument() {
        return Optional.ofNullable(this.policyDocument);
    }

    /**
     * The ID of the resource group to which the instance belongs.
     * 
     */
    @Import(name="resourceGroupId")
    private @Nullable Output resourceGroupId;

    /**
     * @return The ID of the resource group to which the instance belongs.
     * 
     */
    public Optional> resourceGroupId() {
        return Optional.ofNullable(this.resourceGroupId);
    }

    /**
     * The name of endpoint service.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output serviceName;

    /**
     * @return The name of endpoint service.
     * 
     */
    public Output serviceName() {
        return this.serviceName;
    }

    /**
     * The tags of the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return The tags of the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The ID of the VPC.
     * 
     */
    @Import(name="vpcId", required=true)
    private Output vpcId;

    /**
     * @return The ID of the VPC.
     * 
     */
    public Output vpcId() {
        return this.vpcId;
    }

    private GatewayEndpointArgs() {}

    private GatewayEndpointArgs(GatewayEndpointArgs $) {
        this.gatewayEndpointDescrption = $.gatewayEndpointDescrption;
        this.gatewayEndpointName = $.gatewayEndpointName;
        this.policyDocument = $.policyDocument;
        this.resourceGroupId = $.resourceGroupId;
        this.serviceName = $.serviceName;
        this.tags = $.tags;
        this.vpcId = $.vpcId;
    }

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

    public static final class Builder {
        private GatewayEndpointArgs $;

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

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

        /**
         * @param gatewayEndpointDescrption The description of the gateway endpoint.
         * 
         * @return builder
         * 
         */
        public Builder gatewayEndpointDescrption(@Nullable Output gatewayEndpointDescrption) {
            $.gatewayEndpointDescrption = gatewayEndpointDescrption;
            return this;
        }

        /**
         * @param gatewayEndpointDescrption The description of the gateway endpoint.
         * 
         * @return builder
         * 
         */
        public Builder gatewayEndpointDescrption(String gatewayEndpointDescrption) {
            return gatewayEndpointDescrption(Output.of(gatewayEndpointDescrption));
        }

        /**
         * @param gatewayEndpointName The name of the gateway endpoint.
         * 
         * @return builder
         * 
         */
        public Builder gatewayEndpointName(@Nullable Output gatewayEndpointName) {
            $.gatewayEndpointName = gatewayEndpointName;
            return this;
        }

        /**
         * @param gatewayEndpointName The name of the gateway endpoint.
         * 
         * @return builder
         * 
         */
        public Builder gatewayEndpointName(String gatewayEndpointName) {
            return gatewayEndpointName(Output.of(gatewayEndpointName));
        }

        /**
         * @param policyDocument Access control policies for cloud services. This parameter is required when the cloud service is oss. For details about the syntax and structure of access policies, see [syntax and structure of permission Policies](https://help.aliyun.com/document_detail/93739.html).
         * 
         * @return builder
         * 
         */
        public Builder policyDocument(@Nullable Output policyDocument) {
            $.policyDocument = policyDocument;
            return this;
        }

        /**
         * @param policyDocument Access control policies for cloud services. This parameter is required when the cloud service is oss. For details about the syntax and structure of access policies, see [syntax and structure of permission Policies](https://help.aliyun.com/document_detail/93739.html).
         * 
         * @return builder
         * 
         */
        public Builder policyDocument(String policyDocument) {
            return policyDocument(Output.of(policyDocument));
        }

        /**
         * @param resourceGroupId The ID of the resource group to which the instance belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupId(@Nullable Output resourceGroupId) {
            $.resourceGroupId = resourceGroupId;
            return this;
        }

        /**
         * @param resourceGroupId The ID of the resource group to which the instance belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupId(String resourceGroupId) {
            return resourceGroupId(Output.of(resourceGroupId));
        }

        /**
         * @param serviceName The name of endpoint service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The name of endpoint service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

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

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

        /**
         * @param vpcId The ID of the VPC.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(Output vpcId) {
            $.vpcId = vpcId;
            return this;
        }

        /**
         * @param vpcId The ID of the VPC.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(String vpcId) {
            return vpcId(Output.of(vpcId));
        }

        public GatewayEndpointArgs build() {
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("GatewayEndpointArgs", "serviceName");
            }
            if ($.vpcId == null) {
                throw new MissingRequiredPropertyException("GatewayEndpointArgs", "vpcId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy