/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies a metrics configuration for the CloudWatch request metrics
* (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're
* updating an existing metrics configuration, note that this is a full replacement
* of the existing metrics configuration. If you don't include the elements you
* want to keep, they are erased. For more information, see PutBucketMetricsConfiguration.See
* Also:
AWS
* API Reference
The ID used to identify the metrics configuration.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID used to identify the metrics configuration.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID used to identify the metrics configuration.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID used to identify the metrics configuration.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID used to identify the metrics configuration.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID used to identify the metrics configuration.
*/ inline MetricsConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID used to identify the metrics configuration.
*/ inline MetricsConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID used to identify the metrics configuration.
*/ inline MetricsConfiguration& WithId(const char* value) { SetId(value); return *this;} /** *Specifies a metrics configuration filter. The metrics configuration will only * include objects that meet the filter's criteria. A filter must be a prefix, an * object tag, an access point ARN, or a conjunction (MetricsAndOperator).
*/ inline const MetricsFilter& GetFilter() const{ return m_filter; } /** *Specifies a metrics configuration filter. The metrics configuration will only * include objects that meet the filter's criteria. A filter must be a prefix, an * object tag, an access point ARN, or a conjunction (MetricsAndOperator).
*/ inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } /** *Specifies a metrics configuration filter. The metrics configuration will only * include objects that meet the filter's criteria. A filter must be a prefix, an * object tag, an access point ARN, or a conjunction (MetricsAndOperator).
*/ inline void SetFilter(const MetricsFilter& value) { m_filterHasBeenSet = true; m_filter = value; } /** *Specifies a metrics configuration filter. The metrics configuration will only * include objects that meet the filter's criteria. A filter must be a prefix, an * object tag, an access point ARN, or a conjunction (MetricsAndOperator).
*/ inline void SetFilter(MetricsFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } /** *Specifies a metrics configuration filter. The metrics configuration will only * include objects that meet the filter's criteria. A filter must be a prefix, an * object tag, an access point ARN, or a conjunction (MetricsAndOperator).
*/ inline MetricsConfiguration& WithFilter(const MetricsFilter& value) { SetFilter(value); return *this;} /** *Specifies a metrics configuration filter. The metrics configuration will only * include objects that meet the filter's criteria. A filter must be a prefix, an * object tag, an access point ARN, or a conjunction (MetricsAndOperator).
*/ inline MetricsConfiguration& WithFilter(MetricsFilter&& value) { SetFilter(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet; MetricsFilter m_filter; bool m_filterHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws