PatchManagementGroupRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.managementgroups.models.PatchManagementGroupRequest

Implements

public final class PatchManagementGroupRequest
implements JsonSerializable<PatchManagementGroupRequest>

Management group patch parameters.

Constructor Summary

Constructor Description
PatchManagementGroupRequest()

Creates an instance of PatchManagementGroupRequest class.

Method Summary

Modifier and Type Method and Description
String displayName()

Get the displayName property: The friendly name of the management group.

static PatchManagementGroupRequest fromJson(JsonReader jsonReader)

Reads an instance of PatchManagementGroupRequest from the JsonReader.

String parentGroupId()

Get the parentGroupId property: (Optional) The fully qualified ID for the parent management group.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PatchManagementGroupRequest withDisplayName(String displayName)

Set the displayName property: The friendly name of the management group.

PatchManagementGroupRequest withParentGroupId(String parentGroupId)

Set the parentGroupId property: (Optional) The fully qualified ID for the parent management group.

Methods inherited from java.lang.Object

Constructor Details

PatchManagementGroupRequest

public PatchManagementGroupRequest()

Creates an instance of PatchManagementGroupRequest class.

Method Details

displayName

public String displayName()

Get the displayName property: The friendly name of the management group.

Returns:

the displayName value.

fromJson

public static PatchManagementGroupRequest fromJson(JsonReader jsonReader)

Reads an instance of PatchManagementGroupRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PatchManagementGroupRequest 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 PatchManagementGroupRequest.

parentGroupId

public String parentGroupId()

Get the parentGroupId property: (Optional) The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000.

Returns:

the parentGroupId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisplayName

public PatchManagementGroupRequest withDisplayName(String displayName)

Set the displayName property: The friendly name of the management group.

Parameters:

displayName - the displayName value to set.

Returns:

the PatchManagementGroupRequest object itself.

withParentGroupId

public PatchManagementGroupRequest withParentGroupId(String parentGroupId)

Set the parentGroupId property: (Optional) The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000.

Parameters:

parentGroupId - the parentGroupId value to set.

Returns:

the PatchManagementGroupRequest object itself.

Applies to