Class GraphClientOption

java.lang.Object
com.microsoft.graph.core.requests.options.GraphClientOption
All Implemented Interfaces:
com.microsoft.kiota.RequestOption

public class GraphClientOption extends Object implements com.microsoft.kiota.RequestOption
Options to be passed to the telemetry middleware.
  • Field Details

    • featureTracker

      public final FeatureTracker featureTracker
      Feature Tracker instance
  • Constructor Details

    • GraphClientOption

      public GraphClientOption()
      Default constructor
  • Method Details

    • setClientRequestId

      public void setClientRequestId(@Nonnull String clientRequestId)
      Sets the client request id
      Parameters:
      clientRequestId - the client request id to set, preferably the string representation of a GUID
    • getClientRequestId

      @Nonnull public String getClientRequestId()
      Gets the client request id
      Returns:
      the client request id
    • setClientLibraryVersion

      public void setClientLibraryVersion(@Nonnull String clientLibraryVersion)
      Sets a string representation of the client library
      Parameters:
      clientLibraryVersion - client library version specified by user.
    • getClientLibraryVersion

      @Nullable public String getClientLibraryVersion()
      Get the client library version as a string If null return null;
      Returns:
      client library version.
    • setCoreLibraryVersion

      public void setCoreLibraryVersion(@Nonnull String coreLibraryVersion)
      Set the core library version as a String, in this format 'x.x.x'
      Parameters:
      coreLibraryVersion - core library version specified by user.
    • getCoreLibraryVersion

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

      public void setGraphServiceTargetVersion(@Nonnull String graphServiceVersion)
      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

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

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