Class ApiPortalProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.ApiPortalProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApiPortalProperties>
public final class ApiPortalProperties
extends Object
implements com.azure.json.JsonSerializable<ApiPortalProperties>
API portal properties payload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the apiTryOutEnabledState property: Indicates whether the API try-out feature is enabled or disabled.static ApiPortalPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApiPortalProperties from the JsonReader.Get the gatewayIds property: The array of resource Ids of gateway to integrate with API portal.Get the httpsOnly property: Indicate if only https is allowed.Get the instances property: Collection of instances belong to API portal.Get the provisioningState property: State of the API portal.Get the publicProperty property: Indicates whether the API portal exposes endpoint.Get the resourceRequests property: The requested resource quantity for required CPU and Memory.Get the sourceUrls property: Collection of OpenAPI source URL locations.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 API portal, exposed when 'public' is true.voidvalidate()Validates the instance.withApiTryOutEnabledState(ApiPortalApiTryOutEnabledState apiTryOutEnabledState) Set the apiTryOutEnabledState property: Indicates whether the API try-out feature is enabled or disabled.withGatewayIds(List<String> gatewayIds) Set the gatewayIds property: The array of resource Ids of gateway to integrate with API portal.withHttpsOnly(Boolean httpsOnly) Set the httpsOnly property: Indicate if only https is allowed.withPublicProperty(Boolean publicProperty) Set the publicProperty property: Indicates whether the API portal exposes endpoint.withSourceUrls(List<String> sourceUrls) Set the sourceUrls property: Collection of OpenAPI source URL locations.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
-
ApiPortalProperties
public ApiPortalProperties()Creates an instance of ApiPortalProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: State of the API portal.- Returns:
- the provisioningState value.
-
publicProperty
Get the publicProperty property: Indicates whether the API portal exposes endpoint.- Returns:
- the publicProperty value.
-
withPublicProperty
Set the publicProperty property: Indicates whether the API portal exposes endpoint.- Parameters:
publicProperty- the publicProperty value to set.- Returns:
- the ApiPortalProperties object itself.
-
url
Get the url property: URL of the API portal, 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 ApiPortalProperties object itself.
-
gatewayIds
Get the gatewayIds property: The array of resource Ids of gateway to integrate with API portal.- Returns:
- the gatewayIds value.
-
withGatewayIds
Set the gatewayIds property: The array of resource Ids of gateway to integrate with API portal.- Parameters:
gatewayIds- the gatewayIds value to set.- Returns:
- the ApiPortalProperties object itself.
-
sourceUrls
Get the sourceUrls property: Collection of OpenAPI source URL locations.- Returns:
- the sourceUrls value.
-
withSourceUrls
Set the sourceUrls property: Collection of OpenAPI source URL locations.- Parameters:
sourceUrls- the sourceUrls value to set.- Returns:
- the ApiPortalProperties 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 ApiPortalProperties object itself.
-
resourceRequests
Get the resourceRequests property: The requested resource quantity for required CPU and Memory.- Returns:
- the resourceRequests value.
-
instances
Get the instances property: Collection of instances belong to API portal.- Returns:
- the instances value.
-
apiTryOutEnabledState
Get the apiTryOutEnabledState property: Indicates whether the API try-out feature is enabled or disabled. When enabled, users can try out the API by sending requests and viewing responses in API portal. When disabled, users cannot try out the API.- Returns:
- the apiTryOutEnabledState value.
-
withApiTryOutEnabledState
public ApiPortalProperties withApiTryOutEnabledState(ApiPortalApiTryOutEnabledState apiTryOutEnabledState) Set the apiTryOutEnabledState property: Indicates whether the API try-out feature is enabled or disabled. When enabled, users can try out the API by sending requests and viewing responses in API portal. When disabled, users cannot try out the API.- Parameters:
apiTryOutEnabledState- the apiTryOutEnabledState value to set.- Returns:
- the ApiPortalProperties 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<ApiPortalProperties>- Throws:
IOException
-
fromJson
Reads an instance of ApiPortalProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApiPortalProperties 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 ApiPortalProperties.
-