Class SandboxHttpHeaderCredentialInjectionRule
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.generativeai.model.SandboxCredentialInjectionRule
-
- com.oracle.bmc.generativeai.model.SandboxHttpHeaderCredentialInjectionRule
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20231130") public final class SandboxHttpHeaderCredentialInjectionRule extends SandboxCredentialInjectionRuleAn HTTP_HEADER rule that binds one exact HTTPS host on port 443 to exactly one injected HTTP request header and one OCI Vault secret.Redirects to another host do not carry the credential. Only properties defined for this rule type are supported.
Note: Objects should always be created or deserialized using theSandboxHttpHeaderCredentialInjectionRule.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 theSandboxHttpHeaderCredentialInjectionRule.Builder, which maintain a set of all explicitly set fields calledSandboxHttpHeaderCredentialInjectionRule.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 classSandboxHttpHeaderCredentialInjectionRule.Builder-
Nested classes/interfaces inherited from class com.oracle.bmc.generativeai.model.SandboxCredentialInjectionRule
SandboxCredentialInjectionRule.RuleType
-
-
Constructor Summary
Constructors Constructor Description SandboxHttpHeaderCredentialInjectionRule(String host, List<SandboxCredentialInjectionHeader> injectHeaders)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SandboxHttpHeaderCredentialInjectionRule.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetHost()The normalized ASCII DNS hostname that selects the rule.List<SandboxCredentialInjectionHeader>getInjectHeaders()The single HTTP request header that the service replaces with the credential value.inthashCode()SandboxHttpHeaderCredentialInjectionRule.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
SandboxHttpHeaderCredentialInjectionRule
@Deprecated public SandboxHttpHeaderCredentialInjectionRule(String host, List<SandboxCredentialInjectionHeader> injectHeaders)
Deprecated.
-
-
Method Detail
-
builder
public static SandboxHttpHeaderCredentialInjectionRule.Builder builder()
Create a new builder.
-
toBuilder
public SandboxHttpHeaderCredentialInjectionRule.Builder toBuilder()
-
getHost
public String getHost()
The normalized ASCII DNS hostname that selects the rule.This value must be the exact regional Generative AI Responses endpoint hostname for the Project’s region and realm. Do not include a scheme, path, port, wildcard, trailing dot, or IP literal. Brokerage uses HTTPS on port 443.
- Returns:
- the value
-
getInjectHeaders
public List<SandboxCredentialInjectionHeader> getInjectHeaders()
The single HTTP request header that the service replaces with the credential value.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classSandboxCredentialInjectionRule
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classSandboxCredentialInjectionRule- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classSandboxCredentialInjectionRule
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSandboxCredentialInjectionRule
-
-