AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePlacementRequest.h
1
6#pragma once
7#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
8#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IoT1ClickProjects
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IOT1CLICKPROJECTS_API CreatePlacementRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreatePlacement"; }
32
33 AWS_IOT1CLICKPROJECTS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetPlacementName() const{ return m_placementName; }
41 inline bool PlacementNameHasBeenSet() const { return m_placementNameHasBeenSet; }
42 inline void SetPlacementName(const Aws::String& value) { m_placementNameHasBeenSet = true; m_placementName = value; }
43 inline void SetPlacementName(Aws::String&& value) { m_placementNameHasBeenSet = true; m_placementName = std::move(value); }
44 inline void SetPlacementName(const char* value) { m_placementNameHasBeenSet = true; m_placementName.assign(value); }
45 inline CreatePlacementRequest& WithPlacementName(const Aws::String& value) { SetPlacementName(value); return *this;}
46 inline CreatePlacementRequest& WithPlacementName(Aws::String&& value) { SetPlacementName(std::move(value)); return *this;}
47 inline CreatePlacementRequest& WithPlacementName(const char* value) { SetPlacementName(value); return *this;}
49
51
54 inline const Aws::String& GetProjectName() const{ return m_projectName; }
55 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
56 inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
57 inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
58 inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
59 inline CreatePlacementRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
60 inline CreatePlacementRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
61 inline CreatePlacementRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
63
65
69 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
70 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
71 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
72 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
75 inline CreatePlacementRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
76 inline CreatePlacementRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
77 inline CreatePlacementRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
78 inline CreatePlacementRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
79 inline CreatePlacementRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
80 inline CreatePlacementRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
81 inline CreatePlacementRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
83 private:
84
85 Aws::String m_placementName;
86 bool m_placementNameHasBeenSet = false;
87
88 Aws::String m_projectName;
89 bool m_projectNameHasBeenSet = false;
90
92 bool m_attributesHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace IoT1ClickProjects
97} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
CreatePlacementRequest & AddAttributes(const char *key, Aws::String &&value)
CreatePlacementRequest & AddAttributes(Aws::String &&key, const char *value)
CreatePlacementRequest & AddAttributes(const char *key, const char *value)
CreatePlacementRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
CreatePlacementRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
CreatePlacementRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
CreatePlacementRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
CreatePlacementRequest & WithProjectName(const Aws::String &value)
CreatePlacementRequest & WithProjectName(Aws::String &&value)
AWS_IOT1CLICKPROJECTS_API Aws::String SerializePayload() const override
CreatePlacementRequest & WithPlacementName(const char *value)
CreatePlacementRequest & WithPlacementName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreatePlacementRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
CreatePlacementRequest & WithPlacementName(Aws::String &&value)
CreatePlacementRequest & WithProjectName(const char *value)
CreatePlacementRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String