MicrosoftGraphPasswordProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphPasswordProfile

Implements

public final class MicrosoftGraphPasswordProfile
implements JsonSerializable<MicrosoftGraphPasswordProfile>

passwordProfile.

Constructor Summary

Constructor Description
MicrosoftGraphPasswordProfile()

Creates an instance of MicrosoftGraphPasswordProfile class.

Method Summary

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

Get the additionalProperties property: passwordProfile.

Boolean forceChangePasswordNextSignIn()

Get the forceChangePasswordNextSignIn property: true if the user must change her password on the next login; otherwise false.

Boolean forceChangePasswordNextSignInWithMfa()

Get the forceChangePasswordNextSignInWithMfa property: If true, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password.

static MicrosoftGraphPasswordProfile fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPasswordProfile from the JsonReader.

String password()

Get the password property: The password for the user.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphPasswordProfile withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: passwordProfile.

MicrosoftGraphPasswordProfile withForceChangePasswordNextSignIn(Boolean forceChangePasswordNextSignIn)

Set the forceChangePasswordNextSignIn property: true if the user must change her password on the next login; otherwise false.

MicrosoftGraphPasswordProfile withForceChangePasswordNextSignInWithMfa(Boolean forceChangePasswordNextSignInWithMfa)

Set the forceChangePasswordNextSignInWithMfa property: If true, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password.

MicrosoftGraphPasswordProfile withPassword(String password)

Set the password property: The password for the user.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphPasswordProfile

public MicrosoftGraphPasswordProfile()

Creates an instance of MicrosoftGraphPasswordProfile class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: passwordProfile.

Returns:

the additionalProperties value.

forceChangePasswordNextSignIn

public Boolean forceChangePasswordNextSignIn()

Get the forceChangePasswordNextSignIn property: true if the user must change her password on the next login; otherwise false.

Returns:

the forceChangePasswordNextSignIn value.

forceChangePasswordNextSignInWithMfa

public Boolean forceChangePasswordNextSignInWithMfa()

Get the forceChangePasswordNextSignInWithMfa property: If true, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multi-factor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false.

Returns:

the forceChangePasswordNextSignInWithMfa value.

fromJson

public static MicrosoftGraphPasswordProfile fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPasswordProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

password

public String password()

Get the password property: The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user\u2019s passwordPolicies property. By default, a strong password is required.

Returns:

the password value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphPasswordProfile withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: passwordProfile.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphPasswordProfile object itself.

withForceChangePasswordNextSignIn

public MicrosoftGraphPasswordProfile withForceChangePasswordNextSignIn(Boolean forceChangePasswordNextSignIn)

Set the forceChangePasswordNextSignIn property: true if the user must change her password on the next login; otherwise false.

Parameters:

forceChangePasswordNextSignIn - the forceChangePasswordNextSignIn value to set.

Returns:

the MicrosoftGraphPasswordProfile object itself.

withForceChangePasswordNextSignInWithMfa

public MicrosoftGraphPasswordProfile withForceChangePasswordNextSignInWithMfa(Boolean forceChangePasswordNextSignInWithMfa)

Set the forceChangePasswordNextSignInWithMfa property: If true, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multi-factor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false.

Parameters:

forceChangePasswordNextSignInWithMfa - the forceChangePasswordNextSignInWithMfa value to set.

Returns:

the MicrosoftGraphPasswordProfile object itself.

withPassword

public MicrosoftGraphPasswordProfile withPassword(String password)

Set the password property: The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user\u2019s passwordPolicies property. By default, a strong password is required.

Parameters:

password - the password value to set.

Returns:

the MicrosoftGraphPasswordProfile object itself.

Applies to