Share via


MaintenanceConfigurationInner Class

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 MaintenanceConfigurationInner class.

Method Summary

Modifier and Type Method and Description
static MaintenanceConfigurationInner fromJson(JsonReader jsonReader)

Reads an instance of MaintenanceConfigurationInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

MaintenanceWindow maintenanceWindow()

Get the maintenanceWindow property: Maintenance window for the maintenance configuration.

String name()

Get the name property: The name of the resource.

List<TimeSpan> notAllowedTime()

Get the notAllowedTime property: Time slots on which upgrade is not allowed.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

List<TimeInWeek> timeInWeek()

Get the timeInWeek property: Time slots during the week when planned maintenance is allowed to proceed.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

MaintenanceConfigurationInner withMaintenanceWindow(MaintenanceWindow maintenanceWindow)

Set the maintenanceWindow property: Maintenance window for the maintenance configuration.

MaintenanceConfigurationInner withNotAllowedTime(List<TimeSpan> notAllowedTime)

Set the notAllowedTime property: Time slots on which upgrade is not allowed.

MaintenanceConfigurationInner withTimeInWeek(List<TimeInWeek> timeInWeek)

Set the timeInWeek property: Time slots during the week when planned maintenance is allowed to proceed.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of MaintenanceConfigurationInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

MaintenanceConfigurationInner.id()

Returns:

the id value.

maintenanceWindow

public MaintenanceWindow maintenanceWindow()

Get the maintenanceWindow property: Maintenance window for the maintenance configuration.

Returns:

the maintenanceWindow value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

MaintenanceConfigurationInner.name()

Returns:

the name value.

notAllowedTime

public List<TimeSpan> notAllowedTime()

Get the notAllowedTime property: Time slots on which upgrade is not allowed.

Returns:

the notAllowedTime value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

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:

the timeInWeek value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MaintenanceConfigurationInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

MaintenanceConfigurationInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withMaintenanceWindow

public MaintenanceConfigurationInner withMaintenanceWindow(MaintenanceWindow maintenanceWindow)

Set the maintenanceWindow property: Maintenance window for the maintenance configuration.

Parameters:

maintenanceWindow - the maintenanceWindow value to set.

Returns:

the MaintenanceConfigurationInner object itself.

withNotAllowedTime

public MaintenanceConfigurationInner withNotAllowedTime(List<TimeSpan> notAllowedTime)

Set the notAllowedTime property: Time slots on which upgrade is not allowed.

Parameters:

notAllowedTime - the notAllowedTime value to set.

Returns:

the MaintenanceConfigurationInner object itself.

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:

timeInWeek - the timeInWeek value to set.

Returns:

the MaintenanceConfigurationInner object itself.

Applies to