Class ClientSecretContractInner

java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.ClientSecretContractInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClientSecretContractInner>

public final class ClientSecretContractInner extends Object implements com.azure.json.JsonSerializable<ClientSecretContractInner>
Client or app secret used in IdentityProviders, Aad, OpenID or OAuth.
  • Constructor Details

    • ClientSecretContractInner

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

    • clientSecret

      public String clientSecret()
      Get the clientSecret property: Client or app secret used in IdentityProviders, Aad, OpenID or OAuth.
      Returns:
      the clientSecret value.
    • withClientSecret

      public ClientSecretContractInner withClientSecret(String clientSecret)
      Set the clientSecret property: Client or app secret used in IdentityProviders, Aad, OpenID or OAuth.
      Parameters:
      clientSecret - the clientSecret value to set.
      Returns:
      the ClientSecretContractInner object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ClientSecretContractInner>
      Throws:
      IOException
    • fromJson

      public static ClientSecretContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ClientSecretContractInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ClientSecretContractInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ClientSecretContractInner.