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

ApplicationsAddKeyRequestBodyInner Class

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

Implements

public final class ApplicationsAddKeyRequestBodyInner
implements JsonSerializable<ApplicationsAddKeyRequestBodyInner>

The ApplicationsAddKeyRequestBody model.

Constructor Summary

Constructor Description
ApplicationsAddKeyRequestBodyInner()

Creates an instance of ApplicationsAddKeyRequestBodyInner class.

Method Summary

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

Get the additionalProperties property: Dictionary of <AnyObject>.

static ApplicationsAddKeyRequestBodyInner fromJson(JsonReader jsonReader)

Reads an instance of ApplicationsAddKeyRequestBodyInner from the JsonReader.

MicrosoftGraphKeyCredentialInner keyCredential()

Get the keyCredential property: keyCredential.

MicrosoftGraphPasswordCredentialInner passwordCredential()

Get the passwordCredential property: passwordCredential.

String proof()

Get the proof property: The proof property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationsAddKeyRequestBodyInner withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Dictionary of <AnyObject>.

ApplicationsAddKeyRequestBodyInner withKeyCredential(MicrosoftGraphKeyCredentialInner keyCredential)

Set the keyCredential property: keyCredential.

ApplicationsAddKeyRequestBodyInner withPasswordCredential(MicrosoftGraphPasswordCredentialInner passwordCredential)

Set the passwordCredential property: passwordCredential.

ApplicationsAddKeyRequestBodyInner withProof(String proof)

Set the proof property: The proof property.

Methods inherited from java.lang.Object

Constructor Details

ApplicationsAddKeyRequestBodyInner

public ApplicationsAddKeyRequestBodyInner()

Creates an instance of ApplicationsAddKeyRequestBodyInner class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Dictionary of .

Returns:

the additionalProperties value.

fromJson

public static ApplicationsAddKeyRequestBodyInner fromJson(JsonReader jsonReader)

Reads an instance of ApplicationsAddKeyRequestBodyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

keyCredential

public MicrosoftGraphKeyCredentialInner keyCredential()

Get the keyCredential property: keyCredential.

Returns:

the keyCredential value.

passwordCredential

public MicrosoftGraphPasswordCredentialInner passwordCredential()

Get the passwordCredential property: passwordCredential.

Returns:

the passwordCredential value.

proof

public String proof()

Get the proof property: The proof property.

Returns:

the proof value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public ApplicationsAddKeyRequestBodyInner withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Dictionary of .

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the ApplicationsAddKeyRequestBodyInner object itself.

withKeyCredential

public ApplicationsAddKeyRequestBodyInner withKeyCredential(MicrosoftGraphKeyCredentialInner keyCredential)

Set the keyCredential property: keyCredential.

Parameters:

keyCredential - the keyCredential value to set.

Returns:

the ApplicationsAddKeyRequestBodyInner object itself.

withPasswordCredential

public ApplicationsAddKeyRequestBodyInner withPasswordCredential(MicrosoftGraphPasswordCredentialInner passwordCredential)

Set the passwordCredential property: passwordCredential.

Parameters:

passwordCredential - the passwordCredential value to set.

Returns:

the ApplicationsAddKeyRequestBodyInner object itself.

withProof

public ApplicationsAddKeyRequestBodyInner withProof(String proof)

Set the proof property: The proof property.

Parameters:

proof - the proof value to set.

Returns:

the ApplicationsAddKeyRequestBodyInner object itself.

Applies to