AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchAssociateResourceRequest.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/fms/FMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace FMS
16{
17namespace Model
18{
19
23 {
24 public:
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 "BatchAssociateResource"; }
32
33 AWS_FMS_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetResourceSetIdentifier() const{ return m_resourceSetIdentifier; }
44 inline bool ResourceSetIdentifierHasBeenSet() const { return m_resourceSetIdentifierHasBeenSet; }
45 inline void SetResourceSetIdentifier(const Aws::String& value) { m_resourceSetIdentifierHasBeenSet = true; m_resourceSetIdentifier = value; }
46 inline void SetResourceSetIdentifier(Aws::String&& value) { m_resourceSetIdentifierHasBeenSet = true; m_resourceSetIdentifier = std::move(value); }
47 inline void SetResourceSetIdentifier(const char* value) { m_resourceSetIdentifierHasBeenSet = true; m_resourceSetIdentifier.assign(value); }
50 inline BatchAssociateResourceRequest& WithResourceSetIdentifier(const char* value) { SetResourceSetIdentifier(value); return *this;}
52
54
59 inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
60 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
61 inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
62 inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
63 inline BatchAssociateResourceRequest& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
64 inline BatchAssociateResourceRequest& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
65 inline BatchAssociateResourceRequest& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
66 inline BatchAssociateResourceRequest& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
67 inline BatchAssociateResourceRequest& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
69 private:
70
71 Aws::String m_resourceSetIdentifier;
72 bool m_resourceSetIdentifierHasBeenSet = false;
73
75 bool m_itemsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace FMS
80} // namespace Aws
BatchAssociateResourceRequest & AddItems(const Aws::String &value)
BatchAssociateResourceRequest & WithResourceSetIdentifier(const Aws::String &value)
BatchAssociateResourceRequest & AddItems(Aws::String &&value)
AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchAssociateResourceRequest & WithItems(const Aws::Vector< Aws::String > &value)
BatchAssociateResourceRequest & AddItems(const char *value)
BatchAssociateResourceRequest & WithResourceSetIdentifier(const char *value)
virtual const char * GetServiceRequestName() const override
void SetItems(const Aws::Vector< Aws::String > &value)
BatchAssociateResourceRequest & WithResourceSetIdentifier(Aws::String &&value)
AWS_FMS_API Aws::String SerializePayload() const override
void SetItems(Aws::Vector< Aws::String > &&value)
BatchAssociateResourceRequest & WithItems(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetItems() const
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