Class OpenidConnectProviderContractInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.apimanagement.fluent.models.OpenidConnectProviderContractInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class OpenidConnectProviderContractInner
extends com.azure.core.management.ProxyResource
OpenId Connect Provider details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OpenidConnectProviderContractInner class. -
Method Summary
Modifier and TypeMethodDescriptionclientId()Get the clientId property: Client ID of developer console which is the client application.Get the clientSecret property: Client Secret of developer console which is the client application.Get the description property: User-friendly description of OpenID Connect Provider.Get the displayName property: User-friendly OpenID Connect Provider name.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OpenidConnectProviderContractInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the metadataEndpoint property: Metadata endpoint URI.name()Get the name property: The name of the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.Get the useInApiDocumentation property: If true, the Open ID Connect provider will be used in the API documentation in the developer portal.Get the useInTestConsole property: If true, the Open ID Connect provider may be used in the developer portal test console.voidvalidate()Validates the instance.withClientId(String clientId) Set the clientId property: Client ID of developer console which is the client application.withClientSecret(String clientSecret) Set the clientSecret property: Client Secret of developer console which is the client application.withDescription(String description) Set the description property: User-friendly description of OpenID Connect Provider.withDisplayName(String displayName) Set the displayName property: User-friendly OpenID Connect Provider name.withMetadataEndpoint(String metadataEndpoint) Set the metadataEndpoint property: Metadata endpoint URI.withUseInApiDocumentation(Boolean useInApiDocumentation) Set the useInApiDocumentation property: If true, the Open ID Connect provider will be used in the API documentation in the developer portal.withUseInTestConsole(Boolean useInTestConsole) Set the useInTestConsole property: If true, the Open ID Connect provider may be used in the developer portal test console.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
-
OpenidConnectProviderContractInner
public OpenidConnectProviderContractInner()Creates an instance of OpenidConnectProviderContractInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
displayName
Get the displayName property: User-friendly OpenID Connect Provider name.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: User-friendly OpenID Connect Provider name.- Parameters:
displayName- the displayName value to set.- Returns:
- the OpenidConnectProviderContractInner object itself.
-
description
Get the description property: User-friendly description of OpenID Connect Provider.- Returns:
- the description value.
-
withDescription
Set the description property: User-friendly description of OpenID Connect Provider.- Parameters:
description- the description value to set.- Returns:
- the OpenidConnectProviderContractInner object itself.
-
metadataEndpoint
Get the metadataEndpoint property: Metadata endpoint URI.- Returns:
- the metadataEndpoint value.
-
withMetadataEndpoint
Set the metadataEndpoint property: Metadata endpoint URI.- Parameters:
metadataEndpoint- the metadataEndpoint value to set.- Returns:
- the OpenidConnectProviderContractInner object itself.
-
clientId
Get the clientId property: Client ID of developer console which is the client application.- Returns:
- the clientId value.
-
withClientId
Set the clientId property: Client ID of developer console which is the client application.- Parameters:
clientId- the clientId value to set.- Returns:
- the OpenidConnectProviderContractInner object itself.
-
clientSecret
Get the clientSecret property: Client Secret of developer console which is the client application.- Returns:
- the clientSecret value.
-
withClientSecret
Set the clientSecret property: Client Secret of developer console which is the client application.- Parameters:
clientSecret- the clientSecret value to set.- Returns:
- the OpenidConnectProviderContractInner object itself.
-
useInTestConsole
Get the useInTestConsole property: If true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided.- Returns:
- the useInTestConsole value.
-
withUseInTestConsole
Set the useInTestConsole property: If true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided.- Parameters:
useInTestConsole- the useInTestConsole value to set.- Returns:
- the OpenidConnectProviderContractInner object itself.
-
useInApiDocumentation
Get the useInApiDocumentation property: If true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided.- Returns:
- the useInApiDocumentation value.
-
withUseInApiDocumentation
Set the useInApiDocumentation property: If true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided.- Parameters:
useInApiDocumentation- the useInApiDocumentation value to set.- Returns:
- the OpenidConnectProviderContractInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static OpenidConnectProviderContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OpenidConnectProviderContractInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OpenidConnectProviderContractInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the OpenidConnectProviderContractInner.
-