AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
CreateFleetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotfleetwise/IoTFleetWiseRequest.h>
10#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
11#include <aws/iotfleetwise/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IoTFleetWise {
17namespace Model {
18
22 public:
23 AWS_IOTFLEETWISE_API CreateFleetRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateFleet"; }
30
31 AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override;
32
33 AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetFleetId() const { return m_fleetId; }
40 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
41 template <typename FleetIdT = Aws::String>
42 void SetFleetId(FleetIdT&& value) {
43 m_fleetIdHasBeenSet = true;
44 m_fleetId = std::forward<FleetIdT>(value);
45 }
46 template <typename FleetIdT = Aws::String>
47 CreateFleetRequest& WithFleetId(FleetIdT&& value) {
48 SetFleetId(std::forward<FleetIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 CreateFleetRequest& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetSignalCatalogArn() const { return m_signalCatalogArn; }
76 inline bool SignalCatalogArnHasBeenSet() const { return m_signalCatalogArnHasBeenSet; }
77 template <typename SignalCatalogArnT = Aws::String>
78 void SetSignalCatalogArn(SignalCatalogArnT&& value) {
79 m_signalCatalogArnHasBeenSet = true;
80 m_signalCatalogArn = std::forward<SignalCatalogArnT>(value);
81 }
82 template <typename SignalCatalogArnT = Aws::String>
83 CreateFleetRequest& WithSignalCatalogArn(SignalCatalogArnT&& value) {
84 SetSignalCatalogArn(std::forward<SignalCatalogArnT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Vector<Tag>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Vector<Tag>>
101 CreateFleetRequest& WithTags(TagsT&& value) {
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsT = Tag>
106 CreateFleetRequest& AddTags(TagsT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags.emplace_back(std::forward<TagsT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_fleetId;
114
115 Aws::String m_description;
116
117 Aws::String m_signalCatalogArn;
118
119 Aws::Vector<Tag> m_tags;
120 bool m_fleetIdHasBeenSet = false;
121 bool m_descriptionHasBeenSet = false;
122 bool m_signalCatalogArnHasBeenSet = false;
123 bool m_tagsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace IoTFleetWise
128} // namespace Aws
CreateFleetRequest & AddTags(TagsT &&value)
CreateFleetRequest & WithTags(TagsT &&value)
AWS_IOTFLEETWISE_API CreateFleetRequest()=default
CreateFleetRequest & WithFleetId(FleetIdT &&value)
CreateFleetRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
void SetSignalCatalogArn(SignalCatalogArnT &&value)
AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override
CreateFleetRequest & WithSignalCatalogArn(SignalCatalogArnT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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