Class PublishedPort


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 1.0")
    public final class PublishedPort
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    Published port key/value pair.

    Requests to the published URL may supply X-App-Token with the raw application token, without a Bearer prefix. After the sandbox’s access policy succeeds, the proxy builds the upstream Authorization header as Bearer followed by the unchanged token and removes X-App-Token. This applies to HTTP, SSE, and WebSocket opening handshakes, and does not replace required OCI authentication. Exactly one nonempty printable ASCII token of at most 8192 bytes is accepted; whitespace, commas, control characters, and duplicate values are rejected with HTTP 400. Both header names must be treated as sensitive credentials.
    Note: Objects should always be created or deserialized using the PublishedPort.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the PublishedPort.Builder, which maintain a set of all explicitly set fields called PublishedPort.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).

    • Method Detail

      • getKey

        public String getKey()
        Key string.
        Returns:
        the value
      • getValue

        public String getValue()
        Value string.
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel