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

MicrosoftGraphPasswordCredentialInner Class

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

Implements

public final class MicrosoftGraphPasswordCredentialInner
implements JsonSerializable<MicrosoftGraphPasswordCredentialInner>

passwordCredential.

Constructor Summary

Constructor Description
MicrosoftGraphPasswordCredentialInner()

Creates an instance of MicrosoftGraphPasswordCredentialInner class.

Method Summary

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

Get the additionalProperties property: passwordCredential.

byte[] customKeyIdentifier()

Get the customKeyIdentifier property: Do not use.

String displayName()

Get the displayName property: Friendly name for the password.

OffsetDateTime endDateTime()

Get the endDateTime property: The date and time at which the password expires represented using ISO 8601 format and is always in UTC time.

static MicrosoftGraphPasswordCredentialInner fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPasswordCredentialInner from the JsonReader.

String hint()

Get the hint property: Contains the first three characters of the password.

UUID keyId()

Get the keyId property: The unique identifier for the password.

String secretText()

Get the secretText property: Read-only; Contains the strong passwords generated by Azure AD that are 16-64 characters in length.

OffsetDateTime startDateTime()

Get the startDateTime property: The date and time at which the password becomes valid.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphPasswordCredentialInner withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: passwordCredential.

MicrosoftGraphPasswordCredentialInner withCustomKeyIdentifier(byte[] customKeyIdentifier)

Set the customKeyIdentifier property: Do not use.

MicrosoftGraphPasswordCredentialInner withDisplayName(String displayName)

Set the displayName property: Friendly name for the password.

MicrosoftGraphPasswordCredentialInner withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: The date and time at which the password expires represented using ISO 8601 format and is always in UTC time.

MicrosoftGraphPasswordCredentialInner withHint(String hint)

Set the hint property: Contains the first three characters of the password.

MicrosoftGraphPasswordCredentialInner withKeyId(UUID keyId)

Set the keyId property: The unique identifier for the password.

MicrosoftGraphPasswordCredentialInner withSecretText(String secretText)

Set the secretText property: Read-only; Contains the strong passwords generated by Azure AD that are 16-64 characters in length.

MicrosoftGraphPasswordCredentialInner withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: The date and time at which the password becomes valid.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphPasswordCredentialInner

public MicrosoftGraphPasswordCredentialInner()

Creates an instance of MicrosoftGraphPasswordCredentialInner class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: passwordCredential.

Returns:

the additionalProperties value.

customKeyIdentifier

public byte[] customKeyIdentifier()

Get the customKeyIdentifier property: Do not use.

Returns:

the customKeyIdentifier value.

displayName

public String displayName()

Get the displayName property: Friendly name for the password. Optional.

Returns:

the displayName value.

endDateTime

public OffsetDateTime endDateTime()

Get the endDateTime property: The date and time at which the password expires represented using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Optional.

Returns:

the endDateTime value.

fromJson

public static MicrosoftGraphPasswordCredentialInner fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPasswordCredentialInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hint

public String hint()

Get the hint property: Contains the first three characters of the password. Read-only.

Returns:

the hint value.

keyId

public UUID keyId()

Get the keyId property: The unique identifier for the password.

Returns:

the keyId value.

secretText

public String secretText()

Get the secretText property: Read-only; Contains the strong passwords generated by Azure AD that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future.

Returns:

the secretText value.

startDateTime

public OffsetDateTime startDateTime()

Get the startDateTime property: The date and time at which the password becomes valid. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Optional.

Returns:

the startDateTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphPasswordCredentialInner withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: passwordCredential.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphPasswordCredentialInner object itself.

withCustomKeyIdentifier

public MicrosoftGraphPasswordCredentialInner withCustomKeyIdentifier(byte[] customKeyIdentifier)

Set the customKeyIdentifier property: Do not use.

Parameters:

customKeyIdentifier - the customKeyIdentifier value to set.

Returns:

the MicrosoftGraphPasswordCredentialInner object itself.

withDisplayName

public MicrosoftGraphPasswordCredentialInner withDisplayName(String displayName)

Set the displayName property: Friendly name for the password. Optional.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphPasswordCredentialInner object itself.

withEndDateTime

public MicrosoftGraphPasswordCredentialInner withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: The date and time at which the password expires represented using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Optional.

Parameters:

endDateTime - the endDateTime value to set.

Returns:

the MicrosoftGraphPasswordCredentialInner object itself.

withHint

public MicrosoftGraphPasswordCredentialInner withHint(String hint)

Set the hint property: Contains the first three characters of the password. Read-only.

Parameters:

hint - the hint value to set.

Returns:

the MicrosoftGraphPasswordCredentialInner object itself.

withKeyId

public MicrosoftGraphPasswordCredentialInner withKeyId(UUID keyId)

Set the keyId property: The unique identifier for the password.

Parameters:

keyId - the keyId value to set.

Returns:

the MicrosoftGraphPasswordCredentialInner object itself.

withSecretText

public MicrosoftGraphPasswordCredentialInner withSecretText(String secretText)

Set the secretText property: Read-only; Contains the strong passwords generated by Azure AD that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future.

Parameters:

secretText - the secretText value to set.

Returns:

the MicrosoftGraphPasswordCredentialInner object itself.

withStartDateTime

public MicrosoftGraphPasswordCredentialInner withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: The date and time at which the password becomes valid. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Optional.

Parameters:

startDateTime - the startDateTime value to set.

Returns:

the MicrosoftGraphPasswordCredentialInner object itself.

Applies to