InformationProtectionPolicyInner Class

public final class InformationProtectionPolicyInner
extends ProxyResource

Information protection policy.

Constructor Summary

Constructor Description
InformationProtectionPolicyInner()

Creates an instance of InformationProtectionPolicyInner class.

Method Summary

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

Reads an instance of InformationProtectionPolicyInner from the JsonReader.

String id()

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

Map<String,InformationType> informationTypes()

Get the informationTypes property: The sensitivity information types.

Map<String,SensitivityLabel> labels()

Get the labels property: Dictionary of sensitivity labels.

OffsetDateTime lastModifiedUtc()

Get the lastModifiedUtc property: Describes the last UTC time the policy was modified.

String name()

Get the name property: The name of the resource.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

String version()

Get the version property: Describes the version of the policy.

InformationProtectionPolicyInner withInformationTypes(Map<String,InformationType> informationTypes)

Set the informationTypes property: The sensitivity information types.

InformationProtectionPolicyInner withLabels(Map<String,SensitivityLabel> labels)

Set the labels property: Dictionary of sensitivity labels.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

InformationProtectionPolicyInner

public InformationProtectionPolicyInner()

Creates an instance of InformationProtectionPolicyInner class.

Method Details

fromJson

public static InformationProtectionPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of InformationProtectionPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of InformationProtectionPolicyInner 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:

InformationProtectionPolicyInner.id()

Returns:

the id value.

informationTypes

public Map<String,InformationType> informationTypes()

Get the informationTypes property: The sensitivity information types.

Returns:

the informationTypes value.

labels

public Map<String,SensitivityLabel> labels()

Get the labels property: Dictionary of sensitivity labels.

Returns:

the labels value.

lastModifiedUtc

public OffsetDateTime lastModifiedUtc()

Get the lastModifiedUtc property: Describes the last UTC time the policy was modified.

Returns:

the lastModifiedUtc value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

InformationProtectionPolicyInner.name()

Returns:

the name value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

InformationProtectionPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

InformationProtectionPolicyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: Describes the version of the policy.

Returns:

the version value.

withInformationTypes

public InformationProtectionPolicyInner withInformationTypes(Map<String,InformationType> informationTypes)

Set the informationTypes property: The sensitivity information types.

Parameters:

informationTypes - the informationTypes value to set.

Returns:

the InformationProtectionPolicyInner object itself.

withLabels

public InformationProtectionPolicyInner withLabels(Map<String,SensitivityLabel> labels)

Set the labels property: Dictionary of sensitivity labels.

Parameters:

labels - the labels value to set.

Returns:

the InformationProtectionPolicyInner object itself.

Applies to