AWS SDK for C++

AWS SDK for C++ Version 1.11.712

Loading...
Searching...
No Matches
CreateLabelGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lookoutequipment/LookoutEquipmentRequest.h>
11#include <aws/lookoutequipment/LookoutEquipment_EXPORTS.h>
12#include <aws/lookoutequipment/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace LookoutEquipment {
18namespace Model {
19
23 public:
24 AWS_LOOKOUTEQUIPMENT_API CreateLabelGroupRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateLabelGroup"; }
31
32 AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override;
33
34 AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
41 inline const Aws::String& GetLabelGroupName() const { return m_labelGroupName; }
42 inline bool LabelGroupNameHasBeenSet() const { return m_labelGroupNameHasBeenSet; }
43 template <typename LabelGroupNameT = Aws::String>
44 void SetLabelGroupName(LabelGroupNameT&& value) {
45 m_labelGroupNameHasBeenSet = true;
46 m_labelGroupName = std::forward<LabelGroupNameT>(value);
47 }
48 template <typename LabelGroupNameT = Aws::String>
49 CreateLabelGroupRequest& WithLabelGroupName(LabelGroupNameT&& value) {
50 SetLabelGroupName(std::forward<LabelGroupNameT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::Vector<Aws::String>& GetFaultCodes() const { return m_faultCodes; }
63 inline bool FaultCodesHasBeenSet() const { return m_faultCodesHasBeenSet; }
64 template <typename FaultCodesT = Aws::Vector<Aws::String>>
65 void SetFaultCodes(FaultCodesT&& value) {
66 m_faultCodesHasBeenSet = true;
67 m_faultCodes = std::forward<FaultCodesT>(value);
68 }
69 template <typename FaultCodesT = Aws::Vector<Aws::String>>
71 SetFaultCodes(std::forward<FaultCodesT>(value));
72 return *this;
73 }
74 template <typename FaultCodesT = Aws::String>
75 CreateLabelGroupRequest& AddFaultCodes(FaultCodesT&& value) {
76 m_faultCodesHasBeenSet = true;
77 m_faultCodes.emplace_back(std::forward<FaultCodesT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetClientToken() const { return m_clientToken; }
88 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
89 template <typename ClientTokenT = Aws::String>
90 void SetClientToken(ClientTokenT&& value) {
91 m_clientTokenHasBeenSet = true;
92 m_clientToken = std::forward<ClientTokenT>(value);
93 }
94 template <typename ClientTokenT = Aws::String>
96 SetClientToken(std::forward<ClientTokenT>(value));
97 return *this;
98 }
100
102
107 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template <typename TagsT = Aws::Vector<Tag>>
110 void SetTags(TagsT&& value) {
111 m_tagsHasBeenSet = true;
112 m_tags = std::forward<TagsT>(value);
113 }
114 template <typename TagsT = Aws::Vector<Tag>>
116 SetTags(std::forward<TagsT>(value));
117 return *this;
118 }
119 template <typename TagsT = Tag>
121 m_tagsHasBeenSet = true;
122 m_tags.emplace_back(std::forward<TagsT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_labelGroupName;
128
129 Aws::Vector<Aws::String> m_faultCodes;
130
132
133 Aws::Vector<Tag> m_tags;
134 bool m_labelGroupNameHasBeenSet = false;
135 bool m_faultCodesHasBeenSet = false;
136 bool m_clientTokenHasBeenSet = true;
137 bool m_tagsHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace LookoutEquipment
142} // namespace Aws
CreateLabelGroupRequest & WithLabelGroupName(LabelGroupNameT &&value)
CreateLabelGroupRequest & WithClientToken(ClientTokenT &&value)
AWS_LOOKOUTEQUIPMENT_API CreateLabelGroupRequest()=default
AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override
CreateLabelGroupRequest & WithFaultCodes(FaultCodesT &&value)
const Aws::Vector< Aws::String > & GetFaultCodes() const
virtual const char * GetServiceRequestName() const override
CreateLabelGroupRequest & AddFaultCodes(FaultCodesT &&value)
AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector