Class UserAgentHandlerOption
java.lang.Object
com.microsoft.kiota.http.middleware.options.UserAgentHandlerOption
- All Implemented Interfaces:
com.microsoft.kiota.RequestOption
The options for the user agent handler
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of the user agent handler option -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether the user agent handler is enabledGets the product name to be used in the user agent headerGets the product version to be used in the user agent header<T extends com.microsoft.kiota.RequestOption>
Class<T> getType()voidsetEnabled(boolean value) Sets whether the user agent handler is enabledvoidsetProductName(String value) Sets the product name to be used in the user agent headervoidsetProductVersion(String value) Sets the product version to be used in the user agent header
-
Constructor Details
-
UserAgentHandlerOption
public UserAgentHandlerOption()Creates a new instance of the user agent handler option
-
-
Method Details
-
getProductName
Gets the product name to be used in the user agent header- Returns:
- the product name
-
setProductName
Sets the product name to be used in the user agent header- Parameters:
value- the product name
-
getProductVersion
Gets the product version to be used in the user agent header- Returns:
- the product version
-
setProductVersion
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
- Specified by:
getTypein interfacecom.microsoft.kiota.RequestOption
-