AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
59 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
60 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
62 inline VerifiedAccessLogS3DestinationOptions& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
63 inline VerifiedAccessLogS3DestinationOptions& WithBucketName(const char* value) { SetBucketName(value); return *this;}
65
67
70 inline const Aws::String& GetPrefix() const{ return m_prefix; }
71 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
72 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
73 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
74 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
75 inline VerifiedAccessLogS3DestinationOptions& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
76 inline VerifiedAccessLogS3DestinationOptions& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
77 inline VerifiedAccessLogS3DestinationOptions& WithPrefix(const char* value) { SetPrefix(value); return *this;}
79
81
84 inline const Aws::String& GetBucketOwner() const{ return m_bucketOwner; }
85 inline bool BucketOwnerHasBeenSet() const { return m_bucketOwnerHasBeenSet; }
86 inline void SetBucketOwner(const Aws::String& value) { m_bucketOwnerHasBeenSet = true; m_bucketOwner = value; }
87 inline void SetBucketOwner(Aws::String&& value) { m_bucketOwnerHasBeenSet = true; m_bucketOwner = std::move(value); }
88 inline void SetBucketOwner(const char* value) { m_bucketOwnerHasBeenSet = true; m_bucketOwner.assign(value); }
90 inline VerifiedAccessLogS3DestinationOptions& WithBucketOwner(Aws::String&& value) { SetBucketOwner(std::move(value)); return *this;}
91 inline VerifiedAccessLogS3DestinationOptions& WithBucketOwner(const char* value) { SetBucketOwner(value); return *this;}
93 private:
94
95 bool m_enabled;
96 bool m_enabledHasBeenSet = false;
97
98 Aws::String m_bucketName;
99 bool m_bucketNameHasBeenSet = false;
100
101 Aws::String m_prefix;
102 bool m_prefixHasBeenSet = false;
103
104 Aws::String m_bucketOwner;
105 bool m_bucketOwnerHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace EC2
110} // namespace Aws
VerifiedAccessLogS3DestinationOptions & WithBucketName(Aws::String &&value)
VerifiedAccessLogS3DestinationOptions & WithPrefix(Aws::String &&value)
VerifiedAccessLogS3DestinationOptions & WithEnabled(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VerifiedAccessLogS3DestinationOptions & WithPrefix(const char *value)
VerifiedAccessLogS3DestinationOptions & WithBucketName(const char *value)
VerifiedAccessLogS3DestinationOptions & WithBucketOwner(const Aws::String &value)
AWS_EC2_API VerifiedAccessLogS3DestinationOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VerifiedAccessLogS3DestinationOptions & WithPrefix(const Aws::String &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 & WithBucketName(const Aws::String &value)
VerifiedAccessLogS3DestinationOptions & WithBucketOwner(Aws::String &&value)
VerifiedAccessLogS3DestinationOptions & WithBucketOwner(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream