Class SpringCloudConfigComponent
java.lang.Object
com.azure.resourcemanager.appcontainers.models.JavaComponentProperties
com.azure.resourcemanager.appcontainers.models.SpringCloudConfigComponent
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JavaComponentProperties>
Spring Cloud Config properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SpringCloudConfigComponent class. -
Method Summary
Modifier and TypeMethodDescriptionGet the componentType property: Type of the Java Component.static SpringCloudConfigComponent
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SpringCloudConfigComponent from the JsonReader.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 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
-
SpringCloudConfigComponent
public SpringCloudConfigComponent()Creates an instance of SpringCloudConfigComponent class.
-
-
Method Details
-
componentType
Get the componentType property: Type of the Java Component.- Overrides:
componentType
in classJavaComponentProperties
- Returns:
- the componentType value.
-
withConfigurations
public SpringCloudConfigComponent 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 SpringCloudConfigComponent fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SpringCloudConfigComponent from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SpringCloudConfigComponent 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 SpringCloudConfigComponent.
-