Package com.oracle.bmc.waas.model
Class HttpRedirect.Builder
- java.lang.Object
-
- com.oracle.bmc.waas.model.HttpRedirect.Builder
-
- Enclosing class:
- HttpRedirect
public static class HttpRedirect.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRedirectbuild()HttpRedirect.BuildercompartmentId(String compartmentId)The OCID of the HTTP Redirect’s compartment.HttpRedirect.Buildercopy(HttpRedirect model)HttpRedirect.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.HttpRedirect.BuilderdisplayName(String displayName)The user-friendly name of the HTTP Redirect.HttpRedirect.Builderdomain(String domain)The domain from which traffic will be redirected.HttpRedirect.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.HttpRedirect.Builderid(String id)The OCID of the HTTP Redirect.HttpRedirect.BuilderlifecycleState(LifecycleStates lifecycleState)The current lifecycle state of the HTTP Redirect.HttpRedirect.BuilderresponseCode(Integer responseCode)The response code returned for the redirect to the client.HttpRedirect.Buildertarget(HttpRedirectTarget target)The redirect target object including all the redirect data.HttpRedirect.BuildertimeCreated(Date timeCreated)The date and time the policy was created, expressed in RFC 3339 timestamp format.
-
-
-
Method Detail
-
id
public HttpRedirect.Builder id(String id)
The OCID of the HTTP Redirect.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public HttpRedirect.Builder compartmentId(String compartmentId)
The OCID of the HTTP Redirect’s compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
displayName
public 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.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
domain
public HttpRedirect.Builder domain(String domain)
The domain from which traffic will be redirected.- Parameters:
domain- the value to set- Returns:
- this builder
-
target
public HttpRedirect.Builder target(HttpRedirectTarget target)
The redirect target object including all the redirect data.- Parameters:
target- the value to set- Returns:
- this builder
-
responseCode
public HttpRedirect.Builder responseCode(Integer responseCode)
The response code returned for the redirect to the client.For more information, see RFC 7231.
- Parameters:
responseCode- the value to set- Returns:
- this builder
-
timeCreated
public HttpRedirect.Builder timeCreated(Date timeCreated)
The date and time the policy was created, expressed in RFC 3339 timestamp format.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
lifecycleState
public HttpRedirect.Builder lifecycleState(LifecycleStates lifecycleState)
The current lifecycle state of the HTTP Redirect.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
freeformTags
public 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"}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public 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"}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
build
public HttpRedirect build()
-
copy
public HttpRedirect.Builder copy(HttpRedirect model)
-
-