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

com.pulumi.azurenative.eventgrid.PartnerDestinationArgs 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.eventgrid;

import com.pulumi.azurenative.eventgrid.enums.PartnerDestinationActivationState;
import com.pulumi.core.Either;
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 PartnerDestinationArgs extends com.pulumi.resources.ResourceArgs {

    public static final PartnerDestinationArgs Empty = new PartnerDestinationArgs();

    /**
     * Activation state of the partner destination.
     * 
     */
    @Import(name="activationState")
    private @Nullable Output> activationState;

    /**
     * @return Activation state of the partner destination.
     * 
     */
    public Optional>> activationState() {
        return Optional.ofNullable(this.activationState);
    }

    /**
     * Endpoint Base URL of the partner destination
     * 
     */
    @Import(name="endpointBaseUrl")
    private @Nullable Output endpointBaseUrl;

    /**
     * @return Endpoint Base URL of the partner destination
     * 
     */
    public Optional> endpointBaseUrl() {
        return Optional.ofNullable(this.endpointBaseUrl);
    }

    /**
     * Endpoint context associated with this partner destination.
     * 
     */
    @Import(name="endpointServiceContext")
    private @Nullable Output endpointServiceContext;

    /**
     * @return Endpoint context associated with this partner destination.
     * 
     */
    public Optional> endpointServiceContext() {
        return Optional.ofNullable(this.endpointServiceContext);
    }

    /**
     * Expiration time of the partner destination. If this timer expires and the partner destination was never activated,
     * the partner destination and corresponding channel are deleted.
     * 
     */
    @Import(name="expirationTimeIfNotActivatedUtc")
    private @Nullable Output expirationTimeIfNotActivatedUtc;

    /**
     * @return Expiration time of the partner destination. If this timer expires and the partner destination was never activated,
     * the partner destination and corresponding channel are deleted.
     * 
     */
    public Optional> expirationTimeIfNotActivatedUtc() {
        return Optional.ofNullable(this.expirationTimeIfNotActivatedUtc);
    }

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

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

    /**
     * Context or helpful message that can be used during the approval process.
     * 
     */
    @Import(name="messageForActivation")
    private @Nullable Output messageForActivation;

    /**
     * @return Context or helpful message that can be used during the approval process.
     * 
     */
    public Optional> messageForActivation() {
        return Optional.ofNullable(this.messageForActivation);
    }

    /**
     * Name of the partner destination.
     * 
     */
    @Import(name="partnerDestinationName")
    private @Nullable Output partnerDestinationName;

    /**
     * @return Name of the partner destination.
     * 
     */
    public Optional> partnerDestinationName() {
        return Optional.ofNullable(this.partnerDestinationName);
    }

    /**
     * The immutable Id of the corresponding partner registration.
     * 
     */
    @Import(name="partnerRegistrationImmutableId")
    private @Nullable Output partnerRegistrationImmutableId;

    /**
     * @return The immutable Id of the corresponding partner registration.
     * 
     */
    public Optional> partnerRegistrationImmutableId() {
        return Optional.ofNullable(this.partnerRegistrationImmutableId);
    }

    /**
     * The name of the resource group within the user's subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group within the user's subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

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

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

    private PartnerDestinationArgs() {}

    private PartnerDestinationArgs(PartnerDestinationArgs $) {
        this.activationState = $.activationState;
        this.endpointBaseUrl = $.endpointBaseUrl;
        this.endpointServiceContext = $.endpointServiceContext;
        this.expirationTimeIfNotActivatedUtc = $.expirationTimeIfNotActivatedUtc;
        this.location = $.location;
        this.messageForActivation = $.messageForActivation;
        this.partnerDestinationName = $.partnerDestinationName;
        this.partnerRegistrationImmutableId = $.partnerRegistrationImmutableId;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private PartnerDestinationArgs $;

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

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

        /**
         * @param activationState Activation state of the partner destination.
         * 
         * @return builder
         * 
         */
        public Builder activationState(@Nullable Output> activationState) {
            $.activationState = activationState;
            return this;
        }

        /**
         * @param activationState Activation state of the partner destination.
         * 
         * @return builder
         * 
         */
        public Builder activationState(Either activationState) {
            return activationState(Output.of(activationState));
        }

        /**
         * @param activationState Activation state of the partner destination.
         * 
         * @return builder
         * 
         */
        public Builder activationState(String activationState) {
            return activationState(Either.ofLeft(activationState));
        }

        /**
         * @param activationState Activation state of the partner destination.
         * 
         * @return builder
         * 
         */
        public Builder activationState(PartnerDestinationActivationState activationState) {
            return activationState(Either.ofRight(activationState));
        }

        /**
         * @param endpointBaseUrl Endpoint Base URL of the partner destination
         * 
         * @return builder
         * 
         */
        public Builder endpointBaseUrl(@Nullable Output endpointBaseUrl) {
            $.endpointBaseUrl = endpointBaseUrl;
            return this;
        }

        /**
         * @param endpointBaseUrl Endpoint Base URL of the partner destination
         * 
         * @return builder
         * 
         */
        public Builder endpointBaseUrl(String endpointBaseUrl) {
            return endpointBaseUrl(Output.of(endpointBaseUrl));
        }

        /**
         * @param endpointServiceContext Endpoint context associated with this partner destination.
         * 
         * @return builder
         * 
         */
        public Builder endpointServiceContext(@Nullable Output endpointServiceContext) {
            $.endpointServiceContext = endpointServiceContext;
            return this;
        }

        /**
         * @param endpointServiceContext Endpoint context associated with this partner destination.
         * 
         * @return builder
         * 
         */
        public Builder endpointServiceContext(String endpointServiceContext) {
            return endpointServiceContext(Output.of(endpointServiceContext));
        }

        /**
         * @param expirationTimeIfNotActivatedUtc Expiration time of the partner destination. If this timer expires and the partner destination was never activated,
         * the partner destination and corresponding channel are deleted.
         * 
         * @return builder
         * 
         */
        public Builder expirationTimeIfNotActivatedUtc(@Nullable Output expirationTimeIfNotActivatedUtc) {
            $.expirationTimeIfNotActivatedUtc = expirationTimeIfNotActivatedUtc;
            return this;
        }

        /**
         * @param expirationTimeIfNotActivatedUtc Expiration time of the partner destination. If this timer expires and the partner destination was never activated,
         * the partner destination and corresponding channel are deleted.
         * 
         * @return builder
         * 
         */
        public Builder expirationTimeIfNotActivatedUtc(String expirationTimeIfNotActivatedUtc) {
            return expirationTimeIfNotActivatedUtc(Output.of(expirationTimeIfNotActivatedUtc));
        }

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

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

        /**
         * @param messageForActivation Context or helpful message that can be used during the approval process.
         * 
         * @return builder
         * 
         */
        public Builder messageForActivation(@Nullable Output messageForActivation) {
            $.messageForActivation = messageForActivation;
            return this;
        }

        /**
         * @param messageForActivation Context or helpful message that can be used during the approval process.
         * 
         * @return builder
         * 
         */
        public Builder messageForActivation(String messageForActivation) {
            return messageForActivation(Output.of(messageForActivation));
        }

        /**
         * @param partnerDestinationName Name of the partner destination.
         * 
         * @return builder
         * 
         */
        public Builder partnerDestinationName(@Nullable Output partnerDestinationName) {
            $.partnerDestinationName = partnerDestinationName;
            return this;
        }

        /**
         * @param partnerDestinationName Name of the partner destination.
         * 
         * @return builder
         * 
         */
        public Builder partnerDestinationName(String partnerDestinationName) {
            return partnerDestinationName(Output.of(partnerDestinationName));
        }

        /**
         * @param partnerRegistrationImmutableId The immutable Id of the corresponding partner registration.
         * 
         * @return builder
         * 
         */
        public Builder partnerRegistrationImmutableId(@Nullable Output partnerRegistrationImmutableId) {
            $.partnerRegistrationImmutableId = partnerRegistrationImmutableId;
            return this;
        }

        /**
         * @param partnerRegistrationImmutableId The immutable Id of the corresponding partner registration.
         * 
         * @return builder
         * 
         */
        public Builder partnerRegistrationImmutableId(String partnerRegistrationImmutableId) {
            return partnerRegistrationImmutableId(Output.of(partnerRegistrationImmutableId));
        }

        /**
         * @param resourceGroupName The name of the resource group within the user's subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group within the user's subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

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

        public PartnerDestinationArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("PartnerDestinationArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy