Package org.azd.accounts.profile
Class ProfileRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.accounts.profile.ProfileRequestBuilder
Provides functionality to manage Profile Api.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter
-
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer
-
Constructor Summary
ConstructorDescriptionProfileRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
ProfileRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
getAsync
Get the current user profile.- Returns:
- Returns a future object of
Profile
- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
Get the user profile for given id.- Parameters:
id
- ID of the user.- Returns:
- Returns a future object of
Profile
- Throws:
AzDException
- Default Api Exception handler.
-
get
Get the current user profile.- Returns:
- Returns a future object of
Profile
- Throws:
AzDException
- Default Api Exception handler.
-
get
Get the user profile for given id.- Parameters:
id
- ID of the user.- Returns:
- Returns a future object of
Profile
- Throws:
AzDException
- Default Api Exception handler.
-