MaintenanceConfigurationInner Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. containerservice. fluent. models. MaintenanceConfigurationInner
- com.
- com.
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 Maintenance |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Maintenance |
fromJson(JsonReader jsonReader)
Reads an instance of Maintenance |
Maintenance |
maintenanceWindow()
Get the maintenance |
String |
name()
Get the name property: The name of the resource that is unique within a resource group. |
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: Resource type. |
void |
validate()
Validates the instance. |
Maintenance |
withId(String id) |
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 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:
Returns:
Throws:
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 that is unique within a resource group. This name can be used to access the resource.
Returns:
notAllowedTime
public List
Get the notAllowedTime property: Time slots on which upgrade is not allowed.
Returns:
systemData
public SystemData systemData()
Get the systemData property: The system metadata relating to this resource.
Returns:
timeInWeek
public List
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MaintenanceConfigurationInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Resource type.
Returns:
validate
public void validate()
Validates the instance.
withId
public MaintenanceConfigurationInner withId(String id)
Overrides:
MaintenanceConfigurationInner.withId(String id)Parameters:
withMaintenanceWindow
public MaintenanceConfigurationInner withMaintenanceWindow(MaintenanceWindow maintenanceWindow)
Set the maintenanceWindow property: Maintenance window for the maintenance configuration.
Parameters:
Returns:
withNotAllowedTime
public MaintenanceConfigurationInner withNotAllowedTime(List
Set the notAllowedTime property: Time slots on which upgrade is not allowed.
Parameters:
Returns:
withTimeInWeek
public MaintenanceConfigurationInner withTimeInWeek(List
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:
Returns:
Applies to
Azure SDK for Java