SettingsSectionDescription Class

  • java.lang.Object
    • com.azure.resourcemanager.servicefabric.models.SettingsSectionDescription

Implements

public final class SettingsSectionDescription
implements JsonSerializable<SettingsSectionDescription>

Describes a section in the fabric settings of the cluster.

Constructor Summary

Constructor Description
SettingsSectionDescription()

Creates an instance of SettingsSectionDescription class.

Method Summary

Modifier and Type Method and Description
static SettingsSectionDescription fromJson(JsonReader jsonReader)

Reads an instance of SettingsSectionDescription from the JsonReader.

String name()

Get the name property: The section name of the fabric settings.

List<SettingsParameterDescription> parameters()

Get the parameters property: The collection of parameters in the section.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SettingsSectionDescription withName(String name)

Set the name property: The section name of the fabric settings.

SettingsSectionDescription withParameters(List<SettingsParameterDescription> parameters)

Set the parameters property: The collection of parameters in the section.

Methods inherited from java.lang.Object

Constructor Details

SettingsSectionDescription

public SettingsSectionDescription()

Creates an instance of SettingsSectionDescription class.

Method Details

fromJson

public static SettingsSectionDescription fromJson(JsonReader jsonReader)

Reads an instance of SettingsSectionDescription from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SettingsSectionDescription if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The section name of the fabric settings.

Returns:

the name value.

parameters

public List<SettingsParameterDescription> parameters()

Get the parameters property: The collection of parameters in the section.

Returns:

the parameters value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public SettingsSectionDescription withName(String name)

Set the name property: The section name of the fabric settings.

Parameters:

name - the name value to set.

Returns:

the SettingsSectionDescription object itself.

withParameters

public SettingsSectionDescription withParameters(List<SettingsParameterDescription> parameters)

Set the parameters property: The collection of parameters in the section.

Parameters:

parameters - the parameters value to set.

Returns:

the SettingsSectionDescription object itself.

Applies to