Class AuthorizationInfo

java.lang.Object
com.azure.resourcemanager.securitydevops.models.AuthorizationInfo

public final class AuthorizationInfo extends Object
The AuthorizationInfo model.
  • Constructor Details

    • AuthorizationInfo

      public AuthorizationInfo()
      Creates an instance of AuthorizationInfo class.
  • Method Details

    • code

      public String code()
      Get the code property: Gets or sets one-time OAuth code to exchange for refresh and access tokens.
      Returns:
      the code value.
    • withCode

      public AuthorizationInfo withCode(String code)
      Set the code property: Gets or sets one-time OAuth code to exchange for refresh and access tokens.
      Parameters:
      code - the code value to set.
      Returns:
      the AuthorizationInfo object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.