AWS SDK for C++

AWS SDK for C++ Version 1.11.550

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
PutInventoryRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/model/InventoryItem.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSM
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SSM_API PutInventoryRequest() = default;
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 "PutInventory"; }
33
34 AWS_SSM_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 template<typename InstanceIdT = Aws::String>
46 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
47 template<typename InstanceIdT = Aws::String>
48 PutInventoryRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
50
52
55 inline const Aws::Vector<InventoryItem>& GetItems() const { return m_items; }
56 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
57 template<typename ItemsT = Aws::Vector<InventoryItem>>
58 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
59 template<typename ItemsT = Aws::Vector<InventoryItem>>
60 PutInventoryRequest& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
61 template<typename ItemsT = InventoryItem>
62 PutInventoryRequest& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
64 private:
65
66 Aws::String m_instanceId;
67 bool m_instanceIdHasBeenSet = false;
68
70 bool m_itemsHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace SSM
75} // namespace Aws
const Aws::Vector< InventoryItem > & GetItems() const
PutInventoryRequest & AddItems(ItemsT &&value)
virtual const char * GetServiceRequestName() const override
PutInventoryRequest & WithItems(ItemsT &&value)
const Aws::String & GetInstanceId() const
AWS_SSM_API Aws::String SerializePayload() const override
void SetInstanceId(InstanceIdT &&value)
AWS_SSM_API PutInventoryRequest()=default
PutInventoryRequest & WithInstanceId(InstanceIdT &&value)
AWS_SSM_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