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

com.pulumi.azurenative.costmanagement.ScheduledActionArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.ScheduledActionKind;
import com.pulumi.azurenative.costmanagement.enums.ScheduledActionStatus;
import com.pulumi.azurenative.costmanagement.inputs.FileDestinationArgs;
import com.pulumi.azurenative.costmanagement.inputs.NotificationPropertiesArgs;
import com.pulumi.azurenative.costmanagement.inputs.SchedulePropertiesArgs;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ScheduledActionArgs Empty = new ScheduledActionArgs();

    /**
     * Scheduled action name.
     * 
     */
    @Import(name="displayName", required=true)
    private Output displayName;

    /**
     * @return Scheduled action name.
     * 
     */
    public Output displayName() {
        return this.displayName;
    }

    /**
     * Destination format of the view data. This is optional.
     * 
     */
    @Import(name="fileDestination")
    private @Nullable Output fileDestination;

    /**
     * @return Destination format of the view data. This is optional.
     * 
     */
    public Optional> fileDestination() {
        return Optional.ofNullable(this.fileDestination);
    }

    /**
     * Kind of the scheduled action.
     * 
     */
    @Import(name="kind")
    private @Nullable Output> kind;

    /**
     * @return Kind of the scheduled action.
     * 
     */
    public Optional>> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * Scheduled action name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Scheduled action name.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Notification properties based on scheduled action kind.
     * 
     */
    @Import(name="notification", required=true)
    private Output notification;

    /**
     * @return Notification properties based on scheduled action kind.
     * 
     */
    public Output notification() {
        return this.notification;
    }

    /**
     * Email address of the point of contact that should get the unsubscribe requests and notification emails.
     * 
     */
    @Import(name="notificationEmail")
    private @Nullable Output notificationEmail;

    /**
     * @return Email address of the point of contact that should get the unsubscribe requests and notification emails.
     * 
     */
    public Optional> notificationEmail() {
        return Optional.ofNullable(this.notificationEmail);
    }

    /**
     * Schedule of the scheduled action.
     * 
     */
    @Import(name="schedule", required=true)
    private Output schedule;

    /**
     * @return Schedule of the scheduled action.
     * 
     */
    public Output schedule() {
        return this.schedule;
    }

    /**
     * For private scheduled action(Create or Update), scope will be empty.<br /> For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
     * 
     */
    @Import(name="scope")
    private @Nullable Output scope;

    /**
     * @return For private scheduled action(Create or Update), scope will be empty.<br /> For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
     * 
     */
    public Optional> scope() {
        return Optional.ofNullable(this.scope);
    }

    /**
     * Status of the scheduled action.
     * 
     */
    @Import(name="status", required=true)
    private Output> status;

    /**
     * @return Status of the scheduled action.
     * 
     */
    public Output> status() {
        return this.status;
    }

    /**
     * Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
     * 
     */
    @Import(name="viewId", required=true)
    private Output viewId;

    /**
     * @return Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
     * 
     */
    public Output viewId() {
        return this.viewId;
    }

    private ScheduledActionArgs() {}

    private ScheduledActionArgs(ScheduledActionArgs $) {
        this.displayName = $.displayName;
        this.fileDestination = $.fileDestination;
        this.kind = $.kind;
        this.name = $.name;
        this.notification = $.notification;
        this.notificationEmail = $.notificationEmail;
        this.schedule = $.schedule;
        this.scope = $.scope;
        this.status = $.status;
        this.viewId = $.viewId;
    }

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

    public static final class Builder {
        private ScheduledActionArgs $;

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

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

        /**
         * @param displayName Scheduled action name.
         * 
         * @return builder
         * 
         */
        public Builder displayName(Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Scheduled action name.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param fileDestination Destination format of the view data. This is optional.
         * 
         * @return builder
         * 
         */
        public Builder fileDestination(@Nullable Output fileDestination) {
            $.fileDestination = fileDestination;
            return this;
        }

        /**
         * @param fileDestination Destination format of the view data. This is optional.
         * 
         * @return builder
         * 
         */
        public Builder fileDestination(FileDestinationArgs fileDestination) {
            return fileDestination(Output.of(fileDestination));
        }

        /**
         * @param kind Kind of the scheduled action.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output> kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Kind of the scheduled action.
         * 
         * @return builder
         * 
         */
        public Builder kind(Either kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param kind Kind of the scheduled action.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Either.ofLeft(kind));
        }

        /**
         * @param kind Kind of the scheduled action.
         * 
         * @return builder
         * 
         */
        public Builder kind(ScheduledActionKind kind) {
            return kind(Either.ofRight(kind));
        }

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

        /**
         * @param name Scheduled action name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param notification Notification properties based on scheduled action kind.
         * 
         * @return builder
         * 
         */
        public Builder notification(Output notification) {
            $.notification = notification;
            return this;
        }

        /**
         * @param notification Notification properties based on scheduled action kind.
         * 
         * @return builder
         * 
         */
        public Builder notification(NotificationPropertiesArgs notification) {
            return notification(Output.of(notification));
        }

        /**
         * @param notificationEmail Email address of the point of contact that should get the unsubscribe requests and notification emails.
         * 
         * @return builder
         * 
         */
        public Builder notificationEmail(@Nullable Output notificationEmail) {
            $.notificationEmail = notificationEmail;
            return this;
        }

        /**
         * @param notificationEmail Email address of the point of contact that should get the unsubscribe requests and notification emails.
         * 
         * @return builder
         * 
         */
        public Builder notificationEmail(String notificationEmail) {
            return notificationEmail(Output.of(notificationEmail));
        }

        /**
         * @param schedule Schedule of the scheduled action.
         * 
         * @return builder
         * 
         */
        public Builder schedule(Output schedule) {
            $.schedule = schedule;
            return this;
        }

        /**
         * @param schedule Schedule of the scheduled action.
         * 
         * @return builder
         * 
         */
        public Builder schedule(SchedulePropertiesArgs schedule) {
            return schedule(Output.of(schedule));
        }

        /**
         * @param scope For private scheduled action(Create or Update), scope will be empty.<br /> For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
         * 
         * @return builder
         * 
         */
        public Builder scope(@Nullable Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope For private scheduled action(Create or Update), scope will be empty.<br /> For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        /**
         * @param status Status of the scheduled action.
         * 
         * @return builder
         * 
         */
        public Builder status(Output> status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Status of the scheduled action.
         * 
         * @return builder
         * 
         */
        public Builder status(Either status) {
            return status(Output.of(status));
        }

        /**
         * @param status Status of the scheduled action.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Either.ofLeft(status));
        }

        /**
         * @param status Status of the scheduled action.
         * 
         * @return builder
         * 
         */
        public Builder status(ScheduledActionStatus status) {
            return status(Either.ofRight(status));
        }

        /**
         * @param viewId Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
         * 
         * @return builder
         * 
         */
        public Builder viewId(Output viewId) {
            $.viewId = viewId;
            return this;
        }

        /**
         * @param viewId Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
         * 
         * @return builder
         * 
         */
        public Builder viewId(String viewId) {
            return viewId(Output.of(viewId));
        }

        public ScheduledActionArgs build() {
            if ($.displayName == null) {
                throw new MissingRequiredPropertyException("ScheduledActionArgs", "displayName");
            }
            if ($.notification == null) {
                throw new MissingRequiredPropertyException("ScheduledActionArgs", "notification");
            }
            if ($.schedule == null) {
                throw new MissingRequiredPropertyException("ScheduledActionArgs", "schedule");
            }
            if ($.status == null) {
                throw new MissingRequiredPropertyException("ScheduledActionArgs", "status");
            }
            if ($.viewId == null) {
                throw new MissingRequiredPropertyException("ScheduledActionArgs", "viewId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy