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.
  • Constructor Details

    • ProfileCardPropertiesRequestBuilder

      public ProfileCardPropertiesRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new ProfileCardPropertiesRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • ProfileCardPropertiesRequestBuilder

      public ProfileCardPropertiesRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new ProfileCardPropertiesRequestBuilder and 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

      @Nonnull public CountRequestBuilder 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

      @Nullable public ProfileCardPropertyCollectionResponse 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

      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

      @Nullable public ProfileCardProperty post(@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 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 body
      requestConfiguration - 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 body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public ProfileCardPropertiesRequestBuilder withUrl(@Nonnull String rawUrl)
      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