public static class HttpRedirect.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HttpRedirect |
build() |
HttpRedirect.Builder |
compartmentId(String compartmentId)
The OCID of the
HTTP Redirect’s compartment.
|
HttpRedirect.Builder |
copy(HttpRedirect model) |
HttpRedirect.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
HttpRedirect.Builder |
displayName(String displayName)
The user-friendly name of the HTTP Redirect.
|
HttpRedirect.Builder |
domain(String domain)
The domain from which traffic will be redirected.
|
HttpRedirect.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
HttpRedirect.Builder |
id(String id)
The OCID of the
HTTP Redirect.
|
HttpRedirect.Builder |
lifecycleState(LifecycleStates lifecycleState)
The current lifecycle state of the HTTP Redirect.
|
HttpRedirect.Builder |
responseCode(Integer responseCode)
The response code returned for the redirect to the client.
|
HttpRedirect.Builder |
target(HttpRedirectTarget target)
The redirect target object including all the redirect data.
|
HttpRedirect.Builder |
timeCreated(Date timeCreated)
The date and time the policy was created, expressed in RFC 3339 timestamp format.
|
public HttpRedirect.Builder id(String id)
The OCID of the HTTP Redirect.
id
- the value to setpublic HttpRedirect.Builder compartmentId(String compartmentId)
The OCID of the HTTP Redirect’s compartment.
compartmentId
- the value to setpublic HttpRedirect.Builder displayName(String displayName)
The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
displayName
- the value to setpublic HttpRedirect.Builder domain(String domain)
The domain from which traffic will be redirected.
domain
- the value to setpublic HttpRedirect.Builder target(HttpRedirectTarget target)
The redirect target object including all the redirect data.
target
- the value to setpublic HttpRedirect.Builder responseCode(Integer responseCode)
The response code returned for the redirect to the client. For more information, see RFC 7231.
responseCode
- the value to setpublic HttpRedirect.Builder timeCreated(Date timeCreated)
The date and time the policy was created, expressed in RFC 3339 timestamp format.
timeCreated
- the value to setpublic HttpRedirect.Builder lifecycleState(LifecycleStates lifecycleState)
The current lifecycle state of the HTTP Redirect.
lifecycleState
- the value to setpublic HttpRedirect.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
freeformTags
- the value to setpublic HttpRedirect.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
definedTags
- the value to setpublic HttpRedirect build()
public HttpRedirect.Builder copy(HttpRedirect model)
Copyright © 2016–2025. All rights reserved.