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

com.pulumi.azurenative.costmanagement.ConnectorArgs 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.costmanagement;

import com.pulumi.azurenative.costmanagement.enums.ConnectorStatus;
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 ConnectorArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnectorArgs Empty = new ConnectorArgs();

    /**
     * Connector Name.
     * 
     */
    @Import(name="connectorName")
    private @Nullable Output connectorName;

    /**
     * @return Connector Name.
     * 
     */
    public Optional> connectorName() {
        return Optional.ofNullable(this.connectorName);
    }

    /**
     * Credentials authentication key (eg AWS ARN)
     * 
     */
    @Import(name="credentialsKey")
    private @Nullable Output credentialsKey;

    /**
     * @return Credentials authentication key (eg AWS ARN)
     * 
     */
    public Optional> credentialsKey() {
        return Optional.ofNullable(this.credentialsKey);
    }

    /**
     * Credentials secret (eg AWS ExternalId)
     * 
     */
    @Import(name="credentialsSecret")
    private @Nullable Output credentialsSecret;

    /**
     * @return Credentials secret (eg AWS ExternalId)
     * 
     */
    public Optional> credentialsSecret() {
        return Optional.ofNullable(this.credentialsSecret);
    }

    /**
     * Connector DisplayName (defaults to Name)
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return Connector DisplayName (defaults to Name)
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * Connector kind (eg aws)
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return Connector kind (eg aws)
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

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

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

    /**
     * Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
     * 
     */
    @Import(name="reportId")
    private @Nullable Output reportId;

    /**
     * @return Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
     * 
     */
    public Optional> reportId() {
        return Optional.ofNullable(this.reportId);
    }

    /**
     * Azure Resource Group Name.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Azure Resource Group Name.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Connector status
     * 
     */
    @Import(name="status")
    private @Nullable Output> status;

    /**
     * @return Connector status
     * 
     */
    public Optional>> status() {
        return Optional.ofNullable(this.status);
    }

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

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

    private ConnectorArgs() {}

    private ConnectorArgs(ConnectorArgs $) {
        this.connectorName = $.connectorName;
        this.credentialsKey = $.credentialsKey;
        this.credentialsSecret = $.credentialsSecret;
        this.displayName = $.displayName;
        this.kind = $.kind;
        this.location = $.location;
        this.reportId = $.reportId;
        this.resourceGroupName = $.resourceGroupName;
        this.status = $.status;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ConnectorArgs $;

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

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

        /**
         * @param connectorName Connector Name.
         * 
         * @return builder
         * 
         */
        public Builder connectorName(@Nullable Output connectorName) {
            $.connectorName = connectorName;
            return this;
        }

        /**
         * @param connectorName Connector Name.
         * 
         * @return builder
         * 
         */
        public Builder connectorName(String connectorName) {
            return connectorName(Output.of(connectorName));
        }

        /**
         * @param credentialsKey Credentials authentication key (eg AWS ARN)
         * 
         * @return builder
         * 
         */
        public Builder credentialsKey(@Nullable Output credentialsKey) {
            $.credentialsKey = credentialsKey;
            return this;
        }

        /**
         * @param credentialsKey Credentials authentication key (eg AWS ARN)
         * 
         * @return builder
         * 
         */
        public Builder credentialsKey(String credentialsKey) {
            return credentialsKey(Output.of(credentialsKey));
        }

        /**
         * @param credentialsSecret Credentials secret (eg AWS ExternalId)
         * 
         * @return builder
         * 
         */
        public Builder credentialsSecret(@Nullable Output credentialsSecret) {
            $.credentialsSecret = credentialsSecret;
            return this;
        }

        /**
         * @param credentialsSecret Credentials secret (eg AWS ExternalId)
         * 
         * @return builder
         * 
         */
        public Builder credentialsSecret(String credentialsSecret) {
            return credentialsSecret(Output.of(credentialsSecret));
        }

        /**
         * @param displayName Connector DisplayName (defaults to Name)
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Connector DisplayName (defaults to Name)
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param kind Connector kind (eg aws)
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Connector kind (eg aws)
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

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

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

        /**
         * @param reportId Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
         * 
         * @return builder
         * 
         */
        public Builder reportId(@Nullable Output reportId) {
            $.reportId = reportId;
            return this;
        }

        /**
         * @param reportId Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
         * 
         * @return builder
         * 
         */
        public Builder reportId(String reportId) {
            return reportId(Output.of(reportId));
        }

        /**
         * @param resourceGroupName Azure Resource Group Name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Azure Resource Group Name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param status Connector status
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output> status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Connector status
         * 
         * @return builder
         * 
         */
        public Builder status(Either status) {
            return status(Output.of(status));
        }

        /**
         * @param status Connector status
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Either.ofLeft(status));
        }

        /**
         * @param status Connector status
         * 
         * @return builder
         * 
         */
        public Builder status(ConnectorStatus status) {
            return status(Either.ofRight(status));
        }

        /**
         * @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 ConnectorArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ConnectorArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy