AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VerifiedAccessLogS3Destination.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/VerifiedAccessLogDeliveryStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline bool GetEnabled() const{ return m_enabled; }
48 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
49 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
50 inline VerifiedAccessLogS3Destination& WithEnabled(bool value) { SetEnabled(value); return *this;}
52
54
57 inline const VerifiedAccessLogDeliveryStatus& GetDeliveryStatus() const{ return m_deliveryStatus; }
58 inline bool DeliveryStatusHasBeenSet() const { return m_deliveryStatusHasBeenSet; }
59 inline void SetDeliveryStatus(const VerifiedAccessLogDeliveryStatus& value) { m_deliveryStatusHasBeenSet = true; m_deliveryStatus = value; }
60 inline void SetDeliveryStatus(VerifiedAccessLogDeliveryStatus&& value) { m_deliveryStatusHasBeenSet = true; m_deliveryStatus = std::move(value); }
64
66
69 inline const Aws::String& GetBucketName() const{ return m_bucketName; }
70 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
71 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
72 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
73 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
74 inline VerifiedAccessLogS3Destination& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
75 inline VerifiedAccessLogS3Destination& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
76 inline VerifiedAccessLogS3Destination& WithBucketName(const char* value) { SetBucketName(value); return *this;}
78
80
83 inline const Aws::String& GetPrefix() const{ return m_prefix; }
84 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
85 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
86 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
87 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
88 inline VerifiedAccessLogS3Destination& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
89 inline VerifiedAccessLogS3Destination& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
90 inline VerifiedAccessLogS3Destination& WithPrefix(const char* value) { SetPrefix(value); return *this;}
92
94
97 inline const Aws::String& GetBucketOwner() const{ return m_bucketOwner; }
98 inline bool BucketOwnerHasBeenSet() const { return m_bucketOwnerHasBeenSet; }
99 inline void SetBucketOwner(const Aws::String& value) { m_bucketOwnerHasBeenSet = true; m_bucketOwner = value; }
100 inline void SetBucketOwner(Aws::String&& value) { m_bucketOwnerHasBeenSet = true; m_bucketOwner = std::move(value); }
101 inline void SetBucketOwner(const char* value) { m_bucketOwnerHasBeenSet = true; m_bucketOwner.assign(value); }
102 inline VerifiedAccessLogS3Destination& WithBucketOwner(const Aws::String& value) { SetBucketOwner(value); return *this;}
103 inline VerifiedAccessLogS3Destination& WithBucketOwner(Aws::String&& value) { SetBucketOwner(std::move(value)); return *this;}
104 inline VerifiedAccessLogS3Destination& WithBucketOwner(const char* value) { SetBucketOwner(value); return *this;}
106 private:
107
108 bool m_enabled;
109 bool m_enabledHasBeenSet = false;
110
111 VerifiedAccessLogDeliveryStatus m_deliveryStatus;
112 bool m_deliveryStatusHasBeenSet = false;
113
114 Aws::String m_bucketName;
115 bool m_bucketNameHasBeenSet = false;
116
117 Aws::String m_prefix;
118 bool m_prefixHasBeenSet = false;
119
120 Aws::String m_bucketOwner;
121 bool m_bucketOwnerHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace EC2
126} // namespace Aws
VerifiedAccessLogS3Destination & WithBucketName(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VerifiedAccessLogS3Destination & WithDeliveryStatus(VerifiedAccessLogDeliveryStatus &&value)
VerifiedAccessLogS3Destination & WithBucketOwner(Aws::String &&value)
VerifiedAccessLogS3Destination & WithBucketOwner(const Aws::String &value)
AWS_EC2_API VerifiedAccessLogS3Destination(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDeliveryStatus(VerifiedAccessLogDeliveryStatus &&value)
const VerifiedAccessLogDeliveryStatus & GetDeliveryStatus() const
VerifiedAccessLogS3Destination & WithDeliveryStatus(const VerifiedAccessLogDeliveryStatus &value)
VerifiedAccessLogS3Destination & WithBucketName(const Aws::String &value)
VerifiedAccessLogS3Destination & WithEnabled(bool value)
AWS_EC2_API VerifiedAccessLogS3Destination & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VerifiedAccessLogS3Destination & WithPrefix(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VerifiedAccessLogS3Destination & WithBucketOwner(const char *value)
VerifiedAccessLogS3Destination & WithBucketName(Aws::String &&value)
VerifiedAccessLogS3Destination & WithPrefix(const Aws::String &value)
void SetDeliveryStatus(const VerifiedAccessLogDeliveryStatus &value)
VerifiedAccessLogS3Destination & WithPrefix(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream