AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
AwsS3ObjectDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
28 public:
29 AWS_SECURITYHUB_API AwsS3ObjectDetails() = default;
30 AWS_SECURITYHUB_API AwsS3ObjectDetails(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
41 inline const Aws::String& GetLastModified() const { return m_lastModified; }
42 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
43 template <typename LastModifiedT = Aws::String>
44 void SetLastModified(LastModifiedT&& value) {
45 m_lastModifiedHasBeenSet = true;
46 m_lastModified = std::forward<LastModifiedT>(value);
47 }
48 template <typename LastModifiedT = Aws::String>
49 AwsS3ObjectDetails& WithLastModified(LastModifiedT&& value) {
50 SetLastModified(std::forward<LastModifiedT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetETag() const { return m_eTag; }
61 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
62 template <typename ETagT = Aws::String>
63 void SetETag(ETagT&& value) {
64 m_eTagHasBeenSet = true;
65 m_eTag = std::forward<ETagT>(value);
66 }
67 template <typename ETagT = Aws::String>
68 AwsS3ObjectDetails& WithETag(ETagT&& value) {
69 SetETag(std::forward<ETagT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetVersionId() const { return m_versionId; }
79 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
80 template <typename VersionIdT = Aws::String>
81 void SetVersionId(VersionIdT&& value) {
82 m_versionIdHasBeenSet = true;
83 m_versionId = std::forward<VersionIdT>(value);
84 }
85 template <typename VersionIdT = Aws::String>
86 AwsS3ObjectDetails& WithVersionId(VersionIdT&& value) {
87 SetVersionId(std::forward<VersionIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetContentType() const { return m_contentType; }
97 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
98 template <typename ContentTypeT = Aws::String>
99 void SetContentType(ContentTypeT&& value) {
100 m_contentTypeHasBeenSet = true;
101 m_contentType = std::forward<ContentTypeT>(value);
102 }
103 template <typename ContentTypeT = Aws::String>
104 AwsS3ObjectDetails& WithContentType(ContentTypeT&& value) {
105 SetContentType(std::forward<ContentTypeT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetServerSideEncryption() const { return m_serverSideEncryption; }
116 inline bool ServerSideEncryptionHasBeenSet() const { return m_serverSideEncryptionHasBeenSet; }
117 template <typename ServerSideEncryptionT = Aws::String>
118 void SetServerSideEncryption(ServerSideEncryptionT&& value) {
119 m_serverSideEncryptionHasBeenSet = true;
120 m_serverSideEncryption = std::forward<ServerSideEncryptionT>(value);
121 }
122 template <typename ServerSideEncryptionT = Aws::String>
123 AwsS3ObjectDetails& WithServerSideEncryption(ServerSideEncryptionT&& value) {
124 SetServerSideEncryption(std::forward<ServerSideEncryptionT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
135 inline bool SSEKMSKeyIdHasBeenSet() const { return m_sSEKMSKeyIdHasBeenSet; }
136 template <typename SSEKMSKeyIdT = Aws::String>
137 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
138 m_sSEKMSKeyIdHasBeenSet = true;
139 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
140 }
141 template <typename SSEKMSKeyIdT = Aws::String>
142 AwsS3ObjectDetails& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
143 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_lastModified;
149
150 Aws::String m_eTag;
151
152 Aws::String m_versionId;
153
154 Aws::String m_contentType;
155
156 Aws::String m_serverSideEncryption;
157
158 Aws::String m_sSEKMSKeyId;
159 bool m_lastModifiedHasBeenSet = false;
160 bool m_eTagHasBeenSet = false;
161 bool m_versionIdHasBeenSet = false;
162 bool m_contentTypeHasBeenSet = false;
163 bool m_serverSideEncryptionHasBeenSet = false;
164 bool m_sSEKMSKeyIdHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace SecurityHub
169} // namespace Aws
AWS_SECURITYHUB_API AwsS3ObjectDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsS3ObjectDetails & WithETag(ETagT &&value)
AwsS3ObjectDetails & WithLastModified(LastModifiedT &&value)
const Aws::String & GetServerSideEncryption() const
void SetServerSideEncryption(ServerSideEncryptionT &&value)
AwsS3ObjectDetails & WithVersionId(VersionIdT &&value)
AWS_SECURITYHUB_API AwsS3ObjectDetails(Aws::Utils::Json::JsonView jsonValue)
AwsS3ObjectDetails & WithServerSideEncryption(ServerSideEncryptionT &&value)
AwsS3ObjectDetails & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
AwsS3ObjectDetails & WithContentType(ContentTypeT &&value)
AWS_SECURITYHUB_API AwsS3ObjectDetails()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue