MaintenanceConfigurationInner Class

public final class MaintenanceConfigurationInner
extends SubResource

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.

MaintenanceWindow maintenanceWindow()

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

String name()

Get the name property: The name of the resource that is unique within a resource group.

List<TimeSpan> notAllowedTime()

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

SystemData systemData()

Get the systemData property: The system metadata relating to this resource.

List<TimeInWeek> timeInWeek()

Get the timeInWeek property: If two array entries specify the same day of the week, the applied configuration is the union of times in both entries.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

MaintenanceConfigurationInner withId(String id)
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: If two array entries specify the same day of the week, the applied configuration is the union of times in both entries.

Methods inherited from SubResource

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 an error occurs while reading the MaintenanceConfigurationInner.

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 that is unique within a resource group. This name can be used to access the resource.

Returns:

the name value.

notAllowedTime

public List 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: The system metadata relating to this resource.

Returns:

the systemData value.

timeInWeek

public List timeInWeek()

Get the timeInWeek property: 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: Resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public MaintenanceConfigurationInner withId(String id)

Overrides:

MaintenanceConfigurationInner.withId(String id)

Parameters:

id

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 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)

Set the timeInWeek property: 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