Class NspLinkReferenceInner

java.lang.Object
com.azure.core.management.ProxyResource
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class NspLinkReferenceInner extends SecurityPerimeterProxyResource
The network security perimeter linkReference resource.
  • Constructor Details

    • NspLinkReferenceInner

      public NspLinkReferenceInner()
      Creates an instance of NspLinkReferenceInner class.
  • Method Details

    • systemData

      public SecurityPerimeterSystemData systemData()
      Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
      Overrides:
      systemData in class SecurityPerimeterProxyResource
      Returns:
      the systemData value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class SecurityPerimeterProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class SecurityPerimeterProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class SecurityPerimeterProxyResource
      Returns:
      the id value.
    • provisioningState

      public NspLinkProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the NSP LinkReference resource.
      Returns:
      the provisioningState value.
    • remotePerimeterResourceId

      public String remotePerimeterResourceId()
      Get the remotePerimeterResourceId property: Perimeter ARM Id for the remote NSP with which the link is created.
      Returns:
      the remotePerimeterResourceId value.
    • remotePerimeterGuid

      public String remotePerimeterGuid()
      Get the remotePerimeterGuid property: Remote NSP Guid with which the link is created.
      Returns:
      the remotePerimeterGuid value.
    • remotePerimeterLocation

      public String remotePerimeterLocation()
      Get the remotePerimeterLocation property: Remote NSP location with which the link gets created.
      Returns:
      the remotePerimeterLocation value.
    • localInboundProfiles

      public List<String> 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

      public NspLinkReferenceInner withLocalInboundProfiles(List<String> localInboundProfiles)
      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 NspLinkReferenceInner object itself.
    • localOutboundProfiles

      public List<String> 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

      public List<String> 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

      public List<String> 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

      public String 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

      public NspLinkStatus 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

      public NspLinkReferenceInner withStatus(NspLinkStatus status)
      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 NspLinkReferenceInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class SecurityPerimeterProxyResource
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class SecurityPerimeterProxyResource
      Throws:
      IOException
    • fromJson

      public static NspLinkReferenceInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NspLinkReferenceInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NspLinkReferenceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the NspLinkReferenceInner.