DiscardCommitBatchRequest Class

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

Implements

public final class DiscardCommitBatchRequest
implements JsonSerializable<DiscardCommitBatchRequest>

Discard Commit Batch Request.

Constructor Summary

Constructor Description
DiscardCommitBatchRequest()

Creates an instance of DiscardCommitBatchRequest class.

Method Summary

Modifier and Type Method and Description
String commitBatchId()

Get the commitBatchId property: Commit Batch Identifier.

static DiscardCommitBatchRequest fromJson(JsonReader jsonReader)

Reads an instance of DiscardCommitBatchRequest from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
DiscardCommitBatchRequest withCommitBatchId(String commitBatchId)

Set the commitBatchId property: Commit Batch Identifier.

Methods inherited from java.lang.Object

Constructor Details

DiscardCommitBatchRequest

public DiscardCommitBatchRequest()

Creates an instance of DiscardCommitBatchRequest class.

Method Details

commitBatchId

public String commitBatchId()

Get the commitBatchId property: Commit Batch Identifier. If not provided, the latest commit batch status will be returned.

Returns:

the commitBatchId value.

fromJson

public static DiscardCommitBatchRequest fromJson(JsonReader jsonReader)

Reads an instance of DiscardCommitBatchRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withCommitBatchId

public DiscardCommitBatchRequest withCommitBatchId(String commitBatchId)

Set the commitBatchId property: Commit Batch Identifier. If not provided, the latest commit batch status will be returned.

Parameters:

commitBatchId - the commitBatchId value to set.

Returns:

the DiscardCommitBatchRequest object itself.

Applies to