AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateActivationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace SSM {
23namespace Model {
25 public:
26 AWS_SSM_API CreateActivationResult() = default;
29
31
35 inline const Aws::String& GetActivationId() const { return m_activationId; }
36 template <typename ActivationIdT = Aws::String>
37 void SetActivationId(ActivationIdT&& value) {
38 m_activationIdHasBeenSet = true;
39 m_activationId = std::forward<ActivationIdT>(value);
40 }
41 template <typename ActivationIdT = Aws::String>
42 CreateActivationResult& WithActivationId(ActivationIdT&& value) {
43 SetActivationId(std::forward<ActivationIdT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::String& GetActivationCode() const { return m_activationCode; }
54 template <typename ActivationCodeT = Aws::String>
55 void SetActivationCode(ActivationCodeT&& value) {
56 m_activationCodeHasBeenSet = true;
57 m_activationCode = std::forward<ActivationCodeT>(value);
58 }
59 template <typename ActivationCodeT = Aws::String>
60 CreateActivationResult& WithActivationCode(ActivationCodeT&& value) {
61 SetActivationCode(std::forward<ActivationCodeT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
69 template <typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) {
71 m_requestIdHasBeenSet = true;
72 m_requestId = std::forward<RequestIdT>(value);
73 }
74 template <typename RequestIdT = Aws::String>
76 SetRequestId(std::forward<RequestIdT>(value));
77 return *this;
78 }
80 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
81
82 private:
83 Aws::String m_activationId;
84
85 Aws::String m_activationCode;
86
87 Aws::String m_requestId;
88 Aws::Http::HttpResponseCode m_HttpResponseCode;
89 bool m_activationIdHasBeenSet = false;
90 bool m_activationCodeHasBeenSet = false;
91 bool m_requestIdHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace SSM
96} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SSM_API CreateActivationResult()=default
CreateActivationResult & WithActivationId(ActivationIdT &&value)
CreateActivationResult & WithActivationCode(ActivationCodeT &&value)
AWS_SSM_API CreateActivationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetActivationCode(ActivationCodeT &&value)
CreateActivationResult & WithRequestId(RequestIdT &&value)
AWS_SSM_API CreateActivationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue