Class PutAttachmentRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.cims.requests.PutAttachmentRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<PutAttachmentRequest,InputStream>
- Enclosing class:
- PutAttachmentRequest
public static class PutAttachmentRequest.Builder extends Object implements BmcRequest.Builder<PutAttachmentRequest,InputStream>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutAttachmentRequest.BuilderattachmentName(String attachmentName)The name of the file to attach to the support request.PutAttachmentRequest.Builderbearertoken(String bearertoken)Token that provided by multi cloud provider, which help to validate the email.PutAttachmentRequest.Builderbearertokentype(String bearertokentype)Token type that determine which cloud provider the request come from.PutAttachmentRequest.Builderbody$(InputStream body)Alternative setter for the body parameter.PutAttachmentRequestbuild()Build the instance of PutAttachmentRequest as configured by this builderPutAttachmentRequestbuildWithoutInvocationCallback()Build the instance of PutAttachmentRequest as configured by this builderPutAttachmentRequest.BuildercompartmentId(String compartmentId)The OCID of the tenancy.PutAttachmentRequest.Buildercopy(PutAttachmentRequest o)Copy method to populate the builder with values from the given instance.PutAttachmentRequest.Buildercsi(String csi)The Customer Support Identifier (CSI) number associated with the support account.PutAttachmentRequest.Builderdomainid(String domainid)The OCID of identity domain.PutAttachmentRequest.Builderhomeregion(String homeregion)The region of the tenancy.PutAttachmentRequest.Builderidtoken(String idtoken)IdToken that provided by multi cloud provider, which help to validate the email.PutAttachmentRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.PutAttachmentRequest.BuilderincidentKey(String incidentKey)Unique identifier for the support request.PutAttachmentRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.PutAttachmentRequest.BuilderisRestrictedFlag(Boolean isRestrictedFlag)Set to true when the attachment contains personal information (PI) or protected health information (PHI).PutAttachmentRequest.Builderocid(String ocid)User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account.PutAttachmentRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.PutAttachmentRequest.Builderproblemtype(String problemtype)The kind of support request.PutAttachmentRequest.BuilderputAttachmentDetails(InputStream putAttachmentDetails)File to be uploaded as attachment to the Service Request.PutAttachmentRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
putAttachmentDetails
public PutAttachmentRequest.Builder putAttachmentDetails(InputStream putAttachmentDetails)
File to be uploaded as attachment to the Service Request.- Parameters:
putAttachmentDetails- the value to set- Returns:
- this builder instance
-
incidentKey
public PutAttachmentRequest.Builder incidentKey(String incidentKey)
Unique identifier for the support request.- Parameters:
incidentKey- the value to set- Returns:
- this builder instance
-
attachmentName
public PutAttachmentRequest.Builder attachmentName(String attachmentName)
The name of the file to attach to the support request.Avoid entering confidential information.
- Parameters:
attachmentName- the value to set- Returns:
- this builder instance
-
compartmentId
public PutAttachmentRequest.Builder compartmentId(String compartmentId)
The OCID of the tenancy.- Parameters:
compartmentId- the value to set- Returns:
- this builder instance
-
isRestrictedFlag
public PutAttachmentRequest.Builder isRestrictedFlag(Boolean isRestrictedFlag)
Set to true when the attachment contains personal information (PI) or protected health information (PHI).- Parameters:
isRestrictedFlag- the value to set- Returns:
- this builder instance
-
csi
public PutAttachmentRequest.Builder csi(String csi)
The Customer Support Identifier (CSI) number associated with the support account.The CSI is optional for all support request types.
- Parameters:
csi- the value to set- Returns:
- this builder instance
-
opcRequestId
public PutAttachmentRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID.
- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
ocid
public PutAttachmentRequest.Builder ocid(String ocid)
User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account.User OCID is mandatory for OCI Users and optional for Multicloud users.
- Parameters:
ocid- the value to set- Returns:
- this builder instance
-
ifMatch
public PutAttachmentRequest.Builder ifMatch(String ifMatch)
For optimistic concurrency control.In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
- Parameters:
ifMatch- the value to set- Returns:
- this builder instance
-
homeregion
public PutAttachmentRequest.Builder homeregion(String homeregion)
The region of the tenancy.- Parameters:
homeregion- the value to set- Returns:
- this builder instance
-
problemtype
public PutAttachmentRequest.Builder problemtype(String problemtype)
The kind of support request.- Parameters:
problemtype- the value to set- Returns:
- this builder instance
-
bearertokentype
public PutAttachmentRequest.Builder bearertokentype(String bearertokentype)
Token type that determine which cloud provider the request come from.- Parameters:
bearertokentype- the value to set- Returns:
- this builder instance
-
bearertoken
public PutAttachmentRequest.Builder bearertoken(String bearertoken)
Token that provided by multi cloud provider, which help to validate the email.- Parameters:
bearertoken- the value to set- Returns:
- this builder instance
-
idtoken
public PutAttachmentRequest.Builder idtoken(String idtoken)
IdToken that provided by multi cloud provider, which help to validate the email.- Parameters:
idtoken- the value to set- Returns:
- this builder instance
-
domainid
public PutAttachmentRequest.Builder domainid(String domainid)
The OCID of identity domain.DomainID is mandatory if the user is part of Non Default Identity domain.
- Parameters:
domainid- the value to set- Returns:
- this builder instance
-
invocationCallback
public PutAttachmentRequest.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 PutAttachmentRequest.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 PutAttachmentRequest.Builder copy(PutAttachmentRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<PutAttachmentRequest,InputStream>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public PutAttachmentRequest build()
Build the instance of PutAttachmentRequest 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<PutAttachmentRequest,InputStream>- Returns:
- instance of PutAttachmentRequest
-
body$
public PutAttachmentRequest.Builder body$(InputStream body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<PutAttachmentRequest,InputStream>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public PutAttachmentRequest buildWithoutInvocationCallback()
Build the instance of PutAttachmentRequest 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 PutAttachmentRequest
-
-