Class PublishedPort
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.generativeaisandbox.model.PublishedPort
-
@Generated(value="OracleSDKGenerator", comments="API Version: 1.0") public final class PublishedPort extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelPublished 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 thePublishedPort.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 thePublishedPort.Builder, which maintain a set of all explicitly set fields calledPublishedPort.Builder.__explicitlySet__. ThehashCode()andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPublishedPort.Builder
-
Constructor Summary
Constructors Constructor Description PublishedPort(String key, String value)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublishedPort.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetKey()Key string.StringgetValue()Value string.inthashCode()PublishedPort.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
PublishedPort
@Deprecated @ConstructorProperties({"key","value"}) public PublishedPort(String key, String value)
Deprecated.
-
-
Method Detail
-
builder
public static PublishedPort.Builder builder()
Create a new builder.
-
toBuilder
public PublishedPort.Builder toBuilder()
-
getKey
public String getKey()
Key string.- Returns:
- the value
-
getValue
public String getValue()
Value string.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.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:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-