Class PostMetricDataRequest.Builder
- java.lang.Object
 - 
- com.oracle.bmc.monitoring.requests.PostMetricDataRequest.Builder
 
 
- 
- All Implemented Interfaces:
 BmcRequest.Builder<PostMetricDataRequest,PostMetricDataDetails>
- Enclosing class:
 - PostMetricDataRequest
 
public static class PostMetricDataRequest.Builder extends Object implements BmcRequest.Builder<PostMetricDataRequest,PostMetricDataDetails>
 
- 
- 
Constructor Summary
Constructors Constructor Description Builder() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PostMetricDataRequest.Builderbody$(PostMetricDataDetails body)Alternative setter for the body parameter.PostMetricDataRequestbuild()Build the instance of PostMetricDataRequest as configured by this builderPostMetricDataRequestbuildWithoutInvocationCallback()Build the instance of PostMetricDataRequest as configured by this builderPostMetricDataRequest.BuildercontentEncoding(String contentEncoding)The optional Content-Encoding header that defines the content encodings that were applied to the payload.PostMetricDataRequest.Buildercopy(PostMetricDataRequest o)Copy method to populate the builder with values from the given instance.PostMetricDataRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.PostMetricDataRequest.BuilderopcRequestId(String opcRequestId)Customer part of the request identifier token.PostMetricDataRequest.BuilderpostMetricDataDetails(PostMetricDataDetails postMetricDataDetails)An array of metric objects containing raw metric data points to be posted to the Monitoring service.PostMetricDataRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built. 
 - 
 
- 
- 
Method Detail
- 
postMetricDataDetails
public PostMetricDataRequest.Builder postMetricDataDetails(PostMetricDataDetails postMetricDataDetails)
An array of metric objects containing raw metric data points to be posted to the Monitoring service.- Parameters:
 postMetricDataDetails- the value to set- Returns:
 - this builder instance
 
 
- 
opcRequestId
public PostMetricDataRequest.Builder opcRequestId(String opcRequestId)
Customer part of the request identifier token.If you need to contact Oracle about a particular request, please provide the complete request ID.
- Parameters:
 opcRequestId- the value to set- Returns:
 - this builder instance
 
 
- 
contentEncoding
public PostMetricDataRequest.Builder contentEncoding(String contentEncoding)
The optional Content-Encoding header that defines the content encodings that were applied to the payload.- Parameters:
 contentEncoding- the value to set- Returns:
 - this builder instance
 
 
- 
invocationCallback
public PostMetricDataRequest.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 PostMetricDataRequest.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 PostMetricDataRequest.Builder copy(PostMetricDataRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
 copyin interfaceBmcRequest.Builder<PostMetricDataRequest,PostMetricDataDetails>- Parameters:
 o- other request from which to copy values- Returns:
 - this builder instance
 
 
- 
build
public PostMetricDataRequest build()
Build the instance of PostMetricDataRequest 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<PostMetricDataRequest,PostMetricDataDetails>- Returns:
 - instance of PostMetricDataRequest
 
 
- 
body$
public PostMetricDataRequest.Builder body$(PostMetricDataDetails body)
Alternative setter for the body parameter.- Specified by:
 body$in interfaceBmcRequest.Builder<PostMetricDataRequest,PostMetricDataDetails>- Parameters:
 body- the body parameter- Returns:
 - this builder instance
 
 
- 
buildWithoutInvocationCallback
public PostMetricDataRequest buildWithoutInvocationCallback()
Build the instance of PostMetricDataRequest 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 PostMetricDataRequest
 
 
 - 
 
 -