AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateGrantResult.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13template<typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace KMS
24{
25namespace Model
26{
28 {
29 public:
30 AWS_KMS_API CreateGrantResult();
33
34
36
45 inline const Aws::String& GetGrantToken() const{ return m_grantToken; }
46 inline void SetGrantToken(const Aws::String& value) { m_grantToken = value; }
47 inline void SetGrantToken(Aws::String&& value) { m_grantToken = std::move(value); }
48 inline void SetGrantToken(const char* value) { m_grantToken.assign(value); }
49 inline CreateGrantResult& WithGrantToken(const Aws::String& value) { SetGrantToken(value); return *this;}
50 inline CreateGrantResult& WithGrantToken(Aws::String&& value) { SetGrantToken(std::move(value)); return *this;}
51 inline CreateGrantResult& WithGrantToken(const char* value) { SetGrantToken(value); return *this;}
53
55
60 inline const Aws::String& GetGrantId() const{ return m_grantId; }
61 inline void SetGrantId(const Aws::String& value) { m_grantId = value; }
62 inline void SetGrantId(Aws::String&& value) { m_grantId = std::move(value); }
63 inline void SetGrantId(const char* value) { m_grantId.assign(value); }
64 inline CreateGrantResult& WithGrantId(const Aws::String& value) { SetGrantId(value); return *this;}
65 inline CreateGrantResult& WithGrantId(Aws::String&& value) { SetGrantId(std::move(value)); return *this;}
66 inline CreateGrantResult& WithGrantId(const char* value) { SetGrantId(value); return *this;}
68
70
71 inline const Aws::String& GetRequestId() const{ return m_requestId; }
72 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
73 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
74 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
75 inline CreateGrantResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
76 inline CreateGrantResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
77 inline CreateGrantResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
79 private:
80
81 Aws::String m_grantToken;
82
83 Aws::String m_grantId;
84
85 Aws::String m_requestId;
86 };
87
88} // namespace Model
89} // namespace KMS
90} // namespace Aws
const Aws::String & GetGrantToken() const
CreateGrantResult & WithRequestId(const Aws::String &value)
CreateGrantResult & WithGrantToken(const Aws::String &value)
void SetRequestId(const char *value)
CreateGrantResult & WithGrantToken(Aws::String &&value)
void SetGrantToken(const char *value)
void SetGrantToken(Aws::String &&value)
void SetGrantId(const Aws::String &value)
const Aws::String & GetRequestId() const
AWS_KMS_API CreateGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateGrantResult & WithRequestId(const char *value)
CreateGrantResult & WithGrantId(Aws::String &&value)
void SetGrantId(Aws::String &&value)
CreateGrantResult & WithGrantId(const char *value)
CreateGrantResult & WithGrantId(const Aws::String &value)
AWS_KMS_API CreateGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetGrantToken(const Aws::String &value)
CreateGrantResult & WithGrantToken(const char *value)
CreateGrantResult & WithRequestId(Aws::String &&value)
void SetRequestId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
const Aws::String & GetGrantId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue