AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateLabelGroupRequest.h
1
6#pragma once
7#include <aws/lookoutequipment/LookoutEquipment_EXPORTS.h>
8#include <aws/lookoutequipment/LookoutEquipmentRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lookoutequipment/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace LookoutEquipment
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LOOKOUTEQUIPMENT_API CreateLabelGroupRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateLabelGroup"; }
34
35 AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override;
36
37 AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetLabelGroupName() const { return m_labelGroupName; }
46 inline bool LabelGroupNameHasBeenSet() const { return m_labelGroupNameHasBeenSet; }
47 template<typename LabelGroupNameT = Aws::String>
48 void SetLabelGroupName(LabelGroupNameT&& value) { m_labelGroupNameHasBeenSet = true; m_labelGroupName = std::forward<LabelGroupNameT>(value); }
49 template<typename LabelGroupNameT = Aws::String>
50 CreateLabelGroupRequest& WithLabelGroupName(LabelGroupNameT&& value) { SetLabelGroupName(std::forward<LabelGroupNameT>(value)); return *this;}
52
54
60 inline const Aws::Vector<Aws::String>& GetFaultCodes() const { return m_faultCodes; }
61 inline bool FaultCodesHasBeenSet() const { return m_faultCodesHasBeenSet; }
62 template<typename FaultCodesT = Aws::Vector<Aws::String>>
63 void SetFaultCodes(FaultCodesT&& value) { m_faultCodesHasBeenSet = true; m_faultCodes = std::forward<FaultCodesT>(value); }
64 template<typename FaultCodesT = Aws::Vector<Aws::String>>
65 CreateLabelGroupRequest& WithFaultCodes(FaultCodesT&& value) { SetFaultCodes(std::forward<FaultCodesT>(value)); return *this;}
66 template<typename FaultCodesT = Aws::String>
67 CreateLabelGroupRequest& AddFaultCodes(FaultCodesT&& value) { m_faultCodesHasBeenSet = true; m_faultCodes.emplace_back(std::forward<FaultCodesT>(value)); return *this; }
69
71
75 inline const Aws::String& GetClientToken() const { return m_clientToken; }
76 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
77 template<typename ClientTokenT = Aws::String>
78 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
79 template<typename ClientTokenT = Aws::String>
80 CreateLabelGroupRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
82
84
89 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 template<typename TagsT = Aws::Vector<Tag>>
92 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
93 template<typename TagsT = Aws::Vector<Tag>>
94 CreateLabelGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
95 template<typename TagsT = Tag>
96 CreateLabelGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
98 private:
99
100 Aws::String m_labelGroupName;
101 bool m_labelGroupNameHasBeenSet = false;
102
103 Aws::Vector<Aws::String> m_faultCodes;
104 bool m_faultCodesHasBeenSet = false;
105
107 bool m_clientTokenHasBeenSet = true;
108
109 Aws::Vector<Tag> m_tags;
110 bool m_tagsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace LookoutEquipment
115} // 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