Class PortalConfigContractInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.apimanagement.fluent.models.PortalConfigContractInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class PortalConfigContractInner
extends com.azure.core.management.ProxyResource
The developer portal configuration contract.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PortalConfigContractInner class. -
Method Summary
Modifier and TypeMethodDescriptioncors()Get the cors property: The developer portal Cross-Origin Resource Sharing (CORS) settings.csp()Get the csp property: The developer portal Content Security Policy (CSP) settings.Get the delegation property: The developer portal delegation settings.Get the enableBasicAuth property: Enable or disable Basic authentication method.static PortalConfigContractInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PortalConfigContractInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.name()Get the name property: The name of the resource.signin()Get the signin property: The signin property.signup()Get the signup property: The signup property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.Set the cors property: The developer portal Cross-Origin Resource Sharing (CORS) settings.Set the csp property: The developer portal Content Security Policy (CSP) settings.withDelegation(PortalConfigDelegationProperties delegation) Set the delegation property: The developer portal delegation settings.withEnableBasicAuth(Boolean enableBasicAuth) Set the enableBasicAuth property: Enable or disable Basic authentication method.Set the signin property: The signin property.Set the signup property: The signup property.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
-
PortalConfigContractInner
public PortalConfigContractInner()Creates an instance of PortalConfigContractInner 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.
-
enableBasicAuth
Get the enableBasicAuth property: Enable or disable Basic authentication method.- Returns:
- the enableBasicAuth value.
-
withEnableBasicAuth
Set the enableBasicAuth property: Enable or disable Basic authentication method.- Parameters:
enableBasicAuth- the enableBasicAuth value to set.- Returns:
- the PortalConfigContractInner object itself.
-
signin
Get the signin property: The signin property.- Returns:
- the signin value.
-
withSignin
Set the signin property: The signin property.- Parameters:
signin- the signin value to set.- Returns:
- the PortalConfigContractInner object itself.
-
signup
Get the signup property: The signup property.- Returns:
- the signup value.
-
withSignup
Set the signup property: The signup property.- Parameters:
signup- the signup value to set.- Returns:
- the PortalConfigContractInner object itself.
-
delegation
Get the delegation property: The developer portal delegation settings.- Returns:
- the delegation value.
-
withDelegation
Set the delegation property: The developer portal delegation settings.- Parameters:
delegation- the delegation value to set.- Returns:
- the PortalConfigContractInner object itself.
-
cors
Get the cors property: The developer portal Cross-Origin Resource Sharing (CORS) settings.- Returns:
- the cors value.
-
withCors
Set the cors property: The developer portal Cross-Origin Resource Sharing (CORS) settings.- Parameters:
cors- the cors value to set.- Returns:
- the PortalConfigContractInner object itself.
-
csp
Get the csp property: The developer portal Content Security Policy (CSP) settings.- Returns:
- the csp value.
-
withCsp
Set the csp property: The developer portal Content Security Policy (CSP) settings.- Parameters:
csp- the csp value to set.- Returns:
- the PortalConfigContractInner 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 PortalConfigContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PortalConfigContractInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PortalConfigContractInner 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 PortalConfigContractInner.
-