AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFleetRequest.h
1
6#pragma once
7#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
8#include <aws/iotfleetwise/IoTFleetWiseRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotfleetwise/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoTFleetWise
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTFLEETWISE_API CreateFleetRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateFleet"; }
33
34 AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override;
35
36 AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
44 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
45 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
46 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
47 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
48 inline CreateFleetRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
49 inline CreateFleetRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
50 inline CreateFleetRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline CreateFleetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline CreateFleetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline CreateFleetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
71 inline const Aws::String& GetSignalCatalogArn() const{ return m_signalCatalogArn; }
72 inline bool SignalCatalogArnHasBeenSet() const { return m_signalCatalogArnHasBeenSet; }
73 inline void SetSignalCatalogArn(const Aws::String& value) { m_signalCatalogArnHasBeenSet = true; m_signalCatalogArn = value; }
74 inline void SetSignalCatalogArn(Aws::String&& value) { m_signalCatalogArnHasBeenSet = true; m_signalCatalogArn = std::move(value); }
75 inline void SetSignalCatalogArn(const char* value) { m_signalCatalogArnHasBeenSet = true; m_signalCatalogArn.assign(value); }
76 inline CreateFleetRequest& WithSignalCatalogArn(const Aws::String& value) { SetSignalCatalogArn(value); return *this;}
77 inline CreateFleetRequest& WithSignalCatalogArn(Aws::String&& value) { SetSignalCatalogArn(std::move(value)); return *this;}
78 inline CreateFleetRequest& WithSignalCatalogArn(const char* value) { SetSignalCatalogArn(value); return *this;}
80
82
85 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
88 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
89 inline CreateFleetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
90 inline CreateFleetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
91 inline CreateFleetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
92 inline CreateFleetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
94 private:
95
96 Aws::String m_fleetId;
97 bool m_fleetIdHasBeenSet = false;
98
99 Aws::String m_description;
100 bool m_descriptionHasBeenSet = false;
101
102 Aws::String m_signalCatalogArn;
103 bool m_signalCatalogArnHasBeenSet = false;
104
105 Aws::Vector<Tag> m_tags;
106 bool m_tagsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace IoTFleetWise
111} // namespace Aws
CreateFleetRequest & WithDescription(const char *value)
CreateFleetRequest & AddTags(const Tag &value)
CreateFleetRequest & WithFleetId(Aws::String &&value)
CreateFleetRequest & WithTags(const Aws::Vector< Tag > &value)
CreateFleetRequest & WithDescription(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateFleetRequest & WithSignalCatalogArn(Aws::String &&value)
CreateFleetRequest & WithFleetId(const Aws::String &value)
CreateFleetRequest & WithTags(Aws::Vector< Tag > &&value)
void SetTags(Aws::Vector< Tag > &&value)
CreateFleetRequest & WithSignalCatalogArn(const Aws::String &value)
void SetDescription(const Aws::String &value)
void SetSignalCatalogArn(const Aws::String &value)
AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override
CreateFleetRequest & WithFleetId(const char *value)
CreateFleetRequest & AddTags(Tag &&value)
const Aws::Vector< Tag > & GetTags() const
CreateFleetRequest & WithSignalCatalogArn(const char *value)
CreateFleetRequest & WithDescription(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
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