MicrosoftGraphStsPolicy Class

public class MicrosoftGraphStsPolicy
extends MicrosoftGraphPolicyBase

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

Constructor Summary

Constructor Description
MicrosoftGraphStsPolicy()

Creates an instance of MicrosoftGraphStsPolicy class.

Method Summary

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

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

List<MicrosoftGraphDirectoryObjectInner> appliesTo()

Get the appliesTo property: The appliesTo property.

List<String> definition()

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

static MicrosoftGraphStsPolicy fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphStsPolicy from the JsonReader.

Boolean isOrganizationDefault()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphStsPolicy withAdditionalProperties(Map<String,Object> additionalProperties)

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

MicrosoftGraphStsPolicy withAppliesTo(List<MicrosoftGraphDirectoryObjectInner> appliesTo)

Set the appliesTo property: The appliesTo property.

MicrosoftGraphStsPolicy withDefinition(List<String> definition)

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

MicrosoftGraphStsPolicy withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

MicrosoftGraphStsPolicy withDescription(String description)

Set the description property: Description for this policy.

MicrosoftGraphStsPolicy withDisplayName(String displayName)

Set the displayName property: Display name for this policy.

MicrosoftGraphStsPolicy withId(String id)

Set the id property: Read-only.

MicrosoftGraphStsPolicy 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 java.lang.Object

Constructor Details

MicrosoftGraphStsPolicy

public MicrosoftGraphStsPolicy()

Creates an instance of MicrosoftGraphStsPolicy 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:

MicrosoftGraphStsPolicy.additionalProperties()

Returns:

the additionalProperties value.

appliesTo

public List appliesTo()

Get the appliesTo property: The appliesTo property.

Returns:

the appliesTo value.

definition

public List definition()

Get 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.

Returns:

the definition value.

fromJson

public static MicrosoftGraphStsPolicy fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphStsPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isOrganizationDefault

public Boolean isOrganizationDefault()

Get 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.

Returns:

the isOrganizationDefault value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphStsPolicy.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphStsPolicy.validate()

withAdditionalProperties

public MicrosoftGraphStsPolicy 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:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphStsPolicy object itself.

withAppliesTo

public MicrosoftGraphStsPolicy withAppliesTo(List appliesTo)

Set the appliesTo property: The appliesTo property.

Parameters:

appliesTo - the appliesTo value to set.

Returns:

the MicrosoftGraphStsPolicy object itself.

withDefinition

public MicrosoftGraphStsPolicy 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.

Parameters:

definition - the definition value to set.

Returns:

the MicrosoftGraphStsPolicy object itself.

withDeletedDateTime

public MicrosoftGraphStsPolicy withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

Overrides:

MicrosoftGraphStsPolicy.withDeletedDateTime(OffsetDateTime deletedDateTime)

Parameters:

deletedDateTime

withDescription

public MicrosoftGraphStsPolicy withDescription(String description)

Set the description property: Description for this policy.

Overrides:

MicrosoftGraphStsPolicy.withDescription(String description)

Parameters:

description

withDisplayName

public MicrosoftGraphStsPolicy withDisplayName(String displayName)

Set the displayName property: Display name for this policy.

Overrides:

MicrosoftGraphStsPolicy.withDisplayName(String displayName)

Parameters:

displayName

withId

public MicrosoftGraphStsPolicy withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphStsPolicy.withId(String id)

Parameters:

id

withIsOrganizationDefault

public MicrosoftGraphStsPolicy 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.

Parameters:

isOrganizationDefault - the isOrganizationDefault value to set.

Returns:

the MicrosoftGraphStsPolicy object itself.

Applies to