AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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
40 inline const Aws::String& GetLastModified() const { return m_lastModified; }
41 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
42 template <typename LastModifiedT = Aws::String>
43 void SetLastModified(LastModifiedT&& value) {
44 m_lastModifiedHasBeenSet = true;
45 m_lastModified = std::forward<LastModifiedT>(value);
46 }
47 template <typename LastModifiedT = Aws::String>
48 AwsS3ObjectDetails& WithLastModified(LastModifiedT&& value) {
49 SetLastModified(std::forward<LastModifiedT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetETag() const { return m_eTag; }
60 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
61 template <typename ETagT = Aws::String>
62 void SetETag(ETagT&& value) {
63 m_eTagHasBeenSet = true;
64 m_eTag = std::forward<ETagT>(value);
65 }
66 template <typename ETagT = Aws::String>
67 AwsS3ObjectDetails& WithETag(ETagT&& value) {
68 SetETag(std::forward<ETagT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetVersionId() const { return m_versionId; }
78 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
79 template <typename VersionIdT = Aws::String>
80 void SetVersionId(VersionIdT&& value) {
81 m_versionIdHasBeenSet = true;
82 m_versionId = std::forward<VersionIdT>(value);
83 }
84 template <typename VersionIdT = Aws::String>
85 AwsS3ObjectDetails& WithVersionId(VersionIdT&& value) {
86 SetVersionId(std::forward<VersionIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetContentType() const { return m_contentType; }
96 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
97 template <typename ContentTypeT = Aws::String>
98 void SetContentType(ContentTypeT&& value) {
99 m_contentTypeHasBeenSet = true;
100 m_contentType = std::forward<ContentTypeT>(value);
101 }
102 template <typename ContentTypeT = Aws::String>
103 AwsS3ObjectDetails& WithContentType(ContentTypeT&& value) {
104 SetContentType(std::forward<ContentTypeT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetServerSideEncryption() const { return m_serverSideEncryption; }
115 inline bool ServerSideEncryptionHasBeenSet() const { return m_serverSideEncryptionHasBeenSet; }
116 template <typename ServerSideEncryptionT = Aws::String>
117 void SetServerSideEncryption(ServerSideEncryptionT&& value) {
118 m_serverSideEncryptionHasBeenSet = true;
119 m_serverSideEncryption = std::forward<ServerSideEncryptionT>(value);
120 }
121 template <typename ServerSideEncryptionT = Aws::String>
122 AwsS3ObjectDetails& WithServerSideEncryption(ServerSideEncryptionT&& value) {
123 SetServerSideEncryption(std::forward<ServerSideEncryptionT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
134 inline bool SSEKMSKeyIdHasBeenSet() const { return m_sSEKMSKeyIdHasBeenSet; }
135 template <typename SSEKMSKeyIdT = Aws::String>
136 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
137 m_sSEKMSKeyIdHasBeenSet = true;
138 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
139 }
140 template <typename SSEKMSKeyIdT = Aws::String>
141 AwsS3ObjectDetails& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
142 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_lastModified;
148
149 Aws::String m_eTag;
150
151 Aws::String m_versionId;
152
153 Aws::String m_contentType;
154
155 Aws::String m_serverSideEncryption;
156
157 Aws::String m_sSEKMSKeyId;
158 bool m_lastModifiedHasBeenSet = false;
159 bool m_eTagHasBeenSet = false;
160 bool m_versionIdHasBeenSet = false;
161 bool m_contentTypeHasBeenSet = false;
162 bool m_serverSideEncryptionHasBeenSet = false;
163 bool m_sSEKMSKeyIdHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace SecurityHub
168} // 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