VnetValidationTestFailure Class

public final class VnetValidationTestFailure
extends ProxyOnlyResource

A class that describes a test that failed during NSG and UDR validation.

Constructor Summary

Constructor Description
VnetValidationTestFailure()

Creates an instance of VnetValidationTestFailure class.

Method Summary

Modifier and Type Method and Description
String details()

Get the details property: The details of what caused the failure, e.g.

static VnetValidationTestFailure fromJson(JsonReader jsonReader)

Reads an instance of VnetValidationTestFailure from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

String testName()

Get the testName property: The name of the test that failed.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

VnetValidationTestFailure withDetails(String details)

Set the details property: The details of what caused the failure, e.g.

VnetValidationTestFailure withKind(String kind)

Set the kind property: Kind of resource.

VnetValidationTestFailure withTestName(String testName)

Set the testName property: The name of the test that failed.

Methods inherited from ProxyOnlyResource

Methods inherited from java.lang.Object

Constructor Details

VnetValidationTestFailure

public VnetValidationTestFailure()

Creates an instance of VnetValidationTestFailure class.

Method Details

details

public String details()

Get the details property: The details of what caused the failure, e.g. the blocking rule name, etc.

Returns:

the details value.

fromJson

public static VnetValidationTestFailure fromJson(JsonReader jsonReader)

Reads an instance of VnetValidationTestFailure from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

VnetValidationTestFailure.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VnetValidationTestFailure.name()

Returns:

the name value.

testName

public String testName()

Get the testName property: The name of the test that failed.

Returns:

the testName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VnetValidationTestFailure.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

VnetValidationTestFailure.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

VnetValidationTestFailure.validate()

withDetails

public VnetValidationTestFailure withDetails(String details)

Set the details property: The details of what caused the failure, e.g. the blocking rule name, etc.

Parameters:

details - the details value to set.

Returns:

the VnetValidationTestFailure object itself.

withKind

public VnetValidationTestFailure withKind(String kind)

Set the kind property: Kind of resource.

Overrides:

VnetValidationTestFailure.withKind(String kind)

Parameters:

kind

withTestName

public VnetValidationTestFailure withTestName(String testName)

Set the testName property: The name of the test that failed.

Parameters:

testName - the testName value to set.

Returns:

the VnetValidationTestFailure object itself.

Applies to