次の方法で共有


OverrideModel Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.OverrideModel

Implements

public final class OverrideModel
implements JsonSerializable<OverrideModel>

The policy property value override.

Constructor Summary

Constructor Description
OverrideModel()

Creates an instance of OverrideModel class.

Method Summary

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

Reads an instance of OverrideModel from the JsonReader.

OverrideKind kind()

Get the kind property: The override kind.

List<Selector> selectors()

Get the selectors property: The list of the selector expressions.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: The value to override the policy property.

OverrideModel withKind(OverrideKind kind)

Set the kind property: The override kind.

OverrideModel withSelectors(List<Selector> selectors)

Set the selectors property: The list of the selector expressions.

OverrideModel withValue(String value)

Set the value property: The value to override the policy property.

Methods inherited from java.lang.Object

Constructor Details

OverrideModel

public OverrideModel()

Creates an instance of OverrideModel class.

Method Details

fromJson

public static OverrideModel fromJson(JsonReader jsonReader)

Reads an instance of OverrideModel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

kind

public OverrideKind kind()

Get the kind property: The override kind.

Returns:

the kind value.

selectors

public List selectors()

Get the selectors property: The list of the selector expressions.

Returns:

the selectors value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: The value to override the policy property.

Returns:

the value value.

withKind

public OverrideModel withKind(OverrideKind kind)

Set the kind property: The override kind.

Parameters:

kind - the kind value to set.

Returns:

the OverrideModel object itself.

withSelectors

public OverrideModel withSelectors(List selectors)

Set the selectors property: The list of the selector expressions.

Parameters:

selectors - the selectors value to set.

Returns:

the OverrideModel object itself.

withValue

public OverrideModel withValue(String value)

Set the value property: The value to override the policy property.

Parameters:

value - the value value to set.

Returns:

the OverrideModel object itself.

Applies to