AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
AccountAssociationItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
9#include <aws/iot-managed-integrations/model/AssociationState.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTManagedIntegrations {
21namespace Model {
22
30 public:
31 AWS_IOTMANAGEDINTEGRATIONS_API AccountAssociationItem() = default;
32 AWS_IOTMANAGEDINTEGRATIONS_API AccountAssociationItem(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTMANAGEDINTEGRATIONS_API AccountAssociationItem& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAccountAssociationId() const { return m_accountAssociationId; }
41 inline bool AccountAssociationIdHasBeenSet() const { return m_accountAssociationIdHasBeenSet; }
42 template <typename AccountAssociationIdT = Aws::String>
43 void SetAccountAssociationId(AccountAssociationIdT&& value) {
44 m_accountAssociationIdHasBeenSet = true;
45 m_accountAssociationId = std::forward<AccountAssociationIdT>(value);
46 }
47 template <typename AccountAssociationIdT = Aws::String>
48 AccountAssociationItem& WithAccountAssociationId(AccountAssociationIdT&& value) {
49 SetAccountAssociationId(std::forward<AccountAssociationIdT>(value));
50 return *this;
51 }
53
55
59 inline AssociationState GetAssociationState() const { return m_associationState; }
60 inline bool AssociationStateHasBeenSet() const { return m_associationStateHasBeenSet; }
62 m_associationStateHasBeenSet = true;
63 m_associationState = value;
64 }
67 return *this;
68 }
70
72
76 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
77 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
78 template <typename ErrorMessageT = Aws::String>
79 void SetErrorMessage(ErrorMessageT&& value) {
80 m_errorMessageHasBeenSet = true;
81 m_errorMessage = std::forward<ErrorMessageT>(value);
82 }
83 template <typename ErrorMessageT = Aws::String>
84 AccountAssociationItem& WithErrorMessage(ErrorMessageT&& value) {
85 SetErrorMessage(std::forward<ErrorMessageT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetConnectorDestinationId() const { return m_connectorDestinationId; }
96 inline bool ConnectorDestinationIdHasBeenSet() const { return m_connectorDestinationIdHasBeenSet; }
97 template <typename ConnectorDestinationIdT = Aws::String>
98 void SetConnectorDestinationId(ConnectorDestinationIdT&& value) {
99 m_connectorDestinationIdHasBeenSet = true;
100 m_connectorDestinationId = std::forward<ConnectorDestinationIdT>(value);
101 }
102 template <typename ConnectorDestinationIdT = Aws::String>
103 AccountAssociationItem& WithConnectorDestinationId(ConnectorDestinationIdT&& value) {
104 SetConnectorDestinationId(std::forward<ConnectorDestinationIdT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetName() const { return m_name; }
114 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
115 template <typename NameT = Aws::String>
116 void SetName(NameT&& value) {
117 m_nameHasBeenSet = true;
118 m_name = std::forward<NameT>(value);
119 }
120 template <typename NameT = Aws::String>
122 SetName(std::forward<NameT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetDescription() const { return m_description; }
132 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 template <typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) {
135 m_descriptionHasBeenSet = true;
136 m_description = std::forward<DescriptionT>(value);
137 }
138 template <typename DescriptionT = Aws::String>
140 SetDescription(std::forward<DescriptionT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetArn() const { return m_arn; }
150 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
151 template <typename ArnT = Aws::String>
152 void SetArn(ArnT&& value) {
153 m_arnHasBeenSet = true;
154 m_arn = std::forward<ArnT>(value);
155 }
156 template <typename ArnT = Aws::String>
158 SetArn(std::forward<ArnT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_accountAssociationId;
164
166
167 Aws::String m_errorMessage;
168
169 Aws::String m_connectorDestinationId;
170
171 Aws::String m_name;
172
173 Aws::String m_description;
174
175 Aws::String m_arn;
176 bool m_accountAssociationIdHasBeenSet = false;
177 bool m_associationStateHasBeenSet = false;
178 bool m_errorMessageHasBeenSet = false;
179 bool m_connectorDestinationIdHasBeenSet = false;
180 bool m_nameHasBeenSet = false;
181 bool m_descriptionHasBeenSet = false;
182 bool m_arnHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace IoTManagedIntegrations
187} // namespace Aws
AccountAssociationItem & WithAssociationState(AssociationState value)
AccountAssociationItem & WithDescription(DescriptionT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API AccountAssociationItem()=default
AccountAssociationItem & WithConnectorDestinationId(ConnectorDestinationIdT &&value)
AccountAssociationItem & WithAccountAssociationId(AccountAssociationIdT &&value)
AccountAssociationItem & WithErrorMessage(ErrorMessageT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTMANAGEDINTEGRATIONS_API AccountAssociationItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API AccountAssociationItem(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue