InformationProtectionKeyword Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.InformationProtectionKeyword

Implements

public final class InformationProtectionKeyword
implements JsonSerializable<InformationProtectionKeyword>

The information type keyword.

Constructor Summary

Constructor Description
InformationProtectionKeyword()

Creates an instance of InformationProtectionKeyword class.

Method Summary

Modifier and Type Method and Description
Boolean canBeNumeric()

Get the canBeNumeric property: Indicates whether the keyword can be applied on numeric types or not.

Boolean custom()

Get the custom property: Indicates whether the keyword is custom or not.

Boolean excluded()

Get the excluded property: Indicates whether the keyword is excluded or not.

static InformationProtectionKeyword fromJson(JsonReader jsonReader)

Reads an instance of InformationProtectionKeyword from the JsonReader.

String pattern()

Get the pattern property: The keyword pattern.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

InformationProtectionKeyword withCanBeNumeric(Boolean canBeNumeric)

Set the canBeNumeric property: Indicates whether the keyword can be applied on numeric types or not.

InformationProtectionKeyword withCustom(Boolean custom)

Set the custom property: Indicates whether the keyword is custom or not.

InformationProtectionKeyword withExcluded(Boolean excluded)

Set the excluded property: Indicates whether the keyword is excluded or not.

InformationProtectionKeyword withPattern(String pattern)

Set the pattern property: The keyword pattern.

Methods inherited from java.lang.Object

Constructor Details

InformationProtectionKeyword

public InformationProtectionKeyword()

Creates an instance of InformationProtectionKeyword class.

Method Details

canBeNumeric

public Boolean canBeNumeric()

Get the canBeNumeric property: Indicates whether the keyword can be applied on numeric types or not.

Returns:

the canBeNumeric value.

custom

public Boolean custom()

Get the custom property: Indicates whether the keyword is custom or not.

Returns:

the custom value.

excluded

public Boolean excluded()

Get the excluded property: Indicates whether the keyword is excluded or not.

Returns:

the excluded value.

fromJson

public static InformationProtectionKeyword fromJson(JsonReader jsonReader)

Reads an instance of InformationProtectionKeyword from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

pattern

public String pattern()

Get the pattern property: The keyword pattern.

Returns:

the pattern value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCanBeNumeric

public InformationProtectionKeyword withCanBeNumeric(Boolean canBeNumeric)

Set the canBeNumeric property: Indicates whether the keyword can be applied on numeric types or not.

Parameters:

canBeNumeric - the canBeNumeric value to set.

Returns:

the InformationProtectionKeyword object itself.

withCustom

public InformationProtectionKeyword withCustom(Boolean custom)

Set the custom property: Indicates whether the keyword is custom or not.

Parameters:

custom - the custom value to set.

Returns:

the InformationProtectionKeyword object itself.

withExcluded

public InformationProtectionKeyword withExcluded(Boolean excluded)

Set the excluded property: Indicates whether the keyword is excluded or not.

Parameters:

excluded - the excluded value to set.

Returns:

the InformationProtectionKeyword object itself.

withPattern

public InformationProtectionKeyword withPattern(String pattern)

Set the pattern property: The keyword pattern.

Parameters:

pattern - the pattern value to set.

Returns:

the InformationProtectionKeyword object itself.

Applies to