Package com.oracle.bmc.datasafe.requests
Class CreateSecurityPolicyRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.requests.CreateSecurityPolicyRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<CreateSecurityPolicyRequest,CreateSecurityPolicyDetails>
- Enclosing class:
- CreateSecurityPolicyRequest
public static class CreateSecurityPolicyRequest.Builder extends Object implements BmcRequest.Builder<CreateSecurityPolicyRequest,CreateSecurityPolicyDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSecurityPolicyRequest.Builderbody$(CreateSecurityPolicyDetails body)Alternative setter for the body parameter.CreateSecurityPolicyRequestbuild()Build the instance of CreateSecurityPolicyRequest as configured by this builderCreateSecurityPolicyRequestbuildWithoutInvocationCallback()Build the instance of CreateSecurityPolicyRequest as configured by this builderCreateSecurityPolicyRequest.Buildercopy(CreateSecurityPolicyRequest o)Copy method to populate the builder with values from the given instance.CreateSecurityPolicyRequest.BuildercreateSecurityPolicyDetails(CreateSecurityPolicyDetails createSecurityPolicyDetails)Details of the security policy.CreateSecurityPolicyRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.CreateSecurityPolicyRequest.BuilderopcRequestId(String opcRequestId)Unique identifier for the request.CreateSecurityPolicyRequest.BuilderopcRetryToken(String opcRetryToken)A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.CreateSecurityPolicyRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
createSecurityPolicyDetails
public CreateSecurityPolicyRequest.Builder createSecurityPolicyDetails(CreateSecurityPolicyDetails createSecurityPolicyDetails)
Details of the security policy.- Parameters:
createSecurityPolicyDetails- the value to set- Returns:
- this builder instance
-
opcRetryToken
public CreateSecurityPolicyRequest.Builder opcRetryToken(String opcRetryToken)
A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
- Parameters:
opcRetryToken- the value to set- Returns:
- this builder instance
-
opcRequestId
public CreateSecurityPolicyRequest.Builder opcRequestId(String opcRequestId)
Unique identifier for the request.- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public CreateSecurityPolicyRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.- Parameters:
invocationCallback- the invocation callback to be set for the request- Returns:
- this builder instance
-
retryConfiguration
public CreateSecurityPolicyRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.- Parameters:
retryConfiguration- the retry configuration to be used for the request- Returns:
- this builder instance
-
copy
public CreateSecurityPolicyRequest.Builder copy(CreateSecurityPolicyRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<CreateSecurityPolicyRequest,CreateSecurityPolicyDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public CreateSecurityPolicyRequest build()
Build the instance of CreateSecurityPolicyRequest as configured by this builderNote that this method takes calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)into account, while the methodbuildWithoutInvocationCallback()does not.This is the preferred method to build an instance.
- Specified by:
buildin interfaceBmcRequest.Builder<CreateSecurityPolicyRequest,CreateSecurityPolicyDetails>- Returns:
- instance of CreateSecurityPolicyRequest
-
body$
public CreateSecurityPolicyRequest.Builder body$(CreateSecurityPolicyDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<CreateSecurityPolicyRequest,CreateSecurityPolicyDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public CreateSecurityPolicyRequest buildWithoutInvocationCallback()
Build the instance of CreateSecurityPolicyRequest as configured by this builderNote that this method does not take calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)into account, while the methodbuild()does- Returns:
- instance of CreateSecurityPolicyRequest
-
-