Class NetworkManagerCommitInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.NetworkManagerCommitInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkManagerCommitInner>
public final class NetworkManagerCommitInner
extends Object
implements com.azure.json.JsonSerializable<NetworkManagerCommitInner>
Network Manager Commit.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkManagerCommitInner class. -
Method Summary
Modifier and TypeMethodDescriptioncommitId()Get the commitId property: Commit Id.Get the commitType property: Commit Type.Get the configurationIds property: List of configuration ids.static NetworkManagerCommitInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkManagerCommitInner from the JsonReader.Get the targetLocations property: List of target locations.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCommitType(ConfigurationType commitType) Set the commitType property: Commit Type.withConfigurationIds(List<String> configurationIds) Set the configurationIds property: List of configuration ids.withTargetLocations(List<String> targetLocations) Set the targetLocations property: List of target locations.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NetworkManagerCommitInner
public NetworkManagerCommitInner()Creates an instance of NetworkManagerCommitInner class.
-
-
Method Details
-
commitId
Get the commitId property: Commit Id.- Returns:
- the commitId value.
-
targetLocations
Get the targetLocations property: List of target locations.- Returns:
- the targetLocations value.
-
withTargetLocations
Set the targetLocations property: List of target locations.- Parameters:
targetLocations- the targetLocations value to set.- Returns:
- the NetworkManagerCommitInner object itself.
-
configurationIds
Get the configurationIds property: List of configuration ids.- Returns:
- the configurationIds value.
-
withConfigurationIds
Set the configurationIds property: List of configuration ids.- Parameters:
configurationIds- the configurationIds value to set.- Returns:
- the NetworkManagerCommitInner object itself.
-
commitType
Get the commitType property: Commit Type.- Returns:
- the commitType value.
-
withCommitType
Set the commitType property: Commit Type.- Parameters:
commitType- the commitType value to set.- Returns:
- the NetworkManagerCommitInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NetworkManagerCommitInner>- Throws:
IOException
-
fromJson
public static NetworkManagerCommitInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NetworkManagerCommitInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NetworkManagerCommitInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the NetworkManagerCommitInner.
-