Partilhar via


ValidationMessages Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.ValidationMessages

Implements

public final class ValidationMessages
implements JsonSerializable<ValidationMessages>

Validate messages of the configuration service git repositories.

Constructor Summary

Constructor Description
ValidationMessages()

Creates an instance of ValidationMessages class.

Method Summary

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

Reads an instance of ValidationMessages from the JsonReader.

List<String> messages()

Get the messages property: Detailed validation messages.

String name()

Get the name property: The name of the configuration service git repository.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ValidationMessages withMessages(List<String> messages)

Set the messages property: Detailed validation messages.

ValidationMessages withName(String name)

Set the name property: The name of the configuration service git repository.

Methods inherited from java.lang.Object

Constructor Details

ValidationMessages

public ValidationMessages()

Creates an instance of ValidationMessages class.

Method Details

fromJson

public static ValidationMessages fromJson(JsonReader jsonReader)

Reads an instance of ValidationMessages from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ValidationMessages 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 ValidationMessages.

messages

public List messages()

Get the messages property: Detailed validation messages.

Returns:

the messages value.

name

public String name()

Get the name property: The name of the configuration service git repository.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMessages

public ValidationMessages withMessages(List messages)

Set the messages property: Detailed validation messages.

Parameters:

messages - the messages value to set.

Returns:

the ValidationMessages object itself.

withName

public ValidationMessages withName(String name)

Set the name property: The name of the configuration service git repository.

Parameters:

name - the name value to set.

Returns:

the ValidationMessages object itself.

Applies to