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

com.pulumi.azurenative.hybridconnectivity.ServiceConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.hybridconnectivity;

import com.pulumi.azurenative.hybridconnectivity.enums.CreatedByType;
import com.pulumi.azurenative.hybridconnectivity.enums.ServiceName;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ServiceConfigurationArgs Empty = new ServiceConfigurationArgs();

    /**
     * The timestamp of resource creation (UTC).
     * 
     */
    @Import(name="createdAt")
    private @Nullable Output createdAt;

    /**
     * @return The timestamp of resource creation (UTC).
     * 
     */
    public Optional> createdAt() {
        return Optional.ofNullable(this.createdAt);
    }

    /**
     * The identity that created the resource.
     * 
     */
    @Import(name="createdBy")
    private @Nullable Output createdBy;

    /**
     * @return The identity that created the resource.
     * 
     */
    public Optional> createdBy() {
        return Optional.ofNullable(this.createdBy);
    }

    /**
     * The type of identity that created the resource.
     * 
     */
    @Import(name="createdByType")
    private @Nullable Output> createdByType;

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

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

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

    /**
     * The timestamp of resource last modification (UTC)
     * 
     */
    @Import(name="lastModifiedAt")
    private @Nullable Output lastModifiedAt;

    /**
     * @return The timestamp of resource last modification (UTC)
     * 
     */
    public Optional> lastModifiedAt() {
        return Optional.ofNullable(this.lastModifiedAt);
    }

    /**
     * The identity that last modified the resource.
     * 
     */
    @Import(name="lastModifiedBy")
    private @Nullable Output lastModifiedBy;

    /**
     * @return The identity that last modified the resource.
     * 
     */
    public Optional> lastModifiedBy() {
        return Optional.ofNullable(this.lastModifiedBy);
    }

    /**
     * The type of identity that last modified the resource.
     * 
     */
    @Import(name="lastModifiedByType")
    private @Nullable Output> lastModifiedByType;

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

    /**
     * The port on which service is enabled.
     * 
     */
    @Import(name="port")
    private @Nullable Output port;

    /**
     * @return The port on which service is enabled.
     * 
     */
    public Optional> port() {
        return Optional.ofNullable(this.port);
    }

    /**
     * The resource Id of the connectivity endpoint (optional).
     * 
     */
    @Import(name="resourceId")
    private @Nullable Output resourceId;

    /**
     * @return The resource Id of the connectivity endpoint (optional).
     * 
     */
    public Optional> resourceId() {
        return Optional.ofNullable(this.resourceId);
    }

    /**
     * The fully qualified Azure Resource manager identifier of the resource to be connected.
     * 
     */
    @Import(name="resourceUri", required=true)
    private Output resourceUri;

    /**
     * @return The fully qualified Azure Resource manager identifier of the resource to be connected.
     * 
     */
    public Output resourceUri() {
        return this.resourceUri;
    }

    /**
     * The service name.
     * 
     */
    @Import(name="serviceConfigurationName")
    private @Nullable Output serviceConfigurationName;

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

    /**
     * Name of the service.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output> serviceName;

    /**
     * @return Name of the service.
     * 
     */
    public Output> serviceName() {
        return this.serviceName;
    }

    private ServiceConfigurationArgs() {}

    private ServiceConfigurationArgs(ServiceConfigurationArgs $) {
        this.createdAt = $.createdAt;
        this.createdBy = $.createdBy;
        this.createdByType = $.createdByType;
        this.endpointName = $.endpointName;
        this.lastModifiedAt = $.lastModifiedAt;
        this.lastModifiedBy = $.lastModifiedBy;
        this.lastModifiedByType = $.lastModifiedByType;
        this.port = $.port;
        this.resourceId = $.resourceId;
        this.resourceUri = $.resourceUri;
        this.serviceConfigurationName = $.serviceConfigurationName;
        this.serviceName = $.serviceName;
    }

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

    public static final class Builder {
        private ServiceConfigurationArgs $;

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

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

        /**
         * @param createdAt The timestamp of resource creation (UTC).
         * 
         * @return builder
         * 
         */
        public Builder createdAt(@Nullable Output createdAt) {
            $.createdAt = createdAt;
            return this;
        }

        /**
         * @param createdAt The timestamp of resource creation (UTC).
         * 
         * @return builder
         * 
         */
        public Builder createdAt(String createdAt) {
            return createdAt(Output.of(createdAt));
        }

        /**
         * @param createdBy The identity that created the resource.
         * 
         * @return builder
         * 
         */
        public Builder createdBy(@Nullable Output createdBy) {
            $.createdBy = createdBy;
            return this;
        }

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

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

        /**
         * @param createdByType The type of identity that created the resource.
         * 
         * @return builder
         * 
         */
        public Builder createdByType(Either createdByType) {
            return createdByType(Output.of(createdByType));
        }

        /**
         * @param createdByType The type of identity that created the resource.
         * 
         * @return builder
         * 
         */
        public Builder createdByType(String createdByType) {
            return createdByType(Either.ofLeft(createdByType));
        }

        /**
         * @param createdByType The type of identity that created the resource.
         * 
         * @return builder
         * 
         */
        public Builder createdByType(CreatedByType createdByType) {
            return createdByType(Either.ofRight(createdByType));
        }

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

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

        /**
         * @param lastModifiedAt The timestamp of resource last modification (UTC)
         * 
         * @return builder
         * 
         */
        public Builder lastModifiedAt(@Nullable Output lastModifiedAt) {
            $.lastModifiedAt = lastModifiedAt;
            return this;
        }

        /**
         * @param lastModifiedAt The timestamp of resource last modification (UTC)
         * 
         * @return builder
         * 
         */
        public Builder lastModifiedAt(String lastModifiedAt) {
            return lastModifiedAt(Output.of(lastModifiedAt));
        }

        /**
         * @param lastModifiedBy The identity that last modified the resource.
         * 
         * @return builder
         * 
         */
        public Builder lastModifiedBy(@Nullable Output lastModifiedBy) {
            $.lastModifiedBy = lastModifiedBy;
            return this;
        }

        /**
         * @param lastModifiedBy The identity that last modified the resource.
         * 
         * @return builder
         * 
         */
        public Builder lastModifiedBy(String lastModifiedBy) {
            return lastModifiedBy(Output.of(lastModifiedBy));
        }

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

        /**
         * @param lastModifiedByType The type of identity that last modified the resource.
         * 
         * @return builder
         * 
         */
        public Builder lastModifiedByType(Either lastModifiedByType) {
            return lastModifiedByType(Output.of(lastModifiedByType));
        }

        /**
         * @param lastModifiedByType The type of identity that last modified the resource.
         * 
         * @return builder
         * 
         */
        public Builder lastModifiedByType(String lastModifiedByType) {
            return lastModifiedByType(Either.ofLeft(lastModifiedByType));
        }

        /**
         * @param lastModifiedByType The type of identity that last modified the resource.
         * 
         * @return builder
         * 
         */
        public Builder lastModifiedByType(CreatedByType lastModifiedByType) {
            return lastModifiedByType(Either.ofRight(lastModifiedByType));
        }

        /**
         * @param port The port on which service is enabled.
         * 
         * @return builder
         * 
         */
        public Builder port(@Nullable Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port The port on which service is enabled.
         * 
         * @return builder
         * 
         */
        public Builder port(Double port) {
            return port(Output.of(port));
        }

        /**
         * @param resourceId The resource Id of the connectivity endpoint (optional).
         * 
         * @return builder
         * 
         */
        public Builder resourceId(@Nullable Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId The resource Id of the connectivity endpoint (optional).
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        /**
         * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
         * 
         * @return builder
         * 
         */
        public Builder resourceUri(Output resourceUri) {
            $.resourceUri = resourceUri;
            return this;
        }

        /**
         * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
         * 
         * @return builder
         * 
         */
        public Builder resourceUri(String resourceUri) {
            return resourceUri(Output.of(resourceUri));
        }

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

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

        /**
         * @param serviceName Name of the service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output> serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName Name of the service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Either serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param serviceName Name of the service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Either.ofLeft(serviceName));
        }

        /**
         * @param serviceName Name of the service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(ServiceName serviceName) {
            return serviceName(Either.ofRight(serviceName));
        }

        public ServiceConfigurationArgs build() {
            if ($.endpointName == null) {
                throw new MissingRequiredPropertyException("ServiceConfigurationArgs", "endpointName");
            }
            if ($.resourceUri == null) {
                throw new MissingRequiredPropertyException("ServiceConfigurationArgs", "resourceUri");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("ServiceConfigurationArgs", "serviceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy