你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphHomeRealmDiscoveryPolicyInner Class

public final class MicrosoftGraphHomeRealmDiscoveryPolicyInner
extends MicrosoftGraphStsPolicy

homeRealmDiscoveryPolicy Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Constructor Summary

Constructor Description
MicrosoftGraphHomeRealmDiscoveryPolicyInner()

Creates an instance of MicrosoftGraphHomeRealmDiscoveryPolicyInner class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: Represents an Azure Active Directory object.

static MicrosoftGraphHomeRealmDiscoveryPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphHomeRealmDiscoveryPolicyInner from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphHomeRealmDiscoveryPolicyInner withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Represents an Azure Active Directory object.

MicrosoftGraphHomeRealmDiscoveryPolicyInner withAppliesTo(List<MicrosoftGraphDirectoryObjectInner> appliesTo)

Set the appliesTo property: The appliesTo property.

MicrosoftGraphHomeRealmDiscoveryPolicyInner withDefinition(List<String> definition)

Set the definition property: A string collection containing a JSON string that defines the rules and settings for a policy.

MicrosoftGraphHomeRealmDiscoveryPolicyInner withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

MicrosoftGraphHomeRealmDiscoveryPolicyInner withDescription(String description)

Set the description property: Description for this policy.

MicrosoftGraphHomeRealmDiscoveryPolicyInner withDisplayName(String displayName)

Set the displayName property: Display name for this policy.

MicrosoftGraphHomeRealmDiscoveryPolicyInner withId(String id)

Set the id property: Read-only.

MicrosoftGraphHomeRealmDiscoveryPolicyInner withIsOrganizationDefault(Boolean isOrganizationDefault)

Set the isOrganizationDefault property: If set to true, activates this policy.

Methods inherited from MicrosoftGraphDirectoryObjectInner

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from MicrosoftGraphPolicyBase

Methods inherited from MicrosoftGraphStsPolicy

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphHomeRealmDiscoveryPolicyInner

public MicrosoftGraphHomeRealmDiscoveryPolicyInner()

Creates an instance of MicrosoftGraphHomeRealmDiscoveryPolicyInner class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Overrides:

MicrosoftGraphHomeRealmDiscoveryPolicyInner.additionalProperties()

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphHomeRealmDiscoveryPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphHomeRealmDiscoveryPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphHomeRealmDiscoveryPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphHomeRealmDiscoveryPolicyInner.validate()

withAdditionalProperties

public MicrosoftGraphHomeRealmDiscoveryPolicyInner withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Overrides:

MicrosoftGraphHomeRealmDiscoveryPolicyInner.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphHomeRealmDiscoveryPolicyInner object itself.

withAppliesTo

public MicrosoftGraphHomeRealmDiscoveryPolicyInner withAppliesTo(List appliesTo)

Set the appliesTo property: The appliesTo property.

Overrides:

MicrosoftGraphHomeRealmDiscoveryPolicyInner.withAppliesTo(List<MicrosoftGraphDirectoryObjectInner> appliesTo)

Parameters:

appliesTo

withDefinition

public MicrosoftGraphHomeRealmDiscoveryPolicyInner withDefinition(List definition)

Set the definition property: A string collection containing a JSON string that defines the rules and settings for a policy. The syntax for the definition differs for each derived policy type. Required.

Overrides:

MicrosoftGraphHomeRealmDiscoveryPolicyInner.withDefinition(List<String> definition)

Parameters:

definition

withDeletedDateTime

public MicrosoftGraphHomeRealmDiscoveryPolicyInner withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

Overrides:

MicrosoftGraphHomeRealmDiscoveryPolicyInner.withDeletedDateTime(OffsetDateTime deletedDateTime)

Parameters:

deletedDateTime

withDescription

public MicrosoftGraphHomeRealmDiscoveryPolicyInner withDescription(String description)

Set the description property: Description for this policy.

Overrides:

MicrosoftGraphHomeRealmDiscoveryPolicyInner.withDescription(String description)

Parameters:

description

withDisplayName

public MicrosoftGraphHomeRealmDiscoveryPolicyInner withDisplayName(String displayName)

Set the displayName property: Display name for this policy.

Overrides:

MicrosoftGraphHomeRealmDiscoveryPolicyInner.withDisplayName(String displayName)

Parameters:

displayName

withId

public MicrosoftGraphHomeRealmDiscoveryPolicyInner withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphHomeRealmDiscoveryPolicyInner.withId(String id)

Parameters:

id

withIsOrganizationDefault

public MicrosoftGraphHomeRealmDiscoveryPolicyInner withIsOrganizationDefault(Boolean isOrganizationDefault)

Set the isOrganizationDefault property: If set to true, activates this policy. There can be many policies for the same policy type, but only one can be activated as the organization default. Optional, default value is false.

Overrides:

MicrosoftGraphHomeRealmDiscoveryPolicyInner.withIsOrganizationDefault(Boolean isOrganizationDefault)

Parameters:

isOrganizationDefault

Applies to