AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
RegistrationConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
28 public:
29 AWS_IOT_API RegistrationConfig() = default;
33
35
38 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
39 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
40 template <typename TemplateBodyT = Aws::String>
41 void SetTemplateBody(TemplateBodyT&& value) {
42 m_templateBodyHasBeenSet = true;
43 m_templateBody = std::forward<TemplateBodyT>(value);
44 }
45 template <typename TemplateBodyT = Aws::String>
46 RegistrationConfig& WithTemplateBody(TemplateBodyT&& value) {
47 SetTemplateBody(std::forward<TemplateBodyT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
57 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
58 template <typename RoleArnT = Aws::String>
59 void SetRoleArn(RoleArnT&& value) {
60 m_roleArnHasBeenSet = true;
61 m_roleArn = std::forward<RoleArnT>(value);
62 }
63 template <typename RoleArnT = Aws::String>
64 RegistrationConfig& WithRoleArn(RoleArnT&& value) {
65 SetRoleArn(std::forward<RoleArnT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetTemplateName() const { return m_templateName; }
75 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
76 template <typename TemplateNameT = Aws::String>
77 void SetTemplateName(TemplateNameT&& value) {
78 m_templateNameHasBeenSet = true;
79 m_templateName = std::forward<TemplateNameT>(value);
80 }
81 template <typename TemplateNameT = Aws::String>
82 RegistrationConfig& WithTemplateName(TemplateNameT&& value) {
83 SetTemplateName(std::forward<TemplateNameT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_templateBody;
89
90 Aws::String m_roleArn;
91
92 Aws::String m_templateName;
93 bool m_templateBodyHasBeenSet = false;
94 bool m_roleArnHasBeenSet = false;
95 bool m_templateNameHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace IoT
100} // namespace Aws
const Aws::String & GetTemplateName() const
RegistrationConfig & WithTemplateBody(TemplateBodyT &&value)
AWS_IOT_API RegistrationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API RegistrationConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API RegistrationConfig()=default
void SetTemplateName(TemplateNameT &&value)
RegistrationConfig & WithRoleArn(RoleArnT &&value)
RegistrationConfig & WithTemplateName(TemplateNameT &&value)
const Aws::String & GetTemplateBody() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTemplateBody(TemplateBodyT &&value)
const Aws::String & GetRoleArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue