Class GatewayProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.GatewayProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GatewayProperties>
public final class GatewayProperties
extends Object
implements com.azure.json.JsonSerializable<GatewayProperties>
Spring Cloud Gateway properties payload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the apiMetadataProperties property: API metadata property for Spring Cloud Gateway.apms()Get the apms property: Collection of ApmReferences in service level.Get the clientAuth property: Client-Certification Authentication.Get the corsProperties property: Cross-Origin Resource Sharing property.Get the environmentVariables property: Environment variables of Spring Cloud Gateway.static GatewayPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GatewayProperties from the JsonReader.Get the httpsOnly property: Indicate if only https is allowed.Get the instances property: Collection of instances belong to Spring Cloud Gateway.Get the operatorProperties property: Properties of the Spring Cloud Gateway Operator.Get the provisioningState property: State of the Spring Cloud Gateway.Get the publicProperty property: Indicates whether the Spring Cloud Gateway exposes endpoint.Get the resourceRequests property: The requested resource quantity for required CPU and Memory.Get the ssoProperties property: Single sign-on related configuration.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) url()Get the url property: URL of the Spring Cloud Gateway, exposed when 'public' is true.voidvalidate()Validates the instance.withApiMetadataProperties(GatewayApiMetadataProperties apiMetadataProperties) Set the apiMetadataProperties property: API metadata property for Spring Cloud Gateway.withApms(List<ApmReference> apms) Set the apms property: Collection of ApmReferences in service level.withClientAuth(GatewayPropertiesClientAuth clientAuth) Set the clientAuth property: Client-Certification Authentication.withCorsProperties(GatewayCorsProperties corsProperties) Set the corsProperties property: Cross-Origin Resource Sharing property.withEnvironmentVariables(GatewayPropertiesEnvironmentVariables environmentVariables) Set the environmentVariables property: Environment variables of Spring Cloud Gateway.withHttpsOnly(Boolean httpsOnly) Set the httpsOnly property: Indicate if only https is allowed.withPublicProperty(Boolean publicProperty) Set the publicProperty property: Indicates whether the Spring Cloud Gateway exposes endpoint.withResourceRequests(GatewayResourceRequests resourceRequests) Set the resourceRequests property: The requested resource quantity for required CPU and Memory.withSsoProperties(SsoProperties ssoProperties) Set the ssoProperties property: Single sign-on related configuration.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
-
GatewayProperties
public GatewayProperties()Creates an instance of GatewayProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: State of the Spring Cloud Gateway.- Returns:
- the provisioningState value.
-
publicProperty
Get the publicProperty property: Indicates whether the Spring Cloud Gateway exposes endpoint.- Returns:
- the publicProperty value.
-
withPublicProperty
Set the publicProperty property: Indicates whether the Spring Cloud Gateway exposes endpoint.- Parameters:
publicProperty- the publicProperty value to set.- Returns:
- the GatewayProperties object itself.
-
url
Get the url property: URL of the Spring Cloud Gateway, exposed when 'public' is true.- Returns:
- the url value.
-
httpsOnly
Get the httpsOnly property: Indicate if only https is allowed.- Returns:
- the httpsOnly value.
-
withHttpsOnly
Set the httpsOnly property: Indicate if only https is allowed.- Parameters:
httpsOnly- the httpsOnly value to set.- Returns:
- the GatewayProperties object itself.
-
ssoProperties
Get the ssoProperties property: Single sign-on related configuration.- Returns:
- the ssoProperties value.
-
withSsoProperties
Set the ssoProperties property: Single sign-on related configuration.- Parameters:
ssoProperties- the ssoProperties value to set.- Returns:
- the GatewayProperties object itself.
-
apiMetadataProperties
Get the apiMetadataProperties property: API metadata property for Spring Cloud Gateway.- Returns:
- the apiMetadataProperties value.
-
withApiMetadataProperties
public GatewayProperties withApiMetadataProperties(GatewayApiMetadataProperties apiMetadataProperties) Set the apiMetadataProperties property: API metadata property for Spring Cloud Gateway.- Parameters:
apiMetadataProperties- the apiMetadataProperties value to set.- Returns:
- the GatewayProperties object itself.
-
corsProperties
Get the corsProperties property: Cross-Origin Resource Sharing property.- Returns:
- the corsProperties value.
-
withCorsProperties
Set the corsProperties property: Cross-Origin Resource Sharing property.- Parameters:
corsProperties- the corsProperties value to set.- Returns:
- the GatewayProperties object itself.
-
clientAuth
Get the clientAuth property: Client-Certification Authentication.- Returns:
- the clientAuth value.
-
withClientAuth
Set the clientAuth property: Client-Certification Authentication.- Parameters:
clientAuth- the clientAuth value to set.- Returns:
- the GatewayProperties object itself.
-
apms
Get the apms property: Collection of ApmReferences in service level.- Returns:
- the apms value.
-
withApms
Set the apms property: Collection of ApmReferences in service level.- Parameters:
apms- the apms value to set.- Returns:
- the GatewayProperties object itself.
-
environmentVariables
Get the environmentVariables property: Environment variables of Spring Cloud Gateway.- Returns:
- the environmentVariables value.
-
withEnvironmentVariables
public GatewayProperties withEnvironmentVariables(GatewayPropertiesEnvironmentVariables environmentVariables) Set the environmentVariables property: Environment variables of Spring Cloud Gateway.- Parameters:
environmentVariables- the environmentVariables value to set.- Returns:
- the GatewayProperties object itself.
-
resourceRequests
Get the resourceRequests property: The requested resource quantity for required CPU and Memory.- Returns:
- the resourceRequests value.
-
withResourceRequests
Set the resourceRequests property: The requested resource quantity for required CPU and Memory.- Parameters:
resourceRequests- the resourceRequests value to set.- Returns:
- the GatewayProperties object itself.
-
instances
Get the instances property: Collection of instances belong to Spring Cloud Gateway.- Returns:
- the instances value.
-
operatorProperties
Get the operatorProperties property: Properties of the Spring Cloud Gateway Operator.- Returns:
- the operatorProperties value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GatewayProperties>- Throws:
IOException
-
fromJson
Reads an instance of GatewayProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GatewayProperties 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 GatewayProperties.
-