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

com.pulumi.azurenative.network.inputs.ServiceEndpointPolicyDefinitionArgs Maven / Gradle / Ivy

// *** 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.network.inputs;

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


/**
 * Service Endpoint policy definitions.
 * 
 */
public final class ServiceEndpointPolicyDefinitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServiceEndpointPolicyDefinitionArgs Empty = new ServiceEndpointPolicyDefinitionArgs();

    /**
     * A description for this rule. Restricted to 140 chars.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description for this rule. Restricted to 140 chars.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * A unique read-only string that changes whenever the resource is updated.
     * 
     */
    @Import(name="etag")
    private @Nullable Output etag;

    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    public Optional> etag() {
        return Optional.ofNullable(this.etag);
    }

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

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

    /**
     * The name of the resource that is unique within a resource group. This name can be used to access the resource.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the resource that is unique within a resource group. This name can be used to access the resource.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Service endpoint name.
     * 
     */
    @Import(name="service")
    private @Nullable Output service;

    /**
     * @return Service endpoint name.
     * 
     */
    public Optional> service() {
        return Optional.ofNullable(this.service);
    }

    /**
     * A list of service resources.
     * 
     */
    @Import(name="serviceResources")
    private @Nullable Output> serviceResources;

    /**
     * @return A list of service resources.
     * 
     */
    public Optional>> serviceResources() {
        return Optional.ofNullable(this.serviceResources);
    }

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

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

    private ServiceEndpointPolicyDefinitionArgs() {}

    private ServiceEndpointPolicyDefinitionArgs(ServiceEndpointPolicyDefinitionArgs $) {
        this.description = $.description;
        this.etag = $.etag;
        this.id = $.id;
        this.name = $.name;
        this.service = $.service;
        this.serviceResources = $.serviceResources;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ServiceEndpointPolicyDefinitionArgs $;

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

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

        /**
         * @param description A description for this rule. Restricted to 140 chars.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description for this rule. Restricted to 140 chars.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param etag A unique read-only string that changes whenever the resource is updated.
         * 
         * @return builder
         * 
         */
        public Builder etag(@Nullable Output etag) {
            $.etag = etag;
            return this;
        }

        /**
         * @param etag A unique read-only string that changes whenever the resource is updated.
         * 
         * @return builder
         * 
         */
        public Builder etag(String etag) {
            return etag(Output.of(etag));
        }

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

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

        /**
         * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

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

        /**
         * @param serviceResources A list of service resources.
         * 
         * @return builder
         * 
         */
        public Builder serviceResources(@Nullable Output> serviceResources) {
            $.serviceResources = serviceResources;
            return this;
        }

        /**
         * @param serviceResources A list of service resources.
         * 
         * @return builder
         * 
         */
        public Builder serviceResources(List serviceResources) {
            return serviceResources(Output.of(serviceResources));
        }

        /**
         * @param serviceResources A list of service resources.
         * 
         * @return builder
         * 
         */
        public Builder serviceResources(String... serviceResources) {
            return serviceResources(List.of(serviceResources));
        }

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

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

        public ServiceEndpointPolicyDefinitionArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy