Class SpringBootAdminComponent
java.lang.Object
com.azure.resourcemanager.appcontainers.models.JavaComponentProperties
com.azure.resourcemanager.appcontainers.models.SpringBootAdminComponent
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JavaComponentProperties>
Spring Boot Admin properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SpringBootAdminComponent class. -
Method Summary
Modifier and TypeMethodDescriptionGet the componentType property: Type of the Java Component.static SpringBootAdminComponent
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SpringBootAdminComponent from the JsonReader.ingress()
Get the ingress property: Java Component Ingress configurations.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.withIngress
(JavaComponentIngress ingress) Set the ingress property: Java Component Ingress configurations.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 com.azure.resourcemanager.appcontainers.models.JavaComponentProperties
configurations, provisioningState, scale, serviceBinds
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
-
SpringBootAdminComponent
public SpringBootAdminComponent()Creates an instance of SpringBootAdminComponent class.
-
-
Method Details
-
componentType
Get the componentType property: Type of the Java Component.- Overrides:
componentType
in classJavaComponentProperties
- Returns:
- the componentType value.
-
ingress
Get the ingress property: Java Component Ingress configurations.- Returns:
- the ingress value.
-
withIngress
Set the ingress property: Java Component Ingress configurations.- Parameters:
ingress
- the ingress value to set.- Returns:
- the SpringBootAdminComponent object itself.
-
withConfigurations
public SpringBootAdminComponent withConfigurations(List<JavaComponentConfigurationProperty> configurations) Set the configurations property: List of Java Components configuration properties.- Overrides:
withConfigurations
in classJavaComponentProperties
- Parameters:
configurations
- the configurations value to set.- Returns:
- the JavaComponentProperties object itself.
-
withScale
Set the scale property: Java component scaling configurations.- Overrides:
withScale
in classJavaComponentProperties
- Parameters:
scale
- the scale value to set.- Returns:
- the JavaComponentProperties object itself.
-
withServiceBinds
Set the serviceBinds property: List of Java Components that are bound to the Java component.- Overrides:
withServiceBinds
in classJavaComponentProperties
- Parameters:
serviceBinds
- the serviceBinds value to set.- Returns:
- the JavaComponentProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classJavaComponentProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<JavaComponentProperties>
- Overrides:
toJson
in classJavaComponentProperties
- Throws:
IOException
-
fromJson
public static SpringBootAdminComponent fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SpringBootAdminComponent from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SpringBootAdminComponent 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 SpringBootAdminComponent.
-