AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
VerifiedAccessLogS3DestinationOptions.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline bool GetEnabled() const { return m_enabled; }
47 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
48 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
49 inline VerifiedAccessLogS3DestinationOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
51
53
56 inline const Aws::String& GetBucketName() const { return m_bucketName; }
57 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
58 template<typename BucketNameT = Aws::String>
59 void SetBucketName(BucketNameT&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::forward<BucketNameT>(value); }
60 template<typename BucketNameT = Aws::String>
61 VerifiedAccessLogS3DestinationOptions& WithBucketName(BucketNameT&& value) { SetBucketName(std::forward<BucketNameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetPrefix() const { return m_prefix; }
69 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
70 template<typename PrefixT = Aws::String>
71 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
72 template<typename PrefixT = Aws::String>
73 VerifiedAccessLogS3DestinationOptions& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
75
77
80 inline const Aws::String& GetBucketOwner() const { return m_bucketOwner; }
81 inline bool BucketOwnerHasBeenSet() const { return m_bucketOwnerHasBeenSet; }
82 template<typename BucketOwnerT = Aws::String>
83 void SetBucketOwner(BucketOwnerT&& value) { m_bucketOwnerHasBeenSet = true; m_bucketOwner = std::forward<BucketOwnerT>(value); }
84 template<typename BucketOwnerT = Aws::String>
85 VerifiedAccessLogS3DestinationOptions& WithBucketOwner(BucketOwnerT&& value) { SetBucketOwner(std::forward<BucketOwnerT>(value)); return *this;}
87 private:
88
89 bool m_enabled{false};
90 bool m_enabledHasBeenSet = false;
91
92 Aws::String m_bucketName;
93 bool m_bucketNameHasBeenSet = false;
94
95 Aws::String m_prefix;
96 bool m_prefixHasBeenSet = false;
97
98 Aws::String m_bucketOwner;
99 bool m_bucketOwnerHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace EC2
104} // namespace Aws
VerifiedAccessLogS3DestinationOptions & WithEnabled(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API VerifiedAccessLogS3DestinationOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VerifiedAccessLogS3DestinationOptions & WithBucketOwner(BucketOwnerT &&value)
VerifiedAccessLogS3DestinationOptions & WithBucketName(BucketNameT &&value)
AWS_EC2_API VerifiedAccessLogS3DestinationOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VerifiedAccessLogS3DestinationOptions & WithPrefix(PrefixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream