Class ScheduledActionProperties
java.lang.Object
com.azure.resourcemanager.costmanagement.fluent.models.ScheduledActionProperties
The properties of the scheduled action.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ScheduledActionProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the displayName property: Scheduled action name.Get the fileDestination property: Destination format of the view data.Get the notification property: Notification properties based on scheduled action kind.Get the notificationEmail property: Email address of the point of contact that should get the unsubscribe requests and notification emails.schedule()
Get the schedule property: Schedule of the scheduled action.scope()
Get the scope property: Cost Management scope like '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.status()
Get the status property: Status of the scheduled action.void
validate()
Validates the instance.viewId()
Get the viewId property: Cost analysis viewId used for scheduled action.withDisplayName
(String displayName) Set the displayName property: Scheduled action name.withFileDestination
(FileDestination fileDestination) Set the fileDestination property: Destination format of the view data.withNotification
(NotificationProperties notification) Set the notification property: Notification properties based on scheduled action kind.withNotificationEmail
(String notificationEmail) Set the notificationEmail property: Email address of the point of contact that should get the unsubscribe requests and notification emails.withSchedule
(ScheduleProperties schedule) Set the schedule property: Schedule of the scheduled action.Set the scope property: Cost Management scope like '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.withStatus
(ScheduledActionStatus status) Set the status property: Status of the scheduled action.withViewId
(String viewId) Set the viewId property: Cost analysis viewId used for scheduled action.
-
Constructor Details
-
ScheduledActionProperties
public ScheduledActionProperties()Creates an instance of ScheduledActionProperties class.
-
-
Method Details
-
displayName
Get the displayName property: Scheduled action name.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Scheduled action name.- Parameters:
displayName
- the displayName value to set.- Returns:
- the ScheduledActionProperties object itself.
-
fileDestination
Get the fileDestination property: Destination format of the view data. This is optional.- Returns:
- the fileDestination value.
-
withFileDestination
Set the fileDestination property: Destination format of the view data. This is optional.- Parameters:
fileDestination
- the fileDestination value to set.- Returns:
- the ScheduledActionProperties object itself.
-
notification
Get the notification property: Notification properties based on scheduled action kind.- Returns:
- the notification value.
-
withNotification
Set the notification property: Notification properties based on scheduled action kind.- Parameters:
notification
- the notification value to set.- Returns:
- the ScheduledActionProperties object itself.
-
notificationEmail
Get the notificationEmail property: Email address of the point of contact that should get the unsubscribe requests and notification emails.- Returns:
- the notificationEmail value.
-
withNotificationEmail
Set the notificationEmail property: Email address of the point of contact that should get the unsubscribe requests and notification emails.- Parameters:
notificationEmail
- the notificationEmail value to set.- Returns:
- the ScheduledActionProperties object itself.
-
schedule
Get the schedule property: Schedule of the scheduled action.- Returns:
- the schedule value.
-
withSchedule
Set the schedule property: Schedule of the scheduled action.- Parameters:
schedule
- the schedule value to set.- Returns:
- the ScheduledActionProperties object itself.
-
scope
Get the scope property: Cost Management scope like '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.- Returns:
- the scope value.
-
withScope
Set the scope property: Cost Management scope like '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.- Parameters:
scope
- the scope value to set.- Returns:
- the ScheduledActionProperties object itself.
-
status
Get the status property: Status of the scheduled action.- Returns:
- the status value.
-
withStatus
Set the status property: Status of the scheduled action.- Parameters:
status
- the status value to set.- Returns:
- the ScheduledActionProperties object itself.
-
viewId
Get the viewId property: Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'.- Returns:
- the viewId value.
-
withViewId
Set the viewId property: Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'.- Parameters:
viewId
- the viewId value to set.- Returns:
- the ScheduledActionProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-