AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PrimaryValueResponse.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Connect {
20namespace Model {
21
28 public:
29 AWS_CONNECT_API PrimaryValueResponse() = default;
32 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
39 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
40 template <typename AttributeNameT = Aws::String>
41 void SetAttributeName(AttributeNameT&& value) {
42 m_attributeNameHasBeenSet = true;
43 m_attributeName = std::forward<AttributeNameT>(value);
44 }
45 template <typename AttributeNameT = Aws::String>
46 PrimaryValueResponse& WithAttributeName(AttributeNameT&& value) {
47 SetAttributeName(std::forward<AttributeNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetAttributeId() const { return m_attributeId; }
57 inline bool AttributeIdHasBeenSet() const { return m_attributeIdHasBeenSet; }
58 template <typename AttributeIdT = Aws::String>
59 void SetAttributeId(AttributeIdT&& value) {
60 m_attributeIdHasBeenSet = true;
61 m_attributeId = std::forward<AttributeIdT>(value);
62 }
63 template <typename AttributeIdT = Aws::String>
64 PrimaryValueResponse& WithAttributeId(AttributeIdT&& value) {
65 SetAttributeId(std::forward<AttributeIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetValue() const { return m_value; }
75 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
76 template <typename ValueT = Aws::String>
77 void SetValue(ValueT&& value) {
78 m_valueHasBeenSet = true;
79 m_value = std::forward<ValueT>(value);
80 }
81 template <typename ValueT = Aws::String>
83 SetValue(std::forward<ValueT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_attributeName;
89
90 Aws::String m_attributeId;
91
92 Aws::String m_value;
93 bool m_attributeNameHasBeenSet = false;
94 bool m_attributeIdHasBeenSet = false;
95 bool m_valueHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Connect
100} // namespace Aws
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API PrimaryValueResponse()=default
PrimaryValueResponse & WithAttributeName(AttributeNameT &&value)
PrimaryValueResponse & WithAttributeId(AttributeIdT &&value)
AWS_CONNECT_API PrimaryValueResponse(Aws::Utils::Json::JsonView jsonValue)
void SetAttributeName(AttributeNameT &&value)
PrimaryValueResponse & WithValue(ValueT &&value)
AWS_CONNECT_API PrimaryValueResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue