Class MicrosoftGraphRequiredResourceAccess
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphRequiredResourceAccess
-
public final class MicrosoftGraphRequiredResourceAccess extends Object
requiredResourceAccess.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphRequiredResourceAccess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: requiredResourceAccess.List<MicrosoftGraphResourceAccess>
resourceAccess()
Get the resourceAccess property: The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource.String
resourceAppId()
Get the resourceAppId property: The unique identifier for the resource that the application requires access to.void
validate()
Validates the instance.MicrosoftGraphRequiredResourceAccess
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: requiredResourceAccess.MicrosoftGraphRequiredResourceAccess
withResourceAccess(List<MicrosoftGraphResourceAccess> resourceAccess)
Set the resourceAccess property: The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource.MicrosoftGraphRequiredResourceAccess
withResourceAppId(String resourceAppId)
Set the resourceAppId property: The unique identifier for the resource that the application requires access to.
-
-
-
Method Detail
-
resourceAccess
public List<MicrosoftGraphResourceAccess> resourceAccess()
Get the resourceAccess property: The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource.- Returns:
- the resourceAccess value.
-
withResourceAccess
public MicrosoftGraphRequiredResourceAccess withResourceAccess(List<MicrosoftGraphResourceAccess> resourceAccess)
Set the resourceAccess property: The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource.- Parameters:
resourceAccess
- the resourceAccess value to set.- Returns:
- the MicrosoftGraphRequiredResourceAccess object itself.
-
resourceAppId
public String resourceAppId()
Get the resourceAppId property: The unique identifier for the resource that the application requires access to. This should be equal to the appId declared on the target resource application.- Returns:
- the resourceAppId value.
-
withResourceAppId
public MicrosoftGraphRequiredResourceAccess withResourceAppId(String resourceAppId)
Set the resourceAppId property: The unique identifier for the resource that the application requires access to. This should be equal to the appId declared on the target resource application.- Parameters:
resourceAppId
- the resourceAppId value to set.- Returns:
- the MicrosoftGraphRequiredResourceAccess object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: requiredResourceAccess.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphRequiredResourceAccess withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: requiredResourceAccess.- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphRequiredResourceAccess object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-