Class PortalConfigProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.PortalConfigProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PortalConfigProperties>
public final class PortalConfigProperties
extends Object
implements com.azure.json.JsonSerializable<PortalConfigProperties>
The developer portal configuration contract properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PortalConfigProperties 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 PortalConfigPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PortalConfigProperties from the JsonReader.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) 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
-
PortalConfigProperties
public PortalConfigProperties()Creates an instance of PortalConfigProperties class.
-
-
Method Details
-
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 PortalConfigProperties 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 PortalConfigProperties 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 PortalConfigProperties 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 PortalConfigProperties 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 PortalConfigProperties 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 PortalConfigProperties 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<PortalConfigProperties>- Throws:
IOException
-
fromJson
public static PortalConfigProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PortalConfigProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PortalConfigProperties 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 PortalConfigProperties.
-