Class JavaComponentProperties
java.lang.Object
com.azure.resourcemanager.appcontainers.models.JavaComponentProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JavaComponentProperties>
- Direct Known Subclasses:
SpringBootAdminComponent
,SpringCloudConfigComponent
,SpringCloudEurekaComponent
public class JavaComponentProperties
extends Object
implements com.azure.json.JsonSerializable<JavaComponentProperties>
Java Component common properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of JavaComponentProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the componentType property: Type of the Java Component.Get the configurations property: List of Java Components configuration properties.static JavaComponentProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of JavaComponentProperties from the JsonReader.Get the provisioningState property: Provisioning state of the Java Component.scale()
Get the scale property: Java component scaling configurations.Get the serviceBinds property: List of Java Components that are bound to the Java component.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withConfigurations
(List<JavaComponentConfigurationProperty> configurations) Set the configurations property: List of Java Components configuration properties.Set the scale property: Java component scaling configurations.withServiceBinds
(List<JavaComponentServiceBind> serviceBinds) Set the serviceBinds property: List of Java Components that are bound to the Java component.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
JavaComponentProperties
public JavaComponentProperties()Creates an instance of JavaComponentProperties class.
-
-
Method Details
-
componentType
Get the componentType property: Type of the Java Component.- Returns:
- the componentType value.
-
provisioningState
Get the provisioningState property: Provisioning state of the Java Component.- Returns:
- the provisioningState value.
-
configurations
Get the configurations property: List of Java Components configuration properties.- Returns:
- the configurations value.
-
withConfigurations
public JavaComponentProperties withConfigurations(List<JavaComponentConfigurationProperty> configurations) Set the configurations property: List of Java Components configuration properties.- Parameters:
configurations
- the configurations value to set.- Returns:
- the JavaComponentProperties object itself.
-
scale
Get the scale property: Java component scaling configurations.- Returns:
- the scale value.
-
withScale
Set the scale property: Java component scaling configurations.- Parameters:
scale
- the scale value to set.- Returns:
- the JavaComponentProperties object itself.
-
serviceBinds
Get the serviceBinds property: List of Java Components that are bound to the Java component.- Returns:
- the serviceBinds value.
-
withServiceBinds
Set the serviceBinds property: List of Java Components that are bound to the Java component.- Parameters:
serviceBinds
- the serviceBinds value to set.- Returns:
- the JavaComponentProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<JavaComponentProperties>
- Throws:
IOException
-
fromJson
public static JavaComponentProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of JavaComponentProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of JavaComponentProperties 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 JavaComponentProperties.
-