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 Summary
ConstructorsConstructorDescriptionCreates an instance of ClientSecretContractInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the clientSecret property: Client or app secret used in IdentityProviders, Aad, OpenID or OAuth.static ClientSecretContractInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClientSecretContractInner from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClientSecret(String clientSecret) Set the clientSecret property: Client or app secret used in IdentityProviders, Aad, OpenID or OAuth.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ClientSecretContractInner
public ClientSecretContractInner()Creates an instance of ClientSecretContractInner class.
-
-
Method Details
-
clientSecret
Get the clientSecret property: Client or app secret used in IdentityProviders, Aad, OpenID or OAuth.- Returns:
- the clientSecret value.
-
withClientSecret
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
- Specified by:
toJsonin interfacecom.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.
-