Class ServiceConfigListResultProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ServiceConfigListResultProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceConfigListResultProperties>
- Direct Known Subclasses:
ServiceConfigResultProperties
public class ServiceConfigListResultProperties
extends Object
implements com.azure.json.JsonSerializable<ServiceConfigListResultProperties>
Service config response.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ServiceConfigListResultProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the componentName property: Component Name.content()Get the content property: Content in the service config file.Get the customKeys property: The custom keys.Get the defaultKeys property: The default keys.fileName()Get the fileName property: File Name.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceConfigListResultProperties from the JsonReader.path()Get the path property: Config file path.Get the serviceName property: Service Config Name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Config type.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 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
-
ServiceConfigListResultProperties
public ServiceConfigListResultProperties()Creates an instance of ServiceConfigListResultProperties class.
-
-
Method Details
-
serviceName
Get the serviceName property: Service Config Name.- Returns:
- the serviceName value.
-
withServiceName
Set the serviceName property: Service Config Name.- Parameters:
serviceName- the serviceName value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
fileName
-
withFileName
Set the fileName property: File Name.- Parameters:
fileName- the fileName value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
content
Get the content property: Content in the service config file.- Returns:
- the content value.
-
withContent
Set the content property: Content in the service config file.- Parameters:
content- the content value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
componentName
Get the componentName property: Component Name.- Returns:
- the componentName value.
-
withComponentName
Set the componentName property: Component Name.- Parameters:
componentName- the componentName value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
type
-
withType
Set the type property: Config type.- Parameters:
type- the type value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
path
-
withPath
Set the path property: Config file path.- Parameters:
path- the path value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
customKeys
-
withCustomKeys
Set the customKeys property: The custom keys.- Parameters:
customKeys- the customKeys value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
defaultKeys
Get the defaultKeys property: The default keys.- Returns:
- the defaultKeys value.
-
withDefaultKeys
public ServiceConfigListResultProperties withDefaultKeys(Map<String, ServiceConfigListResultValueEntity> defaultKeys) Set the defaultKeys property: The default keys.- Parameters:
defaultKeys- the defaultKeys value to set.- Returns:
- the ServiceConfigListResultProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ServiceConfigListResultProperties>- Throws:
IOException
-
fromJson
public static ServiceConfigListResultProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServiceConfigListResultProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServiceConfigListResultProperties 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 ServiceConfigListResultProperties.
-