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

com.pulumi.azurenative.network.inputs.ServiceEndpointPolicyArgs 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.network.inputs;

import com.pulumi.azurenative.network.inputs.ServiceEndpointPolicyDefinitionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Service End point policy resource.
 * 
 */
public final class ServiceEndpointPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServiceEndpointPolicyArgs Empty = new ServiceEndpointPolicyArgs();

    /**
     * A collection of contextual service endpoint policy.
     * 
     */
    @Import(name="contextualServiceEndpointPolicies")
    private @Nullable Output> contextualServiceEndpointPolicies;

    /**
     * @return A collection of contextual service endpoint policy.
     * 
     */
    public Optional>> contextualServiceEndpointPolicies() {
        return Optional.ofNullable(this.contextualServiceEndpointPolicies);
    }

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

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

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

    /**
     * The alias indicating if the policy belongs to a service
     * 
     */
    @Import(name="serviceAlias")
    private @Nullable Output serviceAlias;

    /**
     * @return The alias indicating if the policy belongs to a service
     * 
     */
    public Optional> serviceAlias() {
        return Optional.ofNullable(this.serviceAlias);
    }

    /**
     * A collection of service endpoint policy definitions of the service endpoint policy.
     * 
     */
    @Import(name="serviceEndpointPolicyDefinitions")
    private @Nullable Output> serviceEndpointPolicyDefinitions;

    /**
     * @return A collection of service endpoint policy definitions of the service endpoint policy.
     * 
     */
    public Optional>> serviceEndpointPolicyDefinitions() {
        return Optional.ofNullable(this.serviceEndpointPolicyDefinitions);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

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

    private ServiceEndpointPolicyArgs() {}

    private ServiceEndpointPolicyArgs(ServiceEndpointPolicyArgs $) {
        this.contextualServiceEndpointPolicies = $.contextualServiceEndpointPolicies;
        this.etag = $.etag;
        this.id = $.id;
        this.location = $.location;
        this.serviceAlias = $.serviceAlias;
        this.serviceEndpointPolicyDefinitions = $.serviceEndpointPolicyDefinitions;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ServiceEndpointPolicyArgs $;

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

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

        /**
         * @param contextualServiceEndpointPolicies A collection of contextual service endpoint policy.
         * 
         * @return builder
         * 
         */
        public Builder contextualServiceEndpointPolicies(@Nullable Output> contextualServiceEndpointPolicies) {
            $.contextualServiceEndpointPolicies = contextualServiceEndpointPolicies;
            return this;
        }

        /**
         * @param contextualServiceEndpointPolicies A collection of contextual service endpoint policy.
         * 
         * @return builder
         * 
         */
        public Builder contextualServiceEndpointPolicies(List contextualServiceEndpointPolicies) {
            return contextualServiceEndpointPolicies(Output.of(contextualServiceEndpointPolicies));
        }

        /**
         * @param contextualServiceEndpointPolicies A collection of contextual service endpoint policy.
         * 
         * @return builder
         * 
         */
        public Builder contextualServiceEndpointPolicies(String... contextualServiceEndpointPolicies) {
            return contextualServiceEndpointPolicies(List.of(contextualServiceEndpointPolicies));
        }

        /**
         * @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 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 serviceAlias The alias indicating if the policy belongs to a service
         * 
         * @return builder
         * 
         */
        public Builder serviceAlias(@Nullable Output serviceAlias) {
            $.serviceAlias = serviceAlias;
            return this;
        }

        /**
         * @param serviceAlias The alias indicating if the policy belongs to a service
         * 
         * @return builder
         * 
         */
        public Builder serviceAlias(String serviceAlias) {
            return serviceAlias(Output.of(serviceAlias));
        }

        /**
         * @param serviceEndpointPolicyDefinitions A collection of service endpoint policy definitions of the service endpoint policy.
         * 
         * @return builder
         * 
         */
        public Builder serviceEndpointPolicyDefinitions(@Nullable Output> serviceEndpointPolicyDefinitions) {
            $.serviceEndpointPolicyDefinitions = serviceEndpointPolicyDefinitions;
            return this;
        }

        /**
         * @param serviceEndpointPolicyDefinitions A collection of service endpoint policy definitions of the service endpoint policy.
         * 
         * @return builder
         * 
         */
        public Builder serviceEndpointPolicyDefinitions(List serviceEndpointPolicyDefinitions) {
            return serviceEndpointPolicyDefinitions(Output.of(serviceEndpointPolicyDefinitions));
        }

        /**
         * @param serviceEndpointPolicyDefinitions A collection of service endpoint policy definitions of the service endpoint policy.
         * 
         * @return builder
         * 
         */
        public Builder serviceEndpointPolicyDefinitions(ServiceEndpointPolicyDefinitionArgs... serviceEndpointPolicyDefinitions) {
            return serviceEndpointPolicyDefinitions(List.of(serviceEndpointPolicyDefinitions));
        }

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

        public ServiceEndpointPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy