AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename PlacementNameT = Aws::String>
43 void SetPlacementName(PlacementNameT&& value) { m_placementNameHasBeenSet = true; m_placementName = std::forward<PlacementNameT>(value); }
44 template<typename PlacementNameT = Aws::String>
45 CreatePlacementRequest& WithPlacementName(PlacementNameT&& value) { SetPlacementName(std::forward<PlacementNameT>(value)); return *this;}
47
49
52 inline const Aws::String& GetProjectName() const { return m_projectName; }
53 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
54 template<typename ProjectNameT = Aws::String>
55 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet = true; m_projectName = std::forward<ProjectNameT>(value); }
56 template<typename ProjectNameT = Aws::String>
57 CreatePlacementRequest& WithProjectName(ProjectNameT&& value) { SetProjectName(std::forward<ProjectNameT>(value)); return *this;}
59
61
65 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
66 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
67 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
68 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
69 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
70 CreatePlacementRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
71 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
72 CreatePlacementRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
73 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
74 }
76 private:
77
78 Aws::String m_placementName;
79 bool m_placementNameHasBeenSet = false;
80
81 Aws::String m_projectName;
82 bool m_projectNameHasBeenSet = false;
83
85 bool m_attributesHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace IoT1ClickProjects
90} // namespace Aws
CreatePlacementRequest & WithAttributes(AttributesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
CreatePlacementRequest & WithProjectName(ProjectNameT &&value)
CreatePlacementRequest & WithPlacementName(PlacementNameT &&value)
AWS_IOT1CLICKPROJECTS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_IOT1CLICKPROJECTS_API CreatePlacementRequest()=default
CreatePlacementRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&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