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 SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll 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- 
postMetricDataDetailspublic 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
 
 - 
opcRequestIdpublic 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
 
 - 
contentEncodingpublic 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
 
 - 
invocationCallbackpublic 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
 
 - 
retryConfigurationpublic 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
 
 - 
copypublic PostMetricDataRequest.Builder copy(PostMetricDataRequest o) Copy method to populate the builder with values from the given instance.- Specified by:
- copyin interface- BmcRequest.Builder<PostMetricDataRequest,PostMetricDataDetails>
- Parameters:
- o- other request from which to copy values
- Returns:
- this builder instance
 
 - 
buildpublic 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 interface- BmcRequest.Builder<PostMetricDataRequest,PostMetricDataDetails>
- Returns:
- instance of PostMetricDataRequest
 
 - 
body$public PostMetricDataRequest.Builder body$(PostMetricDataDetails body) Alternative setter for the body parameter.- Specified by:
- body$in interface- BmcRequest.Builder<PostMetricDataRequest,PostMetricDataDetails>
- Parameters:
- body- the body parameter
- Returns:
- this builder instance
 
 - 
buildWithoutInvocationCallbackpublic 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
 
 
- 
 
-