MaintenanceConfigurationInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. containerservice. fluent. models. MaintenanceConfigurationInner
- com.
- com.
public final class MaintenanceConfigurationInner
extends ProxyResource
Planned maintenance configuration, used to configure when updates can be deployed to a Managed Cluster. See [planned maintenance](https://docs.microsoft.com/azure/aks/planned-maintenance) for more information about planned maintenance.
Constructor Summary
| Constructor | Description |
|---|---|
| MaintenanceConfigurationInner() |
Creates an instance of Maintenance |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Maintenance |
fromJson(JsonReader jsonReader)
Reads an instance of Maintenance |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
|
Maintenance |
maintenanceWindow()
Get the maintenance |
| String |
name()
Get the name property: The name of the resource. |
|
List<Time |
notAllowedTime()
Get the not |
|
System |
systemData()
Get the system |
|
List<Time |
timeInWeek()
Get the time |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Maintenance |
withMaintenanceWindow(MaintenanceWindow maintenanceWindow)
Set the maintenance |
|
Maintenance |
withNotAllowedTime(List<TimeSpan> notAllowedTime)
Set the not |
|
Maintenance |
withTimeInWeek(List<TimeInWeek> timeInWeek)
Set the time |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
MaintenanceConfigurationInner
public MaintenanceConfigurationInner()
Creates an instance of MaintenanceConfigurationInner class.
Method Details
fromJson
public static MaintenanceConfigurationInner fromJson(JsonReader jsonReader)
Reads an instance of MaintenanceConfigurationInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
MaintenanceConfigurationInner.id()Returns:
maintenanceWindow
public MaintenanceWindow maintenanceWindow()
Get the maintenanceWindow property: Maintenance window for the maintenance configuration.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
MaintenanceConfigurationInner.name()Returns:
notAllowedTime
public List<TimeSpan> notAllowedTime()
Get the notAllowedTime property: Time slots on which upgrade is not allowed.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
timeInWeek
public List<TimeInWeek> timeInWeek()
Get the timeInWeek property: Time slots during the week when planned maintenance is allowed to proceed. If two array entries specify the same day of the week, the applied configuration is the union of times in both entries.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MaintenanceConfigurationInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
MaintenanceConfigurationInner.type()Returns:
validate
public void validate()
Validates the instance.
withMaintenanceWindow
public MaintenanceConfigurationInner withMaintenanceWindow(MaintenanceWindow maintenanceWindow)
Set the maintenanceWindow property: Maintenance window for the maintenance configuration.
Parameters:
Returns:
withNotAllowedTime
public MaintenanceConfigurationInner withNotAllowedTime(List<TimeSpan> notAllowedTime)
Set the notAllowedTime property: Time slots on which upgrade is not allowed.
Parameters:
Returns:
withTimeInWeek
public MaintenanceConfigurationInner withTimeInWeek(List<TimeInWeek> timeInWeek)
Set the timeInWeek property: Time slots during the week when planned maintenance is allowed to proceed. If two array entries specify the same day of the week, the applied configuration is the union of times in both entries.
Parameters:
Returns: