CommitConfigurationRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.managednetworkfabric.models.CommitConfigurationRequest

Implements

public final class CommitConfigurationRequest
implements JsonSerializable<CommitConfigurationRequest>

Commit Configuration Request.

Constructor Summary

Constructor Description
CommitConfigurationRequest()

Creates an instance of CommitConfigurationRequest class.

Method Summary

Modifier and Type Method and Description
CommitConfigurationPolicy commitPolicy()

Get the commitPolicy property: Commit configuration Policy.

CommitStage commitStage()

Get the commitStage property: Commit stage Action to be performed.

List<String> devices()

Get the devices property: List of ARM resource IDs of devices to be included in the commit operation.

static CommitConfigurationRequest fromJson(JsonReader jsonReader)

Reads an instance of CommitConfigurationRequest from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
CommitConfigurationRequest withCommitPolicy(CommitConfigurationPolicy commitPolicy)

Set the commitPolicy property: Commit configuration Policy.

CommitConfigurationRequest withCommitStage(CommitStage commitStage)

Set the commitStage property: Commit stage Action to be performed.

CommitConfigurationRequest withDevices(List<String> devices)

Set the devices property: List of ARM resource IDs of devices to be included in the commit operation.

Methods inherited from java.lang.Object

Constructor Details

CommitConfigurationRequest

public CommitConfigurationRequest()

Creates an instance of CommitConfigurationRequest class.

Method Details

commitPolicy

public CommitConfigurationPolicy commitPolicy()

Get the commitPolicy property: Commit configuration Policy. Supported policy is StageCEConfiguration, which indicates to prepare the configuration for the CE device type.

Returns:

the commitPolicy value.

commitStage

public CommitStage commitStage()

Get the commitStage property: Commit stage Action to be performed.

Returns:

the commitStage value.

devices

public List<String> devices()

Get the devices property: List of ARM resource IDs of devices to be included in the commit operation. Either CE1 or CE2 is allowed.

Returns:

the devices value.

fromJson

public static CommitConfigurationRequest fromJson(JsonReader jsonReader)

Reads an instance of CommitConfigurationRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withCommitPolicy

public CommitConfigurationRequest withCommitPolicy(CommitConfigurationPolicy commitPolicy)

Set the commitPolicy property: Commit configuration Policy. Supported policy is StageCEConfiguration, which indicates to prepare the configuration for the CE device type.

Parameters:

commitPolicy - the commitPolicy value to set.

Returns:

the CommitConfigurationRequest object itself.

withCommitStage

public CommitConfigurationRequest withCommitStage(CommitStage commitStage)

Set the commitStage property: Commit stage Action to be performed.

Parameters:

commitStage - the commitStage value to set.

Returns:

the CommitConfigurationRequest object itself.

withDevices

public CommitConfigurationRequest withDevices(List<String> devices)

Set the devices property: List of ARM resource IDs of devices to be included in the commit operation. Either CE1 or CE2 is allowed.

Parameters:

devices - the devices value to set.

Returns:

the CommitConfigurationRequest object itself.

Applies to