Class BrandingRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.organization.item.branding.BrandingRequestBuilder

@Generated("com.microsoft.kiota") public class BrandingRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the branding property of the microsoft.graph.organization entity.
  • Constructor Details

    • BrandingRequestBuilder

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

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

    • backgroundImage

      @Nonnull public BackgroundImageRequestBuilder backgroundImage()
      Provides operations to manage the media for the organization entity.
      Returns:
      a BackgroundImageRequestBuilder
    • bannerLogo

      @Nonnull public BannerLogoRequestBuilder bannerLogo()
      Provides operations to manage the media for the organization entity.
      Returns:
      a BannerLogoRequestBuilder
    • customCSS

      @Nonnull public CustomCSSRequestBuilder customCSS()
      Provides operations to manage the media for the organization entity.
      Returns:
      a CustomCSSRequestBuilder
    • favicon

      @Nonnull public FaviconRequestBuilder favicon()
      Provides operations to manage the media for the organization entity.
      Returns:
      a FaviconRequestBuilder
    • headerLogo

      @Nonnull public HeaderLogoRequestBuilder headerLogo()
      Provides operations to manage the media for the organization entity.
      Returns:
      a HeaderLogoRequestBuilder
    • localizations

      @Nonnull public LocalizationsRequestBuilder localizations()
      Provides operations to manage the localizations property of the microsoft.graph.organizationalBranding entity.
      Returns:
      a LocalizationsRequestBuilder
    • squareLogo

      @Nonnull public SquareLogoRequestBuilder squareLogo()
      Provides operations to manage the media for the organization entity.
      Returns:
      a SquareLogoRequestBuilder
    • squareLogoDark

      @Nonnull public SquareLogoDarkRequestBuilder squareLogoDark()
      Provides operations to manage the media for the organization entity.
      Returns:
      a SquareLogoDarkRequestBuilder
    • delete

      public void delete()
      Delete the default organizational branding object. To delete the organizationalBranding object, all images (Stream types) must first be removed from the object.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • delete

      public void delete(@Nullable Consumer<BrandingRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete the default organizational branding object. To delete the organizationalBranding object, all images (Stream types) must first be removed from the object.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public OrganizationalBranding get()
      Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method.
      Returns:
      a OrganizationalBranding
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public OrganizationalBranding get(@Nullable Consumer<BrandingRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a OrganizationalBranding
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public OrganizationalBranding patch(@Nonnull OrganizationalBranding body)
      Update the properties of the default branding object specified by the organizationalBranding resource.
      Parameters:
      body - The request body
      Returns:
      a OrganizationalBranding
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public OrganizationalBranding patch(@Nonnull OrganizationalBranding body, @Nullable Consumer<BrandingRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the properties of the default branding object specified by the organizationalBranding resource.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a OrganizationalBranding
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete the default organizational branding object. To delete the organizationalBranding object, all images (Stream types) must first be removed from the object.
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<BrandingRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete the default organizational branding object. To delete the organizationalBranding object, all images (Stream types) must first be removed from the object.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<BrandingRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull OrganizationalBranding body)
      Update the properties of the default branding object specified by the organizationalBranding resource.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull OrganizationalBranding body, @Nullable Consumer<BrandingRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the properties of the default branding object specified by the organizationalBranding resource.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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