Class NspLinkReferenceProperties
java.lang.Object
com.azure.resourcemanager.network.fluent.models.NspLinkReferenceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NspLinkReferenceProperties>
public final class NspLinkReferenceProperties
extends Object
implements com.azure.json.JsonSerializable<NspLinkReferenceProperties>
Properties of NSP LinkReference resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NspLinkReferenceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: A message sent by the remote NSP link admin for connection request.static NspLinkReferencePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NspLinkReferenceProperties from the JsonReader.Get the localInboundProfiles property: Local Inbound profile names to which Inbound is allowed.Get the localOutboundProfiles property: Local Outbound profile names from which Outbound is allowed.Get the provisioningState property: The provisioning state of the NSP LinkReference resource.Get the remoteInboundProfiles property: Remote Inbound profile names to which Inbound is allowed. ['*'] value implies inbound is allowed to all profiles at remote perimeter.Get the remoteOutboundProfiles property: Remote Outbound profile names from which Outbound is allowed. ['*'] value implies outbound is allowed from all profiles at remote perimeter.Get the remotePerimeterGuid property: Remote NSP Guid with which the link is created.Get the remotePerimeterLocation property: Remote NSP location with which the link gets created.Get the remotePerimeterResourceId property: Perimeter ARM Id for the remote NSP with which the link is created.status()Get the status property: The NSP linkReference state.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLocalInboundProfiles(List<String> localInboundProfiles) Set the localInboundProfiles property: Local Inbound profile names to which Inbound is allowed.withStatus(NspLinkStatus status) Set the status property: The NSP linkReference state.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
-
NspLinkReferenceProperties
public NspLinkReferenceProperties()Creates an instance of NspLinkReferenceProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: The provisioning state of the NSP LinkReference resource.- Returns:
- the provisioningState value.
-
remotePerimeterResourceId
Get the remotePerimeterResourceId property: Perimeter ARM Id for the remote NSP with which the link is created.- Returns:
- the remotePerimeterResourceId value.
-
remotePerimeterGuid
Get the remotePerimeterGuid property: Remote NSP Guid with which the link is created.- Returns:
- the remotePerimeterGuid value.
-
remotePerimeterLocation
Get the remotePerimeterLocation property: Remote NSP location with which the link gets created.- Returns:
- the remotePerimeterLocation value.
-
localInboundProfiles
Get the localInboundProfiles property: Local Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles.- Returns:
- the localInboundProfiles value.
-
withLocalInboundProfiles
Set the localInboundProfiles property: Local Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles.- Parameters:
localInboundProfiles- the localInboundProfiles value to set.- Returns:
- the NspLinkReferenceProperties object itself.
-
localOutboundProfiles
Get the localOutboundProfiles property: Local Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.- Returns:
- the localOutboundProfiles value.
-
remoteInboundProfiles
Get the remoteInboundProfiles property: Remote Inbound profile names to which Inbound is allowed. ['*'] value implies inbound is allowed to all profiles at remote perimeter. This property can only be updated from corresponding link resource present in remote perimeter.- Returns:
- the remoteInboundProfiles value.
-
remoteOutboundProfiles
Get the remoteOutboundProfiles property: Remote Outbound profile names from which Outbound is allowed. ['*'] value implies outbound is allowed from all profiles at remote perimeter. This property can only be updated from corresponding link resource present in remote perimeter.- Returns:
- the remoteOutboundProfiles value.
-
description
Get the description property: A message sent by the remote NSP link admin for connection request. In case of Auto-approved flow, it is default to 'Auto Approved'.- Returns:
- the description value.
-
status
Get the status property: The NSP linkReference state. It cannot be changed if link is created in auto-approval mode.- Returns:
- the status value.
-
withStatus
Set the status property: The NSP linkReference state. It cannot be changed if link is created in auto-approval mode.- Parameters:
status- the status value to set.- Returns:
- the NspLinkReferenceProperties 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<NspLinkReferenceProperties>- Throws:
IOException
-
fromJson
public static NspLinkReferenceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NspLinkReferenceProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NspLinkReferenceProperties 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 NspLinkReferenceProperties.
-