AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsS3ObjectDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SECURITYHUB_API AwsS3ObjectDetails();
35 AWS_SECURITYHUB_API AwsS3ObjectDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
58 inline const Aws::String& GetLastModified() const{ return m_lastModified; }
59 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
60 inline void SetLastModified(const Aws::String& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
61 inline void SetLastModified(Aws::String&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
62 inline void SetLastModified(const char* value) { m_lastModifiedHasBeenSet = true; m_lastModified.assign(value); }
63 inline AwsS3ObjectDetails& WithLastModified(const Aws::String& value) { SetLastModified(value); return *this;}
64 inline AwsS3ObjectDetails& WithLastModified(Aws::String&& value) { SetLastModified(std::move(value)); return *this;}
65 inline AwsS3ObjectDetails& WithLastModified(const char* value) { SetLastModified(value); return *this;}
67
69
73 inline const Aws::String& GetETag() const{ return m_eTag; }
74 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
75 inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; }
76 inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); }
77 inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); }
78 inline AwsS3ObjectDetails& WithETag(const Aws::String& value) { SetETag(value); return *this;}
79 inline AwsS3ObjectDetails& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
80 inline AwsS3ObjectDetails& WithETag(const char* value) { SetETag(value); return *this;}
82
84
87 inline const Aws::String& GetVersionId() const{ return m_versionId; }
88 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
89 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
90 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
91 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
92 inline AwsS3ObjectDetails& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
93 inline AwsS3ObjectDetails& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
94 inline AwsS3ObjectDetails& WithVersionId(const char* value) { SetVersionId(value); return *this;}
96
98
101 inline const Aws::String& GetContentType() const{ return m_contentType; }
102 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
103 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
104 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
105 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
106 inline AwsS3ObjectDetails& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
107 inline AwsS3ObjectDetails& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
108 inline AwsS3ObjectDetails& WithContentType(const char* value) { SetContentType(value); return *this;}
110
112
116 inline const Aws::String& GetServerSideEncryption() const{ return m_serverSideEncryption; }
117 inline bool ServerSideEncryptionHasBeenSet() const { return m_serverSideEncryptionHasBeenSet; }
118 inline void SetServerSideEncryption(const Aws::String& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
119 inline void SetServerSideEncryption(Aws::String&& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = std::move(value); }
120 inline void SetServerSideEncryption(const char* value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption.assign(value); }
122 inline AwsS3ObjectDetails& WithServerSideEncryption(Aws::String&& value) { SetServerSideEncryption(std::move(value)); return *this;}
123 inline AwsS3ObjectDetails& WithServerSideEncryption(const char* value) { SetServerSideEncryption(value); return *this;}
125
127
131 inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
132 inline bool SSEKMSKeyIdHasBeenSet() const { return m_sSEKMSKeyIdHasBeenSet; }
133 inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = value; }
134 inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = std::move(value); }
135 inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId.assign(value); }
136 inline AwsS3ObjectDetails& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
137 inline AwsS3ObjectDetails& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(std::move(value)); return *this;}
138 inline AwsS3ObjectDetails& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
140 private:
141
142 Aws::String m_lastModified;
143 bool m_lastModifiedHasBeenSet = false;
144
145 Aws::String m_eTag;
146 bool m_eTagHasBeenSet = false;
147
148 Aws::String m_versionId;
149 bool m_versionIdHasBeenSet = false;
150
151 Aws::String m_contentType;
152 bool m_contentTypeHasBeenSet = false;
153
154 Aws::String m_serverSideEncryption;
155 bool m_serverSideEncryptionHasBeenSet = false;
156
157 Aws::String m_sSEKMSKeyId;
158 bool m_sSEKMSKeyIdHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace SecurityHub
163} // namespace Aws
AwsS3ObjectDetails & WithServerSideEncryption(const Aws::String &value)
AWS_SECURITYHUB_API AwsS3ObjectDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsS3ObjectDetails & WithETag(const char *value)
AwsS3ObjectDetails & WithSSEKMSKeyId(const char *value)
void SetVersionId(const Aws::String &value)
AwsS3ObjectDetails & WithVersionId(const Aws::String &value)
AwsS3ObjectDetails & WithContentType(Aws::String &&value)
AwsS3ObjectDetails & WithContentType(const char *value)
AwsS3ObjectDetails & WithSSEKMSKeyId(const Aws::String &value)
AwsS3ObjectDetails & WithServerSideEncryption(const char *value)
AwsS3ObjectDetails & WithVersionId(Aws::String &&value)
AwsS3ObjectDetails & WithLastModified(const char *value)
AwsS3ObjectDetails & WithLastModified(const Aws::String &value)
AwsS3ObjectDetails & WithETag(Aws::String &&value)
AwsS3ObjectDetails & WithETag(const Aws::String &value)
const Aws::String & GetServerSideEncryption() const
AwsS3ObjectDetails & WithSSEKMSKeyId(Aws::String &&value)
AwsS3ObjectDetails & WithLastModified(Aws::String &&value)
void SetSSEKMSKeyId(const Aws::String &value)
AwsS3ObjectDetails & WithVersionId(const char *value)
void SetContentType(const Aws::String &value)
AwsS3ObjectDetails & WithServerSideEncryption(Aws::String &&value)
AWS_SECURITYHUB_API AwsS3ObjectDetails(Aws::Utils::Json::JsonView jsonValue)
void SetServerSideEncryption(const Aws::String &value)
AwsS3ObjectDetails & WithContentType(const Aws::String &value)
void SetLastModified(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue