Class UserAgentHandlerOption

java.lang.Object
com.microsoft.kiota.http.middleware.options.UserAgentHandlerOption
All Implemented Interfaces:
com.microsoft.kiota.RequestOption

public class UserAgentHandlerOption extends Object implements com.microsoft.kiota.RequestOption
The options for the user agent handler
  • Constructor Details

    • UserAgentHandlerOption

      public UserAgentHandlerOption()
      Creates a new instance of the user agent handler option
  • Method Details

    • getProductName

      @Nonnull public String getProductName()
      Gets the product name to be used in the user agent header
      Returns:
      the product name
    • setProductName

      public void setProductName(@Nonnull String value)
      Sets the product name to be used in the user agent header
      Parameters:
      value - the product name
    • getProductVersion

      @Nonnull public String getProductVersion()
      Gets the product version to be used in the user agent header
      Returns:
      the product version
    • setProductVersion

      public void setProductVersion(@Nonnull String value)
      Sets the product version to be used in the user agent header
      Parameters:
      value - the product version
    • getEnabled

      public boolean getEnabled()
      Gets whether the user agent handler is enabled
      Returns:
      whether the user agent handler is enabled
    • setEnabled

      public void setEnabled(boolean value)
      Sets whether the user agent handler is enabled
      Parameters:
      value - whether the user agent handler is enabled
    • getType

      @Nonnull public <T extends com.microsoft.kiota.RequestOption> Class<T> getType()
      Specified by:
      getType in interface com.microsoft.kiota.RequestOption