Class GraphClientOption
java.lang.Object
com.microsoft.graph.core.requests.options.GraphClientOption
- All Implemented Interfaces:
com.microsoft.kiota.RequestOption
Options to be passed to the telemetry middleware.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the client library version as a string If null return null;Gets the client request idGet the core library version as a String, in this format 'x.x.x' If null return the value in CoreConstants.Get the target version of the api endpoint we are targeting (v1 or beta) return 'v1' if not specified.<T extends com.microsoft.kiota.RequestOption>
Class<T> getType()voidsetClientLibraryVersion(String clientLibraryVersion) Sets a string representation of the client libraryvoidsetClientRequestId(String clientRequestId) Sets the client request idvoidsetCoreLibraryVersion(String coreLibraryVersion) Set the core library version as a String, in this format 'x.x.x'voidsetGraphServiceTargetVersion(String graphServiceVersion) Set the target version of the api endpoint we are targeting (v1 or beta)
-
Field Details
-
featureTracker
Feature Tracker instance
-
-
Constructor Details
-
GraphClientOption
public GraphClientOption()Default constructor
-
-
Method Details
-
setClientRequestId
Sets the client request id- Parameters:
clientRequestId- the client request id to set, preferably the string representation of a GUID
-
getClientRequestId
Gets the client request id- Returns:
- the client request id
-
setClientLibraryVersion
Sets a string representation of the client library- Parameters:
clientLibraryVersion- client library version specified by user.
-
getClientLibraryVersion
Get the client library version as a string If null return null;- Returns:
- client library version.
-
setCoreLibraryVersion
Set the core library version as a String, in this format 'x.x.x'- Parameters:
coreLibraryVersion- core library version specified by user.
-
getCoreLibraryVersion
Get the core library version as a String, in this format 'x.x.x' If null return the value in CoreConstants.- Returns:
- core library version.
-
setGraphServiceTargetVersion
Set the target version of the api endpoint we are targeting (v1 or beta)- Parameters:
graphServiceVersion- the version of the Api endpoint we are targeting
-
getGraphServiceTargetVersion
Get the target version of the api endpoint we are targeting (v1 or beta) return 'v1' if not specified.- Returns:
- the version of the Api endpoint we are targeting.
-
getType
- Specified by:
getTypein interfacecom.microsoft.kiota.RequestOption
-