diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/model/LoggingEnabled.h | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/model/LoggingEnabled.h')
-rw-r--r-- | contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/model/LoggingEnabled.h | 428 |
1 files changed, 214 insertions, 214 deletions
diff --git a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/model/LoggingEnabled.h b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/model/LoggingEnabled.h index ba8a01a843..444fbf49f0 100644 --- a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/model/LoggingEnabled.h +++ b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/model/LoggingEnabled.h @@ -1,238 +1,238 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include <aws/s3/S3_EXPORTS.h> -#include <aws/core/utils/memory/stl/AWSString.h> -#include <aws/core/utils/memory/stl/AWSVector.h> -#include <aws/s3/model/TargetGrant.h> -#include <utility> - -namespace Aws -{ -namespace Utils -{ -namespace Xml -{ - class XmlNode; -} // namespace Xml -} // namespace Utils -namespace S3 -{ -namespace Model -{ - - /** - * <p>Describes where logs are stored and the prefix that Amazon S3 assigns to all - * log object keys for a bucket. For more information, see <a - * href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlogging.html">PUT - * Bucket logging</a> in the <i>Amazon Simple Storage Service API - * Reference</i>.</p><p><h3>See Also:</h3> <a - * href="http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LoggingEnabled">AWS - * API Reference</a></p> - */ - class AWS_S3_API LoggingEnabled - { - public: - LoggingEnabled(); - LoggingEnabled(const Aws::Utils::Xml::XmlNode& xmlNode); - LoggingEnabled& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); - - void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; - - - /** - * <p>Specifies the bucket where you want Amazon S3 to store server access logs. - * You can have your logs delivered to any bucket that you own, including the same - * bucket that is being logged. You can also configure multiple buckets to deliver - * their logs to the same target bucket. In this case, you should choose a - * different <code>TargetPrefix</code> for each source bucket so that the delivered - * log files can be distinguished by key.</p> - */ - inline const Aws::String& GetTargetBucket() const{ return m_targetBucket; } - - /** - * <p>Specifies the bucket where you want Amazon S3 to store server access logs. - * You can have your logs delivered to any bucket that you own, including the same - * bucket that is being logged. You can also configure multiple buckets to deliver - * their logs to the same target bucket. In this case, you should choose a - * different <code>TargetPrefix</code> for each source bucket so that the delivered - * log files can be distinguished by key.</p> - */ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include <aws/s3/S3_EXPORTS.h> +#include <aws/core/utils/memory/stl/AWSString.h> +#include <aws/core/utils/memory/stl/AWSVector.h> +#include <aws/s3/model/TargetGrant.h> +#include <utility> + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace S3 +{ +namespace Model +{ + + /** + * <p>Describes where logs are stored and the prefix that Amazon S3 assigns to all + * log object keys for a bucket. For more information, see <a + * href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlogging.html">PUT + * Bucket logging</a> in the <i>Amazon Simple Storage Service API + * Reference</i>.</p><p><h3>See Also:</h3> <a + * href="http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LoggingEnabled">AWS + * API Reference</a></p> + */ + class AWS_S3_API LoggingEnabled + { + public: + LoggingEnabled(); + LoggingEnabled(const Aws::Utils::Xml::XmlNode& xmlNode); + LoggingEnabled& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; + + + /** + * <p>Specifies the bucket where you want Amazon S3 to store server access logs. + * You can have your logs delivered to any bucket that you own, including the same + * bucket that is being logged. You can also configure multiple buckets to deliver + * their logs to the same target bucket. In this case, you should choose a + * different <code>TargetPrefix</code> for each source bucket so that the delivered + * log files can be distinguished by key.</p> + */ + inline const Aws::String& GetTargetBucket() const{ return m_targetBucket; } + + /** + * <p>Specifies the bucket where you want Amazon S3 to store server access logs. + * You can have your logs delivered to any bucket that you own, including the same + * bucket that is being logged. You can also configure multiple buckets to deliver + * their logs to the same target bucket. In this case, you should choose a + * different <code>TargetPrefix</code> for each source bucket so that the delivered + * log files can be distinguished by key.</p> + */ inline bool TargetBucketHasBeenSet() const { return m_targetBucketHasBeenSet; } /** * <p>Specifies the bucket where you want Amazon S3 to store server access logs. * You can have your logs delivered to any bucket that you own, including the same * bucket that is being logged. You can also configure multiple buckets to deliver - * their logs to the same target bucket. In this case, you should choose a - * different <code>TargetPrefix</code> for each source bucket so that the delivered - * log files can be distinguished by key.</p> - */ - inline void SetTargetBucket(const Aws::String& value) { m_targetBucketHasBeenSet = true; m_targetBucket = value; } - - /** - * <p>Specifies the bucket where you want Amazon S3 to store server access logs. - * You can have your logs delivered to any bucket that you own, including the same - * bucket that is being logged. You can also configure multiple buckets to deliver - * their logs to the same target bucket. In this case, you should choose a - * different <code>TargetPrefix</code> for each source bucket so that the delivered - * log files can be distinguished by key.</p> - */ - inline void SetTargetBucket(Aws::String&& value) { m_targetBucketHasBeenSet = true; m_targetBucket = std::move(value); } - - /** - * <p>Specifies the bucket where you want Amazon S3 to store server access logs. - * You can have your logs delivered to any bucket that you own, including the same - * bucket that is being logged. You can also configure multiple buckets to deliver - * their logs to the same target bucket. In this case, you should choose a - * different <code>TargetPrefix</code> for each source bucket so that the delivered - * log files can be distinguished by key.</p> - */ - inline void SetTargetBucket(const char* value) { m_targetBucketHasBeenSet = true; m_targetBucket.assign(value); } - - /** - * <p>Specifies the bucket where you want Amazon S3 to store server access logs. - * You can have your logs delivered to any bucket that you own, including the same - * bucket that is being logged. You can also configure multiple buckets to deliver - * their logs to the same target bucket. In this case, you should choose a - * different <code>TargetPrefix</code> for each source bucket so that the delivered - * log files can be distinguished by key.</p> - */ - inline LoggingEnabled& WithTargetBucket(const Aws::String& value) { SetTargetBucket(value); return *this;} - - /** - * <p>Specifies the bucket where you want Amazon S3 to store server access logs. - * You can have your logs delivered to any bucket that you own, including the same - * bucket that is being logged. You can also configure multiple buckets to deliver - * their logs to the same target bucket. In this case, you should choose a - * different <code>TargetPrefix</code> for each source bucket so that the delivered - * log files can be distinguished by key.</p> - */ - inline LoggingEnabled& WithTargetBucket(Aws::String&& value) { SetTargetBucket(std::move(value)); return *this;} - - /** - * <p>Specifies the bucket where you want Amazon S3 to store server access logs. - * You can have your logs delivered to any bucket that you own, including the same - * bucket that is being logged. You can also configure multiple buckets to deliver - * their logs to the same target bucket. In this case, you should choose a - * different <code>TargetPrefix</code> for each source bucket so that the delivered - * log files can be distinguished by key.</p> - */ - inline LoggingEnabled& WithTargetBucket(const char* value) { SetTargetBucket(value); return *this;} - - - /** - * <p>Container for granting information.</p> - */ - inline const Aws::Vector<TargetGrant>& GetTargetGrants() const{ return m_targetGrants; } - - /** - * <p>Container for granting information.</p> + * their logs to the same target bucket. In this case, you should choose a + * different <code>TargetPrefix</code> for each source bucket so that the delivered + * log files can be distinguished by key.</p> + */ + inline void SetTargetBucket(const Aws::String& value) { m_targetBucketHasBeenSet = true; m_targetBucket = value; } + + /** + * <p>Specifies the bucket where you want Amazon S3 to store server access logs. + * You can have your logs delivered to any bucket that you own, including the same + * bucket that is being logged. You can also configure multiple buckets to deliver + * their logs to the same target bucket. In this case, you should choose a + * different <code>TargetPrefix</code> for each source bucket so that the delivered + * log files can be distinguished by key.</p> + */ + inline void SetTargetBucket(Aws::String&& value) { m_targetBucketHasBeenSet = true; m_targetBucket = std::move(value); } + + /** + * <p>Specifies the bucket where you want Amazon S3 to store server access logs. + * You can have your logs delivered to any bucket that you own, including the same + * bucket that is being logged. You can also configure multiple buckets to deliver + * their logs to the same target bucket. In this case, you should choose a + * different <code>TargetPrefix</code> for each source bucket so that the delivered + * log files can be distinguished by key.</p> + */ + inline void SetTargetBucket(const char* value) { m_targetBucketHasBeenSet = true; m_targetBucket.assign(value); } + + /** + * <p>Specifies the bucket where you want Amazon S3 to store server access logs. + * You can have your logs delivered to any bucket that you own, including the same + * bucket that is being logged. You can also configure multiple buckets to deliver + * their logs to the same target bucket. In this case, you should choose a + * different <code>TargetPrefix</code> for each source bucket so that the delivered + * log files can be distinguished by key.</p> + */ + inline LoggingEnabled& WithTargetBucket(const Aws::String& value) { SetTargetBucket(value); return *this;} + + /** + * <p>Specifies the bucket where you want Amazon S3 to store server access logs. + * You can have your logs delivered to any bucket that you own, including the same + * bucket that is being logged. You can also configure multiple buckets to deliver + * their logs to the same target bucket. In this case, you should choose a + * different <code>TargetPrefix</code> for each source bucket so that the delivered + * log files can be distinguished by key.</p> + */ + inline LoggingEnabled& WithTargetBucket(Aws::String&& value) { SetTargetBucket(std::move(value)); return *this;} + + /** + * <p>Specifies the bucket where you want Amazon S3 to store server access logs. + * You can have your logs delivered to any bucket that you own, including the same + * bucket that is being logged. You can also configure multiple buckets to deliver + * their logs to the same target bucket. In this case, you should choose a + * different <code>TargetPrefix</code> for each source bucket so that the delivered + * log files can be distinguished by key.</p> + */ + inline LoggingEnabled& WithTargetBucket(const char* value) { SetTargetBucket(value); return *this;} + + + /** + * <p>Container for granting information.</p> + */ + inline const Aws::Vector<TargetGrant>& GetTargetGrants() const{ return m_targetGrants; } + + /** + * <p>Container for granting information.</p> */ inline bool TargetGrantsHasBeenSet() const { return m_targetGrantsHasBeenSet; } /** - * <p>Container for granting information.</p> + * <p>Container for granting information.</p> + */ + inline void SetTargetGrants(const Aws::Vector<TargetGrant>& value) { m_targetGrantsHasBeenSet = true; m_targetGrants = value; } + + /** + * <p>Container for granting information.</p> */ - inline void SetTargetGrants(const Aws::Vector<TargetGrant>& value) { m_targetGrantsHasBeenSet = true; m_targetGrants = value; } - + inline void SetTargetGrants(Aws::Vector<TargetGrant>&& value) { m_targetGrantsHasBeenSet = true; m_targetGrants = std::move(value); } + /** - * <p>Container for granting information.</p> + * <p>Container for granting information.</p> */ - inline void SetTargetGrants(Aws::Vector<TargetGrant>&& value) { m_targetGrantsHasBeenSet = true; m_targetGrants = std::move(value); } - + inline LoggingEnabled& WithTargetGrants(const Aws::Vector<TargetGrant>& value) { SetTargetGrants(value); return *this;} + /** - * <p>Container for granting information.</p> + * <p>Container for granting information.</p> */ - inline LoggingEnabled& WithTargetGrants(const Aws::Vector<TargetGrant>& value) { SetTargetGrants(value); return *this;} - + inline LoggingEnabled& WithTargetGrants(Aws::Vector<TargetGrant>&& value) { SetTargetGrants(std::move(value)); return *this;} + /** - * <p>Container for granting information.</p> + * <p>Container for granting information.</p> */ - inline LoggingEnabled& WithTargetGrants(Aws::Vector<TargetGrant>&& value) { SetTargetGrants(std::move(value)); return *this;} - + inline LoggingEnabled& AddTargetGrants(const TargetGrant& value) { m_targetGrantsHasBeenSet = true; m_targetGrants.push_back(value); return *this; } + /** - * <p>Container for granting information.</p> + * <p>Container for granting information.</p> */ - inline LoggingEnabled& AddTargetGrants(const TargetGrant& value) { m_targetGrantsHasBeenSet = true; m_targetGrants.push_back(value); return *this; } - + inline LoggingEnabled& AddTargetGrants(TargetGrant&& value) { m_targetGrantsHasBeenSet = true; m_targetGrants.push_back(std::move(value)); return *this; } + + + /** + * <p>A prefix for all log object keys. If you store log files from multiple Amazon + * S3 buckets in a single bucket, you can use a prefix to distinguish which log + * files came from which bucket.</p> + */ + inline const Aws::String& GetTargetPrefix() const{ return m_targetPrefix; } + /** - * <p>Container for granting information.</p> + * <p>A prefix for all log object keys. If you store log files from multiple Amazon + * S3 buckets in a single bucket, you can use a prefix to distinguish which log + * files came from which bucket.</p> */ - inline LoggingEnabled& AddTargetGrants(TargetGrant&& value) { m_targetGrantsHasBeenSet = true; m_targetGrants.push_back(std::move(value)); return *this; } - - - /** - * <p>A prefix for all log object keys. If you store log files from multiple Amazon - * S3 buckets in a single bucket, you can use a prefix to distinguish which log - * files came from which bucket.</p> - */ - inline const Aws::String& GetTargetPrefix() const{ return m_targetPrefix; } - - /** - * <p>A prefix for all log object keys. If you store log files from multiple Amazon - * S3 buckets in a single bucket, you can use a prefix to distinguish which log - * files came from which bucket.</p> - */ inline bool TargetPrefixHasBeenSet() const { return m_targetPrefixHasBeenSet; } /** - * <p>A prefix for all log object keys. If you store log files from multiple Amazon - * S3 buckets in a single bucket, you can use a prefix to distinguish which log - * files came from which bucket.</p> - */ - inline void SetTargetPrefix(const Aws::String& value) { m_targetPrefixHasBeenSet = true; m_targetPrefix = value; } - - /** - * <p>A prefix for all log object keys. If you store log files from multiple Amazon - * S3 buckets in a single bucket, you can use a prefix to distinguish which log - * files came from which bucket.</p> - */ - inline void SetTargetPrefix(Aws::String&& value) { m_targetPrefixHasBeenSet = true; m_targetPrefix = std::move(value); } - - /** - * <p>A prefix for all log object keys. If you store log files from multiple Amazon - * S3 buckets in a single bucket, you can use a prefix to distinguish which log - * files came from which bucket.</p> - */ - inline void SetTargetPrefix(const char* value) { m_targetPrefixHasBeenSet = true; m_targetPrefix.assign(value); } - - /** - * <p>A prefix for all log object keys. If you store log files from multiple Amazon - * S3 buckets in a single bucket, you can use a prefix to distinguish which log - * files came from which bucket.</p> - */ - inline LoggingEnabled& WithTargetPrefix(const Aws::String& value) { SetTargetPrefix(value); return *this;} - - /** - * <p>A prefix for all log object keys. If you store log files from multiple Amazon - * S3 buckets in a single bucket, you can use a prefix to distinguish which log - * files came from which bucket.</p> - */ - inline LoggingEnabled& WithTargetPrefix(Aws::String&& value) { SetTargetPrefix(std::move(value)); return *this;} - - /** - * <p>A prefix for all log object keys. If you store log files from multiple Amazon - * S3 buckets in a single bucket, you can use a prefix to distinguish which log - * files came from which bucket.</p> - */ - inline LoggingEnabled& WithTargetPrefix(const char* value) { SetTargetPrefix(value); return *this;} - - private: - - Aws::String m_targetBucket; - bool m_targetBucketHasBeenSet; - - Aws::Vector<TargetGrant> m_targetGrants; - bool m_targetGrantsHasBeenSet; - - Aws::String m_targetPrefix; - bool m_targetPrefixHasBeenSet; - }; - -} // namespace Model -} // namespace S3 -} // namespace Aws + * <p>A prefix for all log object keys. If you store log files from multiple Amazon + * S3 buckets in a single bucket, you can use a prefix to distinguish which log + * files came from which bucket.</p> + */ + inline void SetTargetPrefix(const Aws::String& value) { m_targetPrefixHasBeenSet = true; m_targetPrefix = value; } + + /** + * <p>A prefix for all log object keys. If you store log files from multiple Amazon + * S3 buckets in a single bucket, you can use a prefix to distinguish which log + * files came from which bucket.</p> + */ + inline void SetTargetPrefix(Aws::String&& value) { m_targetPrefixHasBeenSet = true; m_targetPrefix = std::move(value); } + + /** + * <p>A prefix for all log object keys. If you store log files from multiple Amazon + * S3 buckets in a single bucket, you can use a prefix to distinguish which log + * files came from which bucket.</p> + */ + inline void SetTargetPrefix(const char* value) { m_targetPrefixHasBeenSet = true; m_targetPrefix.assign(value); } + + /** + * <p>A prefix for all log object keys. If you store log files from multiple Amazon + * S3 buckets in a single bucket, you can use a prefix to distinguish which log + * files came from which bucket.</p> + */ + inline LoggingEnabled& WithTargetPrefix(const Aws::String& value) { SetTargetPrefix(value); return *this;} + + /** + * <p>A prefix for all log object keys. If you store log files from multiple Amazon + * S3 buckets in a single bucket, you can use a prefix to distinguish which log + * files came from which bucket.</p> + */ + inline LoggingEnabled& WithTargetPrefix(Aws::String&& value) { SetTargetPrefix(std::move(value)); return *this;} + + /** + * <p>A prefix for all log object keys. If you store log files from multiple Amazon + * S3 buckets in a single bucket, you can use a prefix to distinguish which log + * files came from which bucket.</p> + */ + inline LoggingEnabled& WithTargetPrefix(const char* value) { SetTargetPrefix(value); return *this;} + + private: + + Aws::String m_targetBucket; + bool m_targetBucketHasBeenSet; + + Aws::Vector<TargetGrant> m_targetGrants; + bool m_targetGrantsHasBeenSet; + + Aws::String m_targetPrefix; + bool m_targetPrefixHasBeenSet; + }; + +} // namespace Model +} // namespace S3 +} // namespace Aws |