AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
SSEKMS.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3
21{
22namespace Model
23{
24
31 class SSEKMS
32 {
33 public:
37
39
40
46 inline const Aws::String& GetKeyId() const{ return m_keyId; }
47
53 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
54
60 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
61
67 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
68
74 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
75
81 inline SSEKMS& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
82
88 inline SSEKMS& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
89
95 inline SSEKMS& WithKeyId(const char* value) { SetKeyId(value); return *this;}
96
97 private:
98
99 Aws::String m_keyId;
100 bool m_keyIdHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace S3
105} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
SSEKMS & WithKeyId(Aws::String &&value)
Definition: SSEKMS.h:88
const Aws::String & GetKeyId() const
Definition: SSEKMS.h:46
void SetKeyId(const Aws::String &value)
Definition: SSEKMS.h:60
void SetKeyId(Aws::String &&value)
Definition: SSEKMS.h:67
bool KeyIdHasBeenSet() const
Definition: SSEKMS.h:53
SSEKMS & WithKeyId(const Aws::String &value)
Definition: SSEKMS.h:81
AWS_S3_API SSEKMS(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
SSEKMS & WithKeyId(const char *value)
Definition: SSEKMS.h:95
AWS_S3_API SSEKMS & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKeyId(const char *value)
Definition: SSEKMS.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String