AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
S3Bucket.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/guardduty/model/PublicAccessStatus.h>
11#include <aws/guardduty/model/PublicAccessConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GuardDuty
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_GUARDDUTY_API S3Bucket() = default;
40 AWS_GUARDDUTY_API S3Bucket(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GUARDDUTY_API S3Bucket& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
50 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
51 template<typename OwnerIdT = Aws::String>
52 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
53 template<typename OwnerIdT = Aws::String>
54 S3Bucket& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
62 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
63 template<typename CreatedAtT = Aws::Utils::DateTime>
64 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
65 template<typename CreatedAtT = Aws::Utils::DateTime>
66 S3Bucket& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
68
70
76 inline const Aws::String& GetEncryptionType() const { return m_encryptionType; }
77 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
78 template<typename EncryptionTypeT = Aws::String>
79 void SetEncryptionType(EncryptionTypeT&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::forward<EncryptionTypeT>(value); }
80 template<typename EncryptionTypeT = Aws::String>
81 S3Bucket& WithEncryptionType(EncryptionTypeT&& value) { SetEncryptionType(std::forward<EncryptionTypeT>(value)); return *this;}
83
85
89 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
90 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
91 template<typename EncryptionKeyArnT = Aws::String>
92 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
93 template<typename EncryptionKeyArnT = Aws::String>
94 S3Bucket& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
96
98
102 inline const Aws::String& GetEffectivePermission() const { return m_effectivePermission; }
103 inline bool EffectivePermissionHasBeenSet() const { return m_effectivePermissionHasBeenSet; }
104 template<typename EffectivePermissionT = Aws::String>
105 void SetEffectivePermission(EffectivePermissionT&& value) { m_effectivePermissionHasBeenSet = true; m_effectivePermission = std::forward<EffectivePermissionT>(value); }
106 template<typename EffectivePermissionT = Aws::String>
107 S3Bucket& WithEffectivePermission(EffectivePermissionT&& value) { SetEffectivePermission(std::forward<EffectivePermissionT>(value)); return *this;}
109
111
115 inline PublicAccessStatus GetPublicReadAccess() const { return m_publicReadAccess; }
116 inline bool PublicReadAccessHasBeenSet() const { return m_publicReadAccessHasBeenSet; }
117 inline void SetPublicReadAccess(PublicAccessStatus value) { m_publicReadAccessHasBeenSet = true; m_publicReadAccess = value; }
120
122
126 inline PublicAccessStatus GetPublicWriteAccess() const { return m_publicWriteAccess; }
127 inline bool PublicWriteAccessHasBeenSet() const { return m_publicWriteAccessHasBeenSet; }
128 inline void SetPublicWriteAccess(PublicAccessStatus value) { m_publicWriteAccessHasBeenSet = true; m_publicWriteAccess = value; }
131
133
137 inline const PublicAccessConfiguration& GetAccountPublicAccess() const { return m_accountPublicAccess; }
138 inline bool AccountPublicAccessHasBeenSet() const { return m_accountPublicAccessHasBeenSet; }
139 template<typename AccountPublicAccessT = PublicAccessConfiguration>
140 void SetAccountPublicAccess(AccountPublicAccessT&& value) { m_accountPublicAccessHasBeenSet = true; m_accountPublicAccess = std::forward<AccountPublicAccessT>(value); }
141 template<typename AccountPublicAccessT = PublicAccessConfiguration>
142 S3Bucket& WithAccountPublicAccess(AccountPublicAccessT&& value) { SetAccountPublicAccess(std::forward<AccountPublicAccessT>(value)); return *this;}
144
146
150 inline const PublicAccessConfiguration& GetBucketPublicAccess() const { return m_bucketPublicAccess; }
151 inline bool BucketPublicAccessHasBeenSet() const { return m_bucketPublicAccessHasBeenSet; }
152 template<typename BucketPublicAccessT = PublicAccessConfiguration>
153 void SetBucketPublicAccess(BucketPublicAccessT&& value) { m_bucketPublicAccessHasBeenSet = true; m_bucketPublicAccess = std::forward<BucketPublicAccessT>(value); }
154 template<typename BucketPublicAccessT = PublicAccessConfiguration>
155 S3Bucket& WithBucketPublicAccess(BucketPublicAccessT&& value) { SetBucketPublicAccess(std::forward<BucketPublicAccessT>(value)); return *this;}
157
159
162 inline const Aws::Vector<Aws::String>& GetS3ObjectUids() const { return m_s3ObjectUids; }
163 inline bool S3ObjectUidsHasBeenSet() const { return m_s3ObjectUidsHasBeenSet; }
164 template<typename S3ObjectUidsT = Aws::Vector<Aws::String>>
165 void SetS3ObjectUids(S3ObjectUidsT&& value) { m_s3ObjectUidsHasBeenSet = true; m_s3ObjectUids = std::forward<S3ObjectUidsT>(value); }
166 template<typename S3ObjectUidsT = Aws::Vector<Aws::String>>
167 S3Bucket& WithS3ObjectUids(S3ObjectUidsT&& value) { SetS3ObjectUids(std::forward<S3ObjectUidsT>(value)); return *this;}
168 template<typename S3ObjectUidsT = Aws::String>
169 S3Bucket& AddS3ObjectUids(S3ObjectUidsT&& value) { m_s3ObjectUidsHasBeenSet = true; m_s3ObjectUids.emplace_back(std::forward<S3ObjectUidsT>(value)); return *this; }
171 private:
172
173 Aws::String m_ownerId;
174 bool m_ownerIdHasBeenSet = false;
175
176 Aws::Utils::DateTime m_createdAt{};
177 bool m_createdAtHasBeenSet = false;
178
179 Aws::String m_encryptionType;
180 bool m_encryptionTypeHasBeenSet = false;
181
182 Aws::String m_encryptionKeyArn;
183 bool m_encryptionKeyArnHasBeenSet = false;
184
185 Aws::String m_effectivePermission;
186 bool m_effectivePermissionHasBeenSet = false;
187
189 bool m_publicReadAccessHasBeenSet = false;
190
192 bool m_publicWriteAccessHasBeenSet = false;
193
194 PublicAccessConfiguration m_accountPublicAccess;
195 bool m_accountPublicAccessHasBeenSet = false;
196
197 PublicAccessConfiguration m_bucketPublicAccess;
198 bool m_bucketPublicAccessHasBeenSet = false;
199
200 Aws::Vector<Aws::String> m_s3ObjectUids;
201 bool m_s3ObjectUidsHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace GuardDuty
206} // namespace Aws
bool PublicReadAccessHasBeenSet() const
Definition S3Bucket.h:116
S3Bucket & WithPublicWriteAccess(PublicAccessStatus value)
Definition S3Bucket.h:129
S3Bucket & AddS3ObjectUids(S3ObjectUidsT &&value)
Definition S3Bucket.h:169
PublicAccessStatus GetPublicReadAccess() const
Definition S3Bucket.h:115
const Aws::Utils::DateTime & GetCreatedAt() const
Definition S3Bucket.h:61
void SetPublicWriteAccess(PublicAccessStatus value)
Definition S3Bucket.h:128
S3Bucket & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
Definition S3Bucket.h:94
bool AccountPublicAccessHasBeenSet() const
Definition S3Bucket.h:138
AWS_GUARDDUTY_API S3Bucket & operator=(Aws::Utils::Json::JsonView jsonValue)
S3Bucket & WithOwnerId(OwnerIdT &&value)
Definition S3Bucket.h:54
const Aws::String & GetEncryptionKeyArn() const
Definition S3Bucket.h:89
bool S3ObjectUidsHasBeenSet() const
Definition S3Bucket.h:163
void SetEncryptionType(EncryptionTypeT &&value)
Definition S3Bucket.h:79
AWS_GUARDDUTY_API S3Bucket(Aws::Utils::Json::JsonView jsonValue)
S3Bucket & WithCreatedAt(CreatedAtT &&value)
Definition S3Bucket.h:66
void SetBucketPublicAccess(BucketPublicAccessT &&value)
Definition S3Bucket.h:153
bool EncryptionKeyArnHasBeenSet() const
Definition S3Bucket.h:90
void SetEffectivePermission(EffectivePermissionT &&value)
Definition S3Bucket.h:105
S3Bucket & WithAccountPublicAccess(AccountPublicAccessT &&value)
Definition S3Bucket.h:142
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const PublicAccessConfiguration & GetBucketPublicAccess() const
Definition S3Bucket.h:150
S3Bucket & WithEffectivePermission(EffectivePermissionT &&value)
Definition S3Bucket.h:107
S3Bucket & WithS3ObjectUids(S3ObjectUidsT &&value)
Definition S3Bucket.h:167
bool BucketPublicAccessHasBeenSet() const
Definition S3Bucket.h:151
const PublicAccessConfiguration & GetAccountPublicAccess() const
Definition S3Bucket.h:137
bool PublicWriteAccessHasBeenSet() const
Definition S3Bucket.h:127
void SetPublicReadAccess(PublicAccessStatus value)
Definition S3Bucket.h:117
const Aws::String & GetOwnerId() const
Definition S3Bucket.h:49
const Aws::String & GetEncryptionType() const
Definition S3Bucket.h:76
bool EncryptionTypeHasBeenSet() const
Definition S3Bucket.h:77
void SetOwnerId(OwnerIdT &&value)
Definition S3Bucket.h:52
AWS_GUARDDUTY_API S3Bucket()=default
void SetS3ObjectUids(S3ObjectUidsT &&value)
Definition S3Bucket.h:165
void SetCreatedAt(CreatedAtT &&value)
Definition S3Bucket.h:64
S3Bucket & WithBucketPublicAccess(BucketPublicAccessT &&value)
Definition S3Bucket.h:155
void SetAccountPublicAccess(AccountPublicAccessT &&value)
Definition S3Bucket.h:140
void SetEncryptionKeyArn(EncryptionKeyArnT &&value)
Definition S3Bucket.h:92
const Aws::String & GetEffectivePermission() const
Definition S3Bucket.h:102
S3Bucket & WithPublicReadAccess(PublicAccessStatus value)
Definition S3Bucket.h:118
PublicAccessStatus GetPublicWriteAccess() const
Definition S3Bucket.h:126
const Aws::Vector< Aws::String > & GetS3ObjectUids() const
Definition S3Bucket.h:162
S3Bucket & WithEncryptionType(EncryptionTypeT &&value)
Definition S3Bucket.h:81
bool EffectivePermissionHasBeenSet() const
Definition S3Bucket.h:103
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue