Class ApiManagementWorkspaceLinksProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.models.WorkspaceLinksBaseProperties
com.azure.resourcemanager.apimanagement.fluent.models.ApiManagementWorkspaceLinksProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkspaceLinksBaseProperties>
Properties of an API Management workspaceLinks resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApiManagementWorkspaceLinksProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApiManagementWorkspaceLinksProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withGateways(List<WorkspaceLinksGateway> gateways) Set the gateways property: The array of linked gateways.withWorkspaceId(String workspaceId) Set the workspaceId property: The link to the API Management service workspace.Methods inherited from class com.azure.resourcemanager.apimanagement.models.WorkspaceLinksBaseProperties
gateways, workspaceIdMethods 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
-
ApiManagementWorkspaceLinksProperties
public ApiManagementWorkspaceLinksProperties()Creates an instance of ApiManagementWorkspaceLinksProperties class.
-
-
Method Details
-
withWorkspaceId
Set the workspaceId property: The link to the API Management service workspace.- Overrides:
withWorkspaceIdin classWorkspaceLinksBaseProperties- Parameters:
workspaceId- the workspaceId value to set.- Returns:
- the WorkspaceLinksBaseProperties object itself.
-
withGateways
Set the gateways property: The array of linked gateways.- Overrides:
withGatewaysin classWorkspaceLinksBaseProperties- Parameters:
gateways- the gateways value to set.- Returns:
- the WorkspaceLinksBaseProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classWorkspaceLinksBaseProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WorkspaceLinksBaseProperties>- Overrides:
toJsonin classWorkspaceLinksBaseProperties- Throws:
IOException
-
fromJson
public static ApiManagementWorkspaceLinksProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApiManagementWorkspaceLinksProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApiManagementWorkspaceLinksProperties 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 ApiManagementWorkspaceLinksProperties.
-