Class NetworkConnection

java.lang.Object
com.microsoft.graph.models.NetworkConnection
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class NetworkConnection extends Object implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.store.BackedModel, com.microsoft.kiota.serialization.Parsable
  • Field Details

    • backingStore

      @Nonnull protected com.microsoft.kiota.store.BackingStore backingStore
      Stores model information.
  • Constructor Details

    • NetworkConnection

      public NetworkConnection()
      Instantiates a new NetworkConnection and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static NetworkConnection createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a NetworkConnection
    • getAdditionalData

      @Nonnull public Map<String,Object> getAdditionalData()
      Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Specified by:
      getAdditionalData in interface com.microsoft.kiota.serialization.AdditionalDataHolder
      Returns:
      a Map<String,Object>
    • getApplicationName

      @Nullable public String getApplicationName()
      Gets the applicationName property value. Name of the application managing the network connection (for example, Facebook or SMTP).
      Returns:
      a String
    • getBackingStore

      @Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()
      Gets the backingStore property value. Stores model information.
      Specified by:
      getBackingStore in interface com.microsoft.kiota.store.BackedModel
      Returns:
      a BackingStore
    • getDestinationAddress

      @Nullable public String getDestinationAddress()
      Gets the destinationAddress property value. Destination IP address (of the network connection).
      Returns:
      a String
    • getDestinationDomain

      @Nullable public String getDestinationDomain()
      Gets the destinationDomain property value. Destination domain portion of the destination URL. (for example 'www.contoso.com').
      Returns:
      a String
    • getDestinationLocation

      @Nullable public String getDestinationLocation()
      Gets the destinationLocation property value. Location (by IP address mapping) associated with the destination of a network connection.
      Returns:
      a String
    • getDestinationPort

      @Nullable public String getDestinationPort()
      Gets the destinationPort property value. Destination port (of the network connection).
      Returns:
      a String
    • getDestinationUrl

      @Nullable public String getDestinationUrl()
      Gets the destinationUrl property value. Network connection URL/URI string - excluding parameters. (for example 'www.contoso.com/products/default.html')
      Returns:
      a String
    • getDirection

      @Nullable public ConnectionDirection getDirection()
      Gets the direction property value. Network connection direction. Possible values are: unknown, inbound, outbound.
      Returns:
      a ConnectionDirection
    • getDomainRegisteredDateTime

      @Nullable public OffsetDateTime getDomainRegisteredDateTime()
      Gets the domainRegisteredDateTime property value. Date when the destination domain was registered. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
      Returns:
      a OffsetDateTime
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getLocalDnsName

      @Nullable public String getLocalDnsName()
      Gets the localDnsName property value. The local DNS name resolution as it appears in the host's local DNS cache (for example, in case the 'hosts' file was tampered with).
      Returns:
      a String
    • getNatDestinationAddress

      @Nullable public String getNatDestinationAddress()
      Gets the natDestinationAddress property value. Network Address Translation destination IP address.
      Returns:
      a String
    • getNatDestinationPort

      @Nullable public String getNatDestinationPort()
      Gets the natDestinationPort property value. Network Address Translation destination port.
      Returns:
      a String
    • getNatSourceAddress

      @Nullable public String getNatSourceAddress()
      Gets the natSourceAddress property value. Network Address Translation source IP address.
      Returns:
      a String
    • getNatSourcePort

      @Nullable public String getNatSourcePort()
      Gets the natSourcePort property value. Network Address Translation source port.
      Returns:
      a String
    • getOdataType

      @Nullable public String getOdataType()
      Gets the @odata.type property value. The OdataType property
      Returns:
      a String
    • getProtocol

      @Nullable public SecurityNetworkProtocol getProtocol()
      Gets the protocol property value. Network protocol. Possible values are: unknown, ip, icmp, igmp, ggp, ipv4, tcp, pup, udp, idp, ipv6, ipv6RoutingHeader, ipv6FragmentHeader, ipSecEncapsulatingSecurityPayload, ipSecAuthenticationHeader, icmpV6, ipv6NoNextHeader, ipv6DestinationOptions, nd, raw, ipx, spx, spxII.
      Returns:
      a SecurityNetworkProtocol
    • getRiskScore

      @Nullable public String getRiskScore()
      Gets the riskScore property value. Provider generated/calculated risk score of the network connection. Recommended value range of 0-1, which equates to a percentage.
      Returns:
      a String
    • getSourceAddress

      @Nullable public String getSourceAddress()
      Gets the sourceAddress property value. Source (i.e. origin) IP address (of the network connection).
      Returns:
      a String
    • getSourceLocation

      @Nullable public String getSourceLocation()
      Gets the sourceLocation property value. Location (by IP address mapping) associated with the source of a network connection.
      Returns:
      a String
    • getSourcePort

      @Nullable public String getSourcePort()
      Gets the sourcePort property value. Source (i.e. origin) IP port (of the network connection).
      Returns:
      a String
    • getStatus

      @Nullable public ConnectionStatus getStatus()
      Gets the status property value. Network connection status. Possible values are: unknown, attempted, succeeded, blocked, failed.
      Returns:
      a ConnectionStatus
    • getUrlParameters

      @Nullable public String getUrlParameters()
      Gets the urlParameters property value. Parameters (suffix) of the destination URL.
      Returns:
      a String
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAdditionalData

      public void setAdditionalData(@Nullable Map<String,Object> value)
      Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Parameters:
      value - Value to set for the AdditionalData property.
    • setApplicationName

      public void setApplicationName(@Nullable String value)
      Sets the applicationName property value. Name of the application managing the network connection (for example, Facebook or SMTP).
      Parameters:
      value - Value to set for the applicationName property.
    • setBackingStore

      public void setBackingStore(@Nonnull com.microsoft.kiota.store.BackingStore value)
      Sets the backingStore property value. Stores model information.
      Parameters:
      value - Value to set for the backingStore property.
    • setDestinationAddress

      public void setDestinationAddress(@Nullable String value)
      Sets the destinationAddress property value. Destination IP address (of the network connection).
      Parameters:
      value - Value to set for the destinationAddress property.
    • setDestinationDomain

      public void setDestinationDomain(@Nullable String value)
      Sets the destinationDomain property value. Destination domain portion of the destination URL. (for example 'www.contoso.com').
      Parameters:
      value - Value to set for the destinationDomain property.
    • setDestinationLocation

      public void setDestinationLocation(@Nullable String value)
      Sets the destinationLocation property value. Location (by IP address mapping) associated with the destination of a network connection.
      Parameters:
      value - Value to set for the destinationLocation property.
    • setDestinationPort

      public void setDestinationPort(@Nullable String value)
      Sets the destinationPort property value. Destination port (of the network connection).
      Parameters:
      value - Value to set for the destinationPort property.
    • setDestinationUrl

      public void setDestinationUrl(@Nullable String value)
      Sets the destinationUrl property value. Network connection URL/URI string - excluding parameters. (for example 'www.contoso.com/products/default.html')
      Parameters:
      value - Value to set for the destinationUrl property.
    • setDirection

      public void setDirection(@Nullable ConnectionDirection value)
      Sets the direction property value. Network connection direction. Possible values are: unknown, inbound, outbound.
      Parameters:
      value - Value to set for the direction property.
    • setDomainRegisteredDateTime

      public void setDomainRegisteredDateTime(@Nullable OffsetDateTime value)
      Sets the domainRegisteredDateTime property value. Date when the destination domain was registered. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
      Parameters:
      value - Value to set for the domainRegisteredDateTime property.
    • setLocalDnsName

      public void setLocalDnsName(@Nullable String value)
      Sets the localDnsName property value. The local DNS name resolution as it appears in the host's local DNS cache (for example, in case the 'hosts' file was tampered with).
      Parameters:
      value - Value to set for the localDnsName property.
    • setNatDestinationAddress

      public void setNatDestinationAddress(@Nullable String value)
      Sets the natDestinationAddress property value. Network Address Translation destination IP address.
      Parameters:
      value - Value to set for the natDestinationAddress property.
    • setNatDestinationPort

      public void setNatDestinationPort(@Nullable String value)
      Sets the natDestinationPort property value. Network Address Translation destination port.
      Parameters:
      value - Value to set for the natDestinationPort property.
    • setNatSourceAddress

      public void setNatSourceAddress(@Nullable String value)
      Sets the natSourceAddress property value. Network Address Translation source IP address.
      Parameters:
      value - Value to set for the natSourceAddress property.
    • setNatSourcePort

      public void setNatSourcePort(@Nullable String value)
      Sets the natSourcePort property value. Network Address Translation source port.
      Parameters:
      value - Value to set for the natSourcePort property.
    • setOdataType

      public void setOdataType(@Nullable String value)
      Sets the @odata.type property value. The OdataType property
      Parameters:
      value - Value to set for the @odata.type property.
    • setProtocol

      public void setProtocol(@Nullable SecurityNetworkProtocol value)
      Sets the protocol property value. Network protocol. Possible values are: unknown, ip, icmp, igmp, ggp, ipv4, tcp, pup, udp, idp, ipv6, ipv6RoutingHeader, ipv6FragmentHeader, ipSecEncapsulatingSecurityPayload, ipSecAuthenticationHeader, icmpV6, ipv6NoNextHeader, ipv6DestinationOptions, nd, raw, ipx, spx, spxII.
      Parameters:
      value - Value to set for the protocol property.
    • setRiskScore

      public void setRiskScore(@Nullable String value)
      Sets the riskScore property value. Provider generated/calculated risk score of the network connection. Recommended value range of 0-1, which equates to a percentage.
      Parameters:
      value - Value to set for the riskScore property.
    • setSourceAddress

      public void setSourceAddress(@Nullable String value)
      Sets the sourceAddress property value. Source (i.e. origin) IP address (of the network connection).
      Parameters:
      value - Value to set for the sourceAddress property.
    • setSourceLocation

      public void setSourceLocation(@Nullable String value)
      Sets the sourceLocation property value. Location (by IP address mapping) associated with the source of a network connection.
      Parameters:
      value - Value to set for the sourceLocation property.
    • setSourcePort

      public void setSourcePort(@Nullable String value)
      Sets the sourcePort property value. Source (i.e. origin) IP port (of the network connection).
      Parameters:
      value - Value to set for the sourcePort property.
    • setStatus

      public void setStatus(@Nullable ConnectionStatus value)
      Sets the status property value. Network connection status. Possible values are: unknown, attempted, succeeded, blocked, failed.
      Parameters:
      value - Value to set for the status property.
    • setUrlParameters

      public void setUrlParameters(@Nullable String value)
      Sets the urlParameters property value. Parameters (suffix) of the destination URL.
      Parameters:
      value - Value to set for the urlParameters property.