Interface GetMetricDataResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetMetricDataResponse.Builder,,GetMetricDataResponse> QueryDataPlaneResponse.Builder,SdkBuilder<GetMetricDataResponse.Builder,,GetMetricDataResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetMetricDataResponse
@Mutable
@NotThreadSafe
public static interface GetMetricDataResponse.Builder
extends QueryDataPlaneResponse.Builder, SdkPojo, CopyableBuilder<GetMetricDataResponse.Builder,GetMetricDataResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmessages(Collection<MessageData> messages) Sets the value of the Messages property for this object.messages(Consumer<MessageData.Builder>... messages) Sets the value of the Messages property for this object.messages(MessageData... messages) Sets the value of the Messages property for this object.metricDataResults(Collection<MetricDataResult> metricDataResults) Sets the value of the MetricDataResults property for this object.metricDataResults(Consumer<MetricDataResult.Builder>... metricDataResults) Sets the value of the MetricDataResults property for this object.metricDataResults(MetricDataResult... metricDataResults) Sets the value of the MetricDataResults property for this object.Sets the value of the NextToken property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.querydataplane.model.QueryDataPlaneResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
metricDataResults
Sets the value of the MetricDataResults property for this object.- Parameters:
metricDataResults- The new value for the MetricDataResults property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDataResults
Sets the value of the MetricDataResults property for this object.- Parameters:
metricDataResults- The new value for the MetricDataResults property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDataResults
GetMetricDataResponse.Builder metricDataResults(Consumer<MetricDataResult.Builder>... metricDataResults) Sets the value of the MetricDataResults property for this object. This is a convenience method that creates an instance of theMetricDataResult.Builderavoiding the need to create one manually viaMetricDataResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricDataResults(List<MetricDataResult>).- Parameters:
metricDataResults- a consumer that will call methods onMetricDataResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Sets the value of the NextToken property for this object.- Parameters:
nextToken- The new value for the NextToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
Sets the value of the Messages property for this object.- Parameters:
messages- The new value for the Messages property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
Sets the value of the Messages property for this object.- Parameters:
messages- The new value for the Messages property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
Sets the value of the Messages property for this object. This is a convenience method that creates an instance of theMessageData.Builderavoiding the need to create one manually viaMessageData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomessages(List<MessageData>).- Parameters:
messages- a consumer that will call methods onMessageData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-