Class ServicePrincipalsAddKeyRequestBodyInner
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.ServicePrincipalsAddKeyRequestBodyInner
-
public final class ServicePrincipalsAddKeyRequestBodyInner extends Object
The ServicePrincipalsAddKeyRequestBody model.
-
-
Constructor Summary
Constructors Constructor Description ServicePrincipalsAddKeyRequestBodyInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: Dictionary of <any>.MicrosoftGraphKeyCredentialInner
keyCredential()
Get the keyCredential property: keyCredential.MicrosoftGraphPasswordCredentialInner
passwordCredential()
Get the passwordCredential property: passwordCredential.String
proof()
Get the proof property: The proof property.void
validate()
Validates the instance.ServicePrincipalsAddKeyRequestBodyInner
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: Dictionary of <any>.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.
-
-
-
Method Detail
-
keyCredential
public MicrosoftGraphKeyCredentialInner keyCredential()
Get the keyCredential property: keyCredential.- Returns:
- the keyCredential value.
-
withKeyCredential
public ServicePrincipalsAddKeyRequestBodyInner withKeyCredential(MicrosoftGraphKeyCredentialInner keyCredential)
Set the keyCredential property: keyCredential.- Parameters:
keyCredential
- the keyCredential value to set.- Returns:
- the ServicePrincipalsAddKeyRequestBodyInner object itself.
-
passwordCredential
public MicrosoftGraphPasswordCredentialInner passwordCredential()
Get the passwordCredential property: passwordCredential.- Returns:
- the passwordCredential value.
-
withPasswordCredential
public ServicePrincipalsAddKeyRequestBodyInner withPasswordCredential(MicrosoftGraphPasswordCredentialInner passwordCredential)
Set the passwordCredential property: passwordCredential.- Parameters:
passwordCredential
- the passwordCredential value to set.- Returns:
- the ServicePrincipalsAddKeyRequestBodyInner object itself.
-
proof
public String proof()
Get the proof property: The proof property.- Returns:
- the proof value.
-
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.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: Dictionary of <any>.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public ServicePrincipalsAddKeyRequestBodyInner withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: Dictionary of <any>.- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the ServicePrincipalsAddKeyRequestBodyInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-