Interface GetSamplingTargetsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetSamplingTargetsResponse.Builder,,GetSamplingTargetsResponse> SdkBuilder<GetSamplingTargetsResponse.Builder,,GetSamplingTargetsResponse> SdkPojo,SdkResponse.Builder,XRayResponse.Builder
- Enclosing class:
GetSamplingTargetsResponse
-
Method Summary
Modifier and TypeMethodDescriptionlastRuleModification(Instant lastRuleModification) The last time a user changed the sampling rule configuration.samplingTargetDocuments(Collection<SamplingTargetDocument> samplingTargetDocuments) Updated rules that the service should use to sample requests.samplingTargetDocuments(Consumer<SamplingTargetDocument.Builder>... samplingTargetDocuments) Updated rules that the service should use to sample requests.samplingTargetDocuments(SamplingTargetDocument... samplingTargetDocuments) Updated rules that the service should use to sample requests.unprocessedStatistics(Collection<UnprocessedStatistics> unprocessedStatistics) Information about SamplingStatisticsDocument that X-Ray could not process.unprocessedStatistics(Consumer<UnprocessedStatistics.Builder>... unprocessedStatistics) Information about SamplingStatisticsDocument that X-Ray could not process.unprocessedStatistics(UnprocessedStatistics... unprocessedStatistics) Information about SamplingStatisticsDocument that X-Ray could not process.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.xray.model.XRayResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
samplingTargetDocuments
GetSamplingTargetsResponse.Builder samplingTargetDocuments(Collection<SamplingTargetDocument> samplingTargetDocuments) Updated rules that the service should use to sample requests.
- Parameters:
samplingTargetDocuments- Updated rules that the service should use to sample requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
samplingTargetDocuments
GetSamplingTargetsResponse.Builder samplingTargetDocuments(SamplingTargetDocument... samplingTargetDocuments) Updated rules that the service should use to sample requests.
- Parameters:
samplingTargetDocuments- Updated rules that the service should use to sample requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
samplingTargetDocuments
GetSamplingTargetsResponse.Builder samplingTargetDocuments(Consumer<SamplingTargetDocument.Builder>... samplingTargetDocuments) Updated rules that the service should use to sample requests.
This is a convenience method that creates an instance of theSamplingTargetDocument.Builderavoiding the need to create one manually viaSamplingTargetDocument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosamplingTargetDocuments(List<SamplingTargetDocument>).- Parameters:
samplingTargetDocuments- a consumer that will call methods onSamplingTargetDocument.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastRuleModification
The last time a user changed the sampling rule configuration. If the sampling rule configuration changed since the service last retrieved it, the service should call GetSamplingRules to get the latest version.
- Parameters:
lastRuleModification- The last time a user changed the sampling rule configuration. If the sampling rule configuration changed since the service last retrieved it, the service should call GetSamplingRules to get the latest version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unprocessedStatistics
GetSamplingTargetsResponse.Builder unprocessedStatistics(Collection<UnprocessedStatistics> unprocessedStatistics) Information about SamplingStatisticsDocument that X-Ray could not process.
- Parameters:
unprocessedStatistics- Information about SamplingStatisticsDocument that X-Ray could not process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unprocessedStatistics
GetSamplingTargetsResponse.Builder unprocessedStatistics(UnprocessedStatistics... unprocessedStatistics) Information about SamplingStatisticsDocument that X-Ray could not process.
- Parameters:
unprocessedStatistics- Information about SamplingStatisticsDocument that X-Ray could not process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unprocessedStatistics
GetSamplingTargetsResponse.Builder unprocessedStatistics(Consumer<UnprocessedStatistics.Builder>... unprocessedStatistics) Information about SamplingStatisticsDocument that X-Ray could not process.
This is a convenience method that creates an instance of theUnprocessedStatistics.Builderavoiding the need to create one manually viaUnprocessedStatistics.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tounprocessedStatistics(List<UnprocessedStatistics>).- Parameters:
unprocessedStatistics- a consumer that will call methods onUnprocessedStatistics.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-