Class MaintenanceConfigurationInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.maintenance.fluent.models.MaintenanceConfigurationInner
public final class MaintenanceConfigurationInner
extends com.azure.core.management.ProxyResource
Maintenance configuration record type.
-
Constructor Summary
ConstructorDescriptionCreates an instance of MaintenanceConfigurationInner class. -
Method Summary
Modifier and TypeMethodDescriptionduration()
Get the duration property: Duration of the maintenance window in HH:mm format.Get the expirationDateTime property: Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format.Get the extensionProperties property: Gets or sets extensionProperties of the maintenanceConfiguration.location()
Get the location property: Gets or sets location of the resource.Get the maintenanceScope property: Gets or sets maintenanceScope of the configuration.Get the namespace property: Gets or sets namespace of the resource.Get the recurEvery property: Rate at which a Maintenance window is expected to recur.Get the startDateTime property: Effective start date of the maintenance window in YYYY-MM-DD hh:mm format.com.azure.core.management.SystemData
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.tags()
Get the tags property: Gets or sets tags of the resource.timeZone()
Get the timeZone property: Name of the timezone.void
validate()
Validates the instance.Get the visibility property: Gets or sets the visibility of the configuration.withDuration
(String duration) Set the duration property: Duration of the maintenance window in HH:mm format.withExpirationDateTime
(String expirationDateTime) Set the expirationDateTime property: Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format.withExtensionProperties
(Map<String, String> extensionProperties) Set the extensionProperties property: Gets or sets extensionProperties of the maintenanceConfiguration.withLocation
(String location) Set the location property: Gets or sets location of the resource.withMaintenanceScope
(MaintenanceScope maintenanceScope) Set the maintenanceScope property: Gets or sets maintenanceScope of the configuration.withNamespace
(String namespace) Set the namespace property: Gets or sets namespace of the resource.withRecurEvery
(String recurEvery) Set the recurEvery property: Rate at which a Maintenance window is expected to recur.withStartDateTime
(String startDateTime) Set the startDateTime property: Effective start date of the maintenance window in YYYY-MM-DD hh:mm format.Set the tags property: Gets or sets tags of the resource.withTimeZone
(String timeZone) Set the timeZone property: Name of the timezone.withVisibility
(Visibility visibility) Set the visibility property: Gets or sets the visibility of the configuration.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
MaintenanceConfigurationInner
public MaintenanceConfigurationInner()Creates an instance of MaintenanceConfigurationInner class.
-
-
Method Details
-
location
Get the location property: Gets or sets location of the resource.- Returns:
- the location value.
-
withLocation
Set the location property: Gets or sets location of the resource.- Parameters:
location
- the location value to set.- Returns:
- the MaintenanceConfigurationInner object itself.
-
tags
Get the tags property: Gets or sets tags of the resource.- Returns:
- the tags value.
-
withTags
Set the tags property: Gets or sets tags of the resource.- Parameters:
tags
- the tags value to set.- Returns:
- the MaintenanceConfigurationInner object itself.
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
namespace
Get the namespace property: Gets or sets namespace of the resource.- Returns:
- the namespace value.
-
withNamespace
Set the namespace property: Gets or sets namespace of the resource.- Parameters:
namespace
- the namespace value to set.- Returns:
- the MaintenanceConfigurationInner object itself.
-
extensionProperties
Get the extensionProperties property: Gets or sets extensionProperties of the maintenanceConfiguration.- Returns:
- the extensionProperties value.
-
withExtensionProperties
public MaintenanceConfigurationInner withExtensionProperties(Map<String, String> extensionProperties) Set the extensionProperties property: Gets or sets extensionProperties of the maintenanceConfiguration.- Parameters:
extensionProperties
- the extensionProperties value to set.- Returns:
- the MaintenanceConfigurationInner object itself.
-
maintenanceScope
Get the maintenanceScope property: Gets or sets maintenanceScope of the configuration.- Returns:
- the maintenanceScope value.
-
withMaintenanceScope
Set the maintenanceScope property: Gets or sets maintenanceScope of the configuration.- Parameters:
maintenanceScope
- the maintenanceScope value to set.- Returns:
- the MaintenanceConfigurationInner object itself.
-
visibility
Get the visibility property: Gets or sets the visibility of the configuration. The default value is 'Custom'.- Returns:
- the visibility value.
-
withVisibility
Set the visibility property: Gets or sets the visibility of the configuration. The default value is 'Custom'.- Parameters:
visibility
- the visibility value to set.- Returns:
- the MaintenanceConfigurationInner object itself.
-
startDateTime
Get the startDateTime property: Effective start date of the maintenance window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.- Returns:
- the startDateTime value.
-
withStartDateTime
Set the startDateTime property: Effective start date of the maintenance window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.- Parameters:
startDateTime
- the startDateTime value to set.- Returns:
- the MaintenanceConfigurationInner object itself.
-
expirationDateTime
Get the expirationDateTime property: Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.- Returns:
- the expirationDateTime value.
-
withExpirationDateTime
Set the expirationDateTime property: Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.- Parameters:
expirationDateTime
- the expirationDateTime value to set.- Returns:
- the MaintenanceConfigurationInner object itself.
-
duration
Get the duration property: Duration of the maintenance window in HH:mm format. If not provided, default value will be used based on maintenance scope provided. Example: 05:00.- Returns:
- the duration value.
-
withDuration
Set the duration property: Duration of the maintenance window in HH:mm format. If not provided, default value will be used based on maintenance scope provided. Example: 05:00.- Parameters:
duration
- the duration value to set.- Returns:
- the MaintenanceConfigurationInner object itself.
-
timeZone
Get the timeZone property: Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.- Returns:
- the timeZone value.
-
withTimeZone
Set the timeZone property: Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.- Parameters:
timeZone
- the timeZone value to set.- Returns:
- the MaintenanceConfigurationInner object itself.
-
recurEvery
Get the recurEvery property: Rate at which a Maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules. Daily schedule are formatted as recurEvery: [Frequency as integer]['Day(s)']. If no frequency is provided, the default frequency is 1. Daily schedule examples are recurEvery: Day, recurEvery: 3Days. Weekly schedule are formatted as recurEvery: [Frequency as integer]['Week(s)'] [Optional comma separated list of weekdays Monday-Sunday]. Weekly schedule examples are recurEvery: 3Weeks, recurEvery: Week Saturday,Sunday. Monthly schedules are formatted as [Frequency as integer]['Month(s)'] [Comma separated list of month days] or [Frequency as integer]['Month(s)'] [Week of Month (First, Second, Third, Fourth, Last)] [Weekday Monday-Sunday]. Monthly schedule examples are recurEvery: Month, recurEvery: 2Months, recurEvery: Month day23,day24, recurEvery: Month Last Sunday, recurEvery: Month Fourth Monday.- Returns:
- the recurEvery value.
-
withRecurEvery
Set the recurEvery property: Rate at which a Maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules. Daily schedule are formatted as recurEvery: [Frequency as integer]['Day(s)']. If no frequency is provided, the default frequency is 1. Daily schedule examples are recurEvery: Day, recurEvery: 3Days. Weekly schedule are formatted as recurEvery: [Frequency as integer]['Week(s)'] [Optional comma separated list of weekdays Monday-Sunday]. Weekly schedule examples are recurEvery: 3Weeks, recurEvery: Week Saturday,Sunday. Monthly schedules are formatted as [Frequency as integer]['Month(s)'] [Comma separated list of month days] or [Frequency as integer]['Month(s)'] [Week of Month (First, Second, Third, Fourth, Last)] [Weekday Monday-Sunday]. Monthly schedule examples are recurEvery: Month, recurEvery: 2Months, recurEvery: Month day23,day24, recurEvery: Month Last Sunday, recurEvery: Month Fourth Monday.- Parameters:
recurEvery
- the recurEvery value to set.- Returns:
- the MaintenanceConfigurationInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-