CommitProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.CommitProperties

Implements

public final class CommitProperties
implements JsonSerializable<CommitProperties>

Properties of commit.

Constructor Summary

Constructor Description
CommitProperties()

Creates an instance of CommitProperties class.

Method Summary

Modifier and Type Method and Description
List<String> activeLocations()

Get the activeLocations property: List of active locations.

ConfigurationType commitType()

Get the commitType property: Commit Type.

List<String> configurationIds()

Get the configurationIds property: List of configuration IDs.

String description()

Get the description property: A description of the commit.

String forceUpdateTag()

Get the forceUpdateTag property: A value that, when changed, forces the commit to be re-evaluated and redeployed.

static CommitProperties fromJson(JsonReader jsonReader)

Reads an instance of CommitProperties from the JsonReader.

CommonProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

String resourceGuid()

Get the resourceGuid property: Unique identifier for this resource.

List<String> targetLocations()

Get the targetLocations property: List of target locations.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CommitProperties withCommitType(ConfigurationType commitType)

Set the commitType property: Commit Type.

CommitProperties withConfigurationIds(List<String> configurationIds)

Set the configurationIds property: List of configuration IDs.

CommitProperties withDescription(String description)

Set the description property: A description of the commit.

CommitProperties withForceUpdateTag(String forceUpdateTag)

Set the forceUpdateTag property: A value that, when changed, forces the commit to be re-evaluated and redeployed.

CommitProperties withTargetLocations(List<String> targetLocations)

Set the targetLocations property: List of target locations.

Methods inherited from java.lang.Object

Constructor Details

CommitProperties

public CommitProperties()

Creates an instance of CommitProperties class.

Method Details

activeLocations

public List<String> activeLocations()

Get the activeLocations property: List of active locations.

Returns:

the activeLocations value.

commitType

public ConfigurationType commitType()

Get the commitType property: Commit Type.

Returns:

the commitType value.

configurationIds

public List<String> configurationIds()

Get the configurationIds property: List of configuration IDs.

Returns:

the configurationIds value.

description

public String description()

Get the description property: A description of the commit.

Returns:

the description value.

forceUpdateTag

public String forceUpdateTag()

Get the forceUpdateTag property: A value that, when changed, forces the commit to be re-evaluated and redeployed.

Returns:

the forceUpdateTag value.

fromJson

public static CommitProperties fromJson(JsonReader jsonReader)

Reads an instance of CommitProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CommitProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

provisioningState

public CommonProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

Returns:

the provisioningState value.

resourceGuid

public String resourceGuid()

Get the resourceGuid property: Unique identifier for this resource.

Returns:

the resourceGuid value.

targetLocations

public List<String> targetLocations()

Get the targetLocations property: List of target locations.

Returns:

the targetLocations value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCommitType

public CommitProperties withCommitType(ConfigurationType commitType)

Set the commitType property: Commit Type.

Parameters:

commitType - the commitType value to set.

Returns:

the CommitProperties object itself.

withConfigurationIds

public CommitProperties withConfigurationIds(List<String> configurationIds)

Set the configurationIds property: List of configuration IDs.

Parameters:

configurationIds - the configurationIds value to set.

Returns:

the CommitProperties object itself.

withDescription

public CommitProperties withDescription(String description)

Set the description property: A description of the commit.

Parameters:

description - the description value to set.

Returns:

the CommitProperties object itself.

withForceUpdateTag

public CommitProperties withForceUpdateTag(String forceUpdateTag)

Set the forceUpdateTag property: A value that, when changed, forces the commit to be re-evaluated and redeployed.

Parameters:

forceUpdateTag - the forceUpdateTag value to set.

Returns:

the CommitProperties object itself.

withTargetLocations

public CommitProperties withTargetLocations(List<String> targetLocations)

Set the targetLocations property: List of target locations.

Parameters:

targetLocations - the targetLocations value to set.

Returns:

the CommitProperties object itself.

Applies to