Compartilhar via


ServicePrincipalsAddKeyRequestBodyInner Class

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

Implements

public final class ServicePrincipalsAddKeyRequestBodyInner
implements JsonSerializable<ServicePrincipalsAddKeyRequestBodyInner>

The ServicePrincipalsAddKeyRequestBody model.

Constructor Summary

Constructor Description
ServicePrincipalsAddKeyRequestBodyInner()

Creates an instance of ServicePrincipalsAddKeyRequestBodyInner class.

Method Summary

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

Get the additionalProperties property: Dictionary of <AnyObject>.

static ServicePrincipalsAddKeyRequestBodyInner fromJson(JsonReader jsonReader)

Reads an instance of ServicePrincipalsAddKeyRequestBodyInner 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.

ServicePrincipalsAddKeyRequestBodyInner withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Dictionary of <AnyObject>.

ServicePrincipalsAddKeyRequestBodyInner withKeyCredential(MicrosoftGraphKeyCredentialInner keyCredential)

Set the keyCredential property: keyCredential.

ServicePrincipalsAddKeyRequestBodyInner withPasswordCredential(MicrosoftGraphPasswordCredentialInner passwordCredential)

Set the passwordCredential property: passwordCredential.

ServicePrincipalsAddKeyRequestBodyInner withProof(String proof)

Set the proof property: The proof property.

Methods inherited from java.lang.Object

Constructor Details

ServicePrincipalsAddKeyRequestBodyInner

public ServicePrincipalsAddKeyRequestBodyInner()

Creates an instance of ServicePrincipalsAddKeyRequestBodyInner class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Dictionary of .

Returns:

the additionalProperties value.

fromJson

public static ServicePrincipalsAddKeyRequestBodyInner fromJson(JsonReader jsonReader)

Reads an instance of ServicePrincipalsAddKeyRequestBodyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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 ServicePrincipalsAddKeyRequestBodyInner withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Dictionary of .

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the ServicePrincipalsAddKeyRequestBodyInner object itself.

withKeyCredential

public ServicePrincipalsAddKeyRequestBodyInner withKeyCredential(MicrosoftGraphKeyCredentialInner keyCredential)

Set the keyCredential property: keyCredential.

Parameters:

keyCredential - the keyCredential value to set.

Returns:

the ServicePrincipalsAddKeyRequestBodyInner object itself.

withPasswordCredential

public ServicePrincipalsAddKeyRequestBodyInner withPasswordCredential(MicrosoftGraphPasswordCredentialInner passwordCredential)

Set the passwordCredential property: passwordCredential.

Parameters:

passwordCredential - the passwordCredential value to set.

Returns:

the ServicePrincipalsAddKeyRequestBodyInner object itself.

withProof

public ServicePrincipalsAddKeyRequestBodyInner withProof(String proof)

Set the proof property: The proof property.

Parameters:

proof - the proof value to set.

Returns:

the ServicePrincipalsAddKeyRequestBodyInner object itself.

Applies to