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 SpringCloudConfigComponentfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SpringCloudConfigComponent from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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, serviceBindsMethods 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
-
SpringCloudConfigComponent
public SpringCloudConfigComponent()Creates an instance of SpringCloudConfigComponent class.
-
-
Method Details
-
componentType
Get the componentType property: Type of the Java Component.- Overrides:
componentTypein classJavaComponentProperties- Returns:
- the componentType value.
-
withConfigurations
public SpringCloudConfigComponent withConfigurations(List<JavaComponentConfigurationProperty> configurations) Set the configurations property: List of Java Components configuration properties.- Overrides:
withConfigurationsin classJavaComponentProperties- Parameters:
configurations- the configurations value to set.- Returns:
- the JavaComponentProperties object itself.
-
withScale
Set the scale property: Java component scaling configurations.- Overrides:
withScalein 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:
withServiceBindsin classJavaComponentProperties- Parameters:
serviceBinds- the serviceBinds value to set.- Returns:
- the JavaComponentProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classJavaComponentProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<JavaComponentProperties>- Overrides:
toJsonin 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.
-