Class ServiceConfigResultProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ServiceConfigListResultProperties
com.azure.resourcemanager.hdinsight.containers.models.ServiceConfigResultProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceConfigListResultProperties>
Cluster instance service config properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ServiceConfigResultProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceConfigResultProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withComponentName(String componentName) Set the componentName property: Component Name.withContent(String content) Set the content property: Content in the service config file.withCustomKeys(Map<String, String> customKeys) Set the customKeys property: The custom keys.withDefaultKeys(Map<String, ServiceConfigListResultValueEntity> defaultKeys) Set the defaultKeys property: The default keys.withFileName(String fileName) Set the fileName property: File Name.Set the path property: Config file path.withServiceName(String serviceName) Set the serviceName property: Service Config Name.Set the type property: Config type.Methods inherited from class ServiceConfigListResultProperties
componentName, content, customKeys, defaultKeys, fileName, path, serviceName, typeMethods inherited from class 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
-
ServiceConfigResultProperties
public ServiceConfigResultProperties()Creates an instance of ServiceConfigResultProperties class.
-
-
Method Details
-
withServiceName
Set the serviceName property: Service Config Name.- Overrides:
withServiceNamein classServiceConfigListResultProperties- Parameters:
serviceName- the serviceName value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
withFileName
Set the fileName property: File Name.- Overrides:
withFileNamein classServiceConfigListResultProperties- Parameters:
fileName- the fileName value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
withContent
Set the content property: Content in the service config file.- Overrides:
withContentin classServiceConfigListResultProperties- Parameters:
content- the content value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
withComponentName
Set the componentName property: Component Name.- Overrides:
withComponentNamein classServiceConfigListResultProperties- Parameters:
componentName- the componentName value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
withType
Set the type property: Config type.- Overrides:
withTypein classServiceConfigListResultProperties- Parameters:
type- the type value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
withPath
Set the path property: Config file path.- Overrides:
withPathin classServiceConfigListResultProperties- Parameters:
path- the path value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
withCustomKeys
Set the customKeys property: The custom keys.- Overrides:
withCustomKeysin classServiceConfigListResultProperties- Parameters:
customKeys- the customKeys value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
withDefaultKeys
public ServiceConfigResultProperties withDefaultKeys(Map<String, ServiceConfigListResultValueEntity> defaultKeys) Set the defaultKeys property: The default keys.- Overrides:
withDefaultKeysin classServiceConfigListResultProperties- Parameters:
defaultKeys- the defaultKeys value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classServiceConfigListResultProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ServiceConfigListResultProperties>- Overrides:
toJsonin classServiceConfigListResultProperties- Throws:
IOException
-
fromJson
public static ServiceConfigResultProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServiceConfigResultProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServiceConfigResultProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ServiceConfigResultProperties.
-