Class ProfileCardPropertiesRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.admin.people.profilecardproperties.ProfileCardPropertiesRequestBuilder
@Generated("com.microsoft.kiota")
public class ProfileCardPropertiesRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassGet a collection of profileCardProperty resources for an organization.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionProfileCardPropertiesRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newProfileCardPropertiesRequestBuilderand sets the default values.ProfileCardPropertiesRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newProfileCardPropertiesRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyProfileCardPropertyId(String profileCardPropertyId) Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.count()Provides operations to count the resources in the collection.get()Get a collection of profileCardProperty resources for an organization.get(Consumer<ProfileCardPropertiesRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a collection of profileCardProperty resources for an organization.post(ProfileCardProperty body) Create a new profileCardProperty for an organization.post(ProfileCardProperty body, Consumer<ProfileCardPropertiesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new profileCardProperty for an organization.com.microsoft.kiota.RequestInformationGet a collection of profileCardProperty resources for an organization.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ProfileCardPropertiesRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a collection of profileCardProperty resources for an organization.com.microsoft.kiota.RequestInformationCreate a new profileCardProperty for an organization.com.microsoft.kiota.RequestInformationtoPostRequestInformation(ProfileCardProperty body, Consumer<ProfileCardPropertiesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new profileCardProperty for an organization.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ProfileCardPropertiesRequestBuilder
public ProfileCardPropertiesRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newProfileCardPropertiesRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ProfileCardPropertiesRequestBuilder
public ProfileCardPropertiesRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newProfileCardPropertiesRequestBuilderand sets the default values.- Parameters:
rawUrl- The raw URL to use for the request builder.requestAdapter- The request adapter to use to execute the requests.
-
-
Method Details
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
byProfileCardPropertyId
@Nonnull public ProfileCardPropertyItemRequestBuilder byProfileCardPropertyId(@Nonnull String profileCardPropertyId) Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.- Parameters:
profileCardPropertyId- The unique identifier of profileCardProperty- Returns:
- a
ProfileCardPropertyItemRequestBuilder
-
get
Get a collection of profileCardProperty resources for an organization. Each resource is identified by its directoryPropertyName property.- Returns:
- a
ProfileCardPropertyCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public ProfileCardPropertyCollectionResponse get(@Nullable Consumer<ProfileCardPropertiesRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a collection of profileCardProperty resources for an organization. Each resource is identified by its directoryPropertyName property.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ProfileCardPropertyCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create a new profileCardProperty for an organization. The new property is identified by its directoryPropertyName property. For more information about how to add properties to the profile card for an organization, see Add or remove custom attributes on a profile card using the profile card API.- Parameters:
body- The request body- Returns:
- a
ProfileCardProperty - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public ProfileCardProperty post(@Nonnull ProfileCardProperty body, @Nullable Consumer<ProfileCardPropertiesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new profileCardProperty for an organization. The new property is identified by its directoryPropertyName property. For more information about how to add properties to the profile card for an organization, see Add or remove custom attributes on a profile card using the profile card API.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ProfileCardProperty - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Get a collection of profileCardProperty resources for an organization. Each resource is identified by its directoryPropertyName property.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ProfileCardPropertiesRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a collection of profileCardProperty resources for an organization. Each resource is identified by its directoryPropertyName property.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ProfileCardProperty body) Create a new profileCardProperty for an organization. The new property is identified by its directoryPropertyName property. For more information about how to add properties to the profile card for an organization, see Add or remove custom attributes on a profile card using the profile card API.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ProfileCardProperty body, @Nullable Consumer<ProfileCardPropertiesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new profileCardProperty for an organization. The new property is identified by its directoryPropertyName property. For more information about how to add properties to the profile card for an organization, see Add or remove custom attributes on a profile card using the profile card API.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.- Parameters:
rawUrl- The raw URL to use for the request builder.- Returns:
- a
ProfileCardPropertiesRequestBuilder
-