AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
46 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
47 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
48 inline PutInventoryRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
49 inline PutInventoryRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
50 inline PutInventoryRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
52
54
57 inline const Aws::Vector<InventoryItem>& GetItems() const{ return m_items; }
58 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
59 inline void SetItems(const Aws::Vector<InventoryItem>& value) { m_itemsHasBeenSet = true; m_items = value; }
60 inline void SetItems(Aws::Vector<InventoryItem>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
61 inline PutInventoryRequest& WithItems(const Aws::Vector<InventoryItem>& value) { SetItems(value); return *this;}
62 inline PutInventoryRequest& WithItems(Aws::Vector<InventoryItem>&& value) { SetItems(std::move(value)); return *this;}
63 inline PutInventoryRequest& AddItems(const InventoryItem& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
64 inline PutInventoryRequest& AddItems(InventoryItem&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
66 private:
67
68 Aws::String m_instanceId;
69 bool m_instanceIdHasBeenSet = false;
70
72 bool m_itemsHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace SSM
77} // namespace Aws
PutInventoryRequest & WithInstanceId(const Aws::String &value)
const Aws::Vector< InventoryItem > & GetItems() const
PutInventoryRequest & AddItems(InventoryItem &&value)
void SetInstanceId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
PutInventoryRequest & WithInstanceId(const char *value)
void SetInstanceId(const Aws::String &value)
void SetItems(const Aws::Vector< InventoryItem > &value)
PutInventoryRequest & AddItems(const InventoryItem &value)
const Aws::String & GetInstanceId() const
AWS_SSM_API Aws::String SerializePayload() const override
PutInventoryRequest & WithItems(Aws::Vector< InventoryItem > &&value)
PutInventoryRequest & WithInstanceId(Aws::String &&value)
void SetItems(Aws::Vector< InventoryItem > &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutInventoryRequest & WithItems(const Aws::Vector< InventoryItem > &value)
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