Interface GetMetricStreamResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudWatchResponse.Builder
,CopyableBuilder<GetMetricStreamResponse.Builder,
,GetMetricStreamResponse> SdkBuilder<GetMetricStreamResponse.Builder,
,GetMetricStreamResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetMetricStreamResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the metric stream.creationDate
(Instant creationDate) The date that the metric stream was created.excludeFilters
(Collection<MetricStreamFilter> excludeFilters) If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are not streamed by this metric stream.excludeFilters
(Consumer<MetricStreamFilter.Builder>... excludeFilters) If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are not streamed by this metric stream.excludeFilters
(MetricStreamFilter... excludeFilters) If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are not streamed by this metric stream.firehoseArn
(String firehoseArn) The ARN of the Amazon Kinesis Data Firehose delivery stream that is used by this metric stream.includeFilters
(Collection<MetricStreamFilter> includeFilters) If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are streamed by this metric stream.includeFilters
(Consumer<MetricStreamFilter.Builder>... includeFilters) If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are streamed by this metric stream.includeFilters
(MetricStreamFilter... includeFilters) If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are streamed by this metric stream.includeLinkedAccountsMetrics
(Boolean includeLinkedAccountsMetrics) If this istrue
and this metric stream is in a monitoring account, then the stream includes metrics from source accounts that the monitoring account is linked to.lastUpdateDate
(Instant lastUpdateDate) The date of the most recent update to the metric stream's configuration.The name of the metric stream.outputFormat
(String outputFormat) The output format for the stream.outputFormat
(MetricStreamOutputFormat outputFormat) The output format for the stream.The ARN of the IAM role that is used by this metric stream.The state of the metric stream.statisticsConfigurations
(Collection<MetricStreamStatisticsConfiguration> statisticsConfigurations) Each entry in this array displays information about one or more metrics that include additional statistics in the metric stream.statisticsConfigurations
(Consumer<MetricStreamStatisticsConfiguration.Builder>... statisticsConfigurations) Each entry in this array displays information about one or more metrics that include additional statistics in the metric stream.statisticsConfigurations
(MetricStreamStatisticsConfiguration... statisticsConfigurations) Each entry in this array displays information about one or more metrics that include additional statistics in the metric stream.Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
arn
The ARN of the metric stream.
- Parameters:
arn
- The ARN of the metric stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the metric stream.
- Parameters:
name
- The name of the metric stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeFilters
If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are streamed by this metric stream.
- Parameters:
includeFilters
- If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are streamed by this metric stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeFilters
If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are streamed by this metric stream.
- Parameters:
includeFilters
- If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are streamed by this metric stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeFilters
GetMetricStreamResponse.Builder includeFilters(Consumer<MetricStreamFilter.Builder>... includeFilters) If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are streamed by this metric stream.
This is a convenience method that creates an instance of theMetricStreamFilter.Builder
avoiding the need to create one manually viaMetricStreamFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toincludeFilters(List<MetricStreamFilter>)
.- Parameters:
includeFilters
- a consumer that will call methods onMetricStreamFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
excludeFilters
If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are not streamed by this metric stream. In this case, all other metric namespaces in the account are streamed by this metric stream.
- Parameters:
excludeFilters
- If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are not streamed by this metric stream. In this case, all other metric namespaces in the account are streamed by this metric stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeFilters
If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are not streamed by this metric stream. In this case, all other metric namespaces in the account are streamed by this metric stream.
- Parameters:
excludeFilters
- If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are not streamed by this metric stream. In this case, all other metric namespaces in the account are streamed by this metric stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeFilters
GetMetricStreamResponse.Builder excludeFilters(Consumer<MetricStreamFilter.Builder>... excludeFilters) If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are not streamed by this metric stream. In this case, all other metric namespaces in the account are streamed by this metric stream.
This is a convenience method that creates an instance of theMetricStreamFilter.Builder
avoiding the need to create one manually viaMetricStreamFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexcludeFilters(List<MetricStreamFilter>)
.- Parameters:
excludeFilters
- a consumer that will call methods onMetricStreamFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
firehoseArn
The ARN of the Amazon Kinesis Data Firehose delivery stream that is used by this metric stream.
- Parameters:
firehoseArn
- The ARN of the Amazon Kinesis Data Firehose delivery stream that is used by this metric stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The ARN of the IAM role that is used by this metric stream.
- Parameters:
roleArn
- The ARN of the IAM role that is used by this metric stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the metric stream. The possible values are
running
andstopped
.- Parameters:
state
- The state of the metric stream. The possible values arerunning
andstopped
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationDate
The date that the metric stream was created.
- Parameters:
creationDate
- The date that the metric stream was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdateDate
The date of the most recent update to the metric stream's configuration.
- Parameters:
lastUpdateDate
- The date of the most recent update to the metric stream's configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputFormat
The output format for the stream. Valid values are
json
,opentelemetry1.0
, andopentelemetry0.7
. For more information about metric stream output formats, see Metric streams output formats.- Parameters:
outputFormat
- The output format for the stream. Valid values arejson
,opentelemetry1.0
, andopentelemetry0.7
. For more information about metric stream output formats, see Metric streams output formats.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputFormat
The output format for the stream. Valid values are
json
,opentelemetry1.0
, andopentelemetry0.7
. For more information about metric stream output formats, see Metric streams output formats.- Parameters:
outputFormat
- The output format for the stream. Valid values arejson
,opentelemetry1.0
, andopentelemetry0.7
. For more information about metric stream output formats, see Metric streams output formats.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statisticsConfigurations
GetMetricStreamResponse.Builder statisticsConfigurations(Collection<MetricStreamStatisticsConfiguration> statisticsConfigurations) Each entry in this array displays information about one or more metrics that include additional statistics in the metric stream. For more information about the additional statistics, see CloudWatch statistics definitions.
- Parameters:
statisticsConfigurations
- Each entry in this array displays information about one or more metrics that include additional statistics in the metric stream. For more information about the additional statistics, see CloudWatch statistics definitions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statisticsConfigurations
GetMetricStreamResponse.Builder statisticsConfigurations(MetricStreamStatisticsConfiguration... statisticsConfigurations) Each entry in this array displays information about one or more metrics that include additional statistics in the metric stream. For more information about the additional statistics, see CloudWatch statistics definitions.
- Parameters:
statisticsConfigurations
- Each entry in this array displays information about one or more metrics that include additional statistics in the metric stream. For more information about the additional statistics, see CloudWatch statistics definitions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statisticsConfigurations
GetMetricStreamResponse.Builder statisticsConfigurations(Consumer<MetricStreamStatisticsConfiguration.Builder>... statisticsConfigurations) Each entry in this array displays information about one or more metrics that include additional statistics in the metric stream. For more information about the additional statistics, see CloudWatch statistics definitions.
This is a convenience method that creates an instance of theMetricStreamStatisticsConfiguration.Builder
avoiding the need to create one manually viaMetricStreamStatisticsConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatisticsConfigurations(List<MetricStreamStatisticsConfiguration>)
.- Parameters:
statisticsConfigurations
- a consumer that will call methods onMetricStreamStatisticsConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
includeLinkedAccountsMetrics
If this is
true
and this metric stream is in a monitoring account, then the stream includes metrics from source accounts that the monitoring account is linked to.- Parameters:
includeLinkedAccountsMetrics
- If this istrue
and this metric stream is in a monitoring account, then the stream includes metrics from source accounts that the monitoring account is linked to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-