Class BuildpacksGroupProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.BuildpacksGroupProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BuildpacksGroupProperties>
public final class BuildpacksGroupProperties
extends Object
implements com.azure.json.JsonSerializable<BuildpacksGroupProperties>
Buildpack group properties of the Builder.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BuildpacksGroupProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the buildpacks property: Buildpacks in the buildpack group.static BuildpacksGroupPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BuildpacksGroupProperties from the JsonReader.name()Get the name property: Buildpack group name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBuildpacks(List<BuildpackProperties> buildpacks) Set the buildpacks property: Buildpacks in the buildpack group.Set the name property: Buildpack group name.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
-
BuildpacksGroupProperties
public BuildpacksGroupProperties()Creates an instance of BuildpacksGroupProperties class.
-
-
Method Details
-
name
Get the name property: Buildpack group name.- Returns:
- the name value.
-
withName
Set the name property: Buildpack group name.- Parameters:
name- the name value to set.- Returns:
- the BuildpacksGroupProperties object itself.
-
buildpacks
Get the buildpacks property: Buildpacks in the buildpack group.- Returns:
- the buildpacks value.
-
withBuildpacks
Set the buildpacks property: Buildpacks in the buildpack group.- Parameters:
buildpacks- the buildpacks value to set.- Returns:
- the BuildpacksGroupProperties 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<BuildpacksGroupProperties>- Throws:
IOException
-
fromJson
public static BuildpacksGroupProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BuildpacksGroupProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BuildpacksGroupProperties 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 BuildpacksGroupProperties.
-