AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3BucketDetail.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/Owner.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/guardduty/model/DefaultServerSideEncryption.h>
13#include <aws/guardduty/model/PublicAccess.h>
14#include <aws/guardduty/model/Tag.h>
15#include <aws/guardduty/model/S3ObjectDetail.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace GuardDuty
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_GUARDDUTY_API S3BucketDetail();
42 AWS_GUARDDUTY_API S3BucketDetail(Aws::Utils::Json::JsonView jsonValue);
44 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetArn() const{ return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
54 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
55 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
56 inline S3BucketDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;}
57 inline S3BucketDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
58 inline S3BucketDetail& WithArn(const char* value) { SetArn(value); return *this;}
60
62
65 inline const Aws::String& GetName() const{ return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
68 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 inline S3BucketDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
71 inline S3BucketDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 inline S3BucketDetail& WithName(const char* value) { SetName(value); return *this;}
74
76
79 inline const Aws::String& GetType() const{ return m_type; }
80 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
81 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
82 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
83 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
84 inline S3BucketDetail& WithType(const Aws::String& value) { SetType(value); return *this;}
85 inline S3BucketDetail& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
86 inline S3BucketDetail& WithType(const char* value) { SetType(value); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
96 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
97 inline S3BucketDetail& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
98 inline S3BucketDetail& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
100
102
105 inline const Owner& GetOwner() const{ return m_owner; }
106 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
107 inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; }
108 inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
109 inline S3BucketDetail& WithOwner(const Owner& value) { SetOwner(value); return *this;}
110 inline S3BucketDetail& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
112
114
117 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
120 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
121 inline S3BucketDetail& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
122 inline S3BucketDetail& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
123 inline S3BucketDetail& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
124 inline S3BucketDetail& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
126
128
131 inline const DefaultServerSideEncryption& GetDefaultServerSideEncryption() const{ return m_defaultServerSideEncryption; }
132 inline bool DefaultServerSideEncryptionHasBeenSet() const { return m_defaultServerSideEncryptionHasBeenSet; }
133 inline void SetDefaultServerSideEncryption(const DefaultServerSideEncryption& value) { m_defaultServerSideEncryptionHasBeenSet = true; m_defaultServerSideEncryption = value; }
134 inline void SetDefaultServerSideEncryption(DefaultServerSideEncryption&& value) { m_defaultServerSideEncryptionHasBeenSet = true; m_defaultServerSideEncryption = std::move(value); }
138
140
143 inline const PublicAccess& GetPublicAccess() const{ return m_publicAccess; }
144 inline bool PublicAccessHasBeenSet() const { return m_publicAccessHasBeenSet; }
145 inline void SetPublicAccess(const PublicAccess& value) { m_publicAccessHasBeenSet = true; m_publicAccess = value; }
146 inline void SetPublicAccess(PublicAccess&& value) { m_publicAccessHasBeenSet = true; m_publicAccess = std::move(value); }
147 inline S3BucketDetail& WithPublicAccess(const PublicAccess& value) { SetPublicAccess(value); return *this;}
148 inline S3BucketDetail& WithPublicAccess(PublicAccess&& value) { SetPublicAccess(std::move(value)); return *this;}
150
152
155 inline const Aws::Vector<S3ObjectDetail>& GetS3ObjectDetails() const{ return m_s3ObjectDetails; }
156 inline bool S3ObjectDetailsHasBeenSet() const { return m_s3ObjectDetailsHasBeenSet; }
157 inline void SetS3ObjectDetails(const Aws::Vector<S3ObjectDetail>& value) { m_s3ObjectDetailsHasBeenSet = true; m_s3ObjectDetails = value; }
158 inline void SetS3ObjectDetails(Aws::Vector<S3ObjectDetail>&& value) { m_s3ObjectDetailsHasBeenSet = true; m_s3ObjectDetails = std::move(value); }
160 inline S3BucketDetail& WithS3ObjectDetails(Aws::Vector<S3ObjectDetail>&& value) { SetS3ObjectDetails(std::move(value)); return *this;}
161 inline S3BucketDetail& AddS3ObjectDetails(const S3ObjectDetail& value) { m_s3ObjectDetailsHasBeenSet = true; m_s3ObjectDetails.push_back(value); return *this; }
162 inline S3BucketDetail& AddS3ObjectDetails(S3ObjectDetail&& value) { m_s3ObjectDetailsHasBeenSet = true; m_s3ObjectDetails.push_back(std::move(value)); return *this; }
164 private:
165
166 Aws::String m_arn;
167 bool m_arnHasBeenSet = false;
168
169 Aws::String m_name;
170 bool m_nameHasBeenSet = false;
171
172 Aws::String m_type;
173 bool m_typeHasBeenSet = false;
174
175 Aws::Utils::DateTime m_createdAt;
176 bool m_createdAtHasBeenSet = false;
177
178 Owner m_owner;
179 bool m_ownerHasBeenSet = false;
180
181 Aws::Vector<Tag> m_tags;
182 bool m_tagsHasBeenSet = false;
183
184 DefaultServerSideEncryption m_defaultServerSideEncryption;
185 bool m_defaultServerSideEncryptionHasBeenSet = false;
186
187 PublicAccess m_publicAccess;
188 bool m_publicAccessHasBeenSet = false;
189
190 Aws::Vector<S3ObjectDetail> m_s3ObjectDetails;
191 bool m_s3ObjectDetailsHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace GuardDuty
196} // namespace Aws
S3BucketDetail & WithName(Aws::String &&value)
S3BucketDetail & WithCreatedAt(Aws::Utils::DateTime &&value)
S3BucketDetail & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetPublicAccess(const PublicAccess &value)
S3BucketDetail & WithName(const Aws::String &value)
void SetArn(Aws::String &&value)
S3BucketDetail & WithPublicAccess(PublicAccess &&value)
void SetName(const Aws::String &value)
S3BucketDetail & AddTags(const Tag &value)
S3BucketDetail & WithOwner(Owner &&value)
void SetS3ObjectDetails(Aws::Vector< S3ObjectDetail > &&value)
S3BucketDetail & WithType(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
void SetName(Aws::String &&value)
S3BucketDetail & WithName(const char *value)
AWS_GUARDDUTY_API S3BucketDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetType(const Aws::String &value)
S3BucketDetail & AddS3ObjectDetails(S3ObjectDetail &&value)
S3BucketDetail & WithArn(Aws::String &&value)
S3BucketDetail & WithPublicAccess(const PublicAccess &value)
const PublicAccess & GetPublicAccess() const
void SetDefaultServerSideEncryption(const DefaultServerSideEncryption &value)
void SetS3ObjectDetails(const Aws::Vector< S3ObjectDetail > &value)
S3BucketDetail & WithDefaultServerSideEncryption(const DefaultServerSideEncryption &value)
S3BucketDetail & WithDefaultServerSideEncryption(DefaultServerSideEncryption &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
S3BucketDetail & WithArn(const char *value)
S3BucketDetail & WithType(const Aws::String &value)
S3BucketDetail & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< S3ObjectDetail > & GetS3ObjectDetails() const
const Aws::String & GetName() const
AWS_GUARDDUTY_API S3BucketDetail(Aws::Utils::Json::JsonView jsonValue)
void SetDefaultServerSideEncryption(DefaultServerSideEncryption &&value)
S3BucketDetail & WithTags(const Aws::Vector< Tag > &value)
const DefaultServerSideEncryption & GetDefaultServerSideEncryption() const
S3BucketDetail & WithS3ObjectDetails(Aws::Vector< S3ObjectDetail > &&value)
const Aws::String & GetType() const
void SetTags(const Aws::Vector< Tag > &value)
S3BucketDetail & AddTags(Tag &&value)
S3BucketDetail & WithS3ObjectDetails(const Aws::Vector< S3ObjectDetail > &value)
S3BucketDetail & WithType(const char *value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
S3BucketDetail & WithOwner(const Owner &value)
S3BucketDetail & AddS3ObjectDetails(const S3ObjectDetail &value)
const Aws::String & GetArn() const
void SetArn(const Aws::String &value)
void SetPublicAccess(PublicAccess &&value)
S3BucketDetail & WithArn(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue