AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
CreateAssociationBatchRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/CreateAssociationBatchRequestEntry.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SSM {
17namespace Model {
18
22 public:
23 AWS_SSM_API CreateAssociationBatchRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateAssociationBatch"; }
30
31 AWS_SSM_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::Vector<CreateAssociationBatchRequestEntry>& GetEntries() const { return m_entries; }
40 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
41 template <typename EntriesT = Aws::Vector<CreateAssociationBatchRequestEntry>>
42 void SetEntries(EntriesT&& value) {
43 m_entriesHasBeenSet = true;
44 m_entries = std::forward<EntriesT>(value);
45 }
46 template <typename EntriesT = Aws::Vector<CreateAssociationBatchRequestEntry>>
48 SetEntries(std::forward<EntriesT>(value));
49 return *this;
50 }
51 template <typename EntriesT = CreateAssociationBatchRequestEntry>
53 m_entriesHasBeenSet = true;
54 m_entries.emplace_back(std::forward<EntriesT>(value));
55 return *this;
56 }
58
60
72 inline const Aws::String& GetAssociationDispatchAssumeRole() const { return m_associationDispatchAssumeRole; }
73 inline bool AssociationDispatchAssumeRoleHasBeenSet() const { return m_associationDispatchAssumeRoleHasBeenSet; }
74 template <typename AssociationDispatchAssumeRoleT = Aws::String>
75 void SetAssociationDispatchAssumeRole(AssociationDispatchAssumeRoleT&& value) {
76 m_associationDispatchAssumeRoleHasBeenSet = true;
77 m_associationDispatchAssumeRole = std::forward<AssociationDispatchAssumeRoleT>(value);
78 }
79 template <typename AssociationDispatchAssumeRoleT = Aws::String>
80 CreateAssociationBatchRequest& WithAssociationDispatchAssumeRole(AssociationDispatchAssumeRoleT&& value) {
81 SetAssociationDispatchAssumeRole(std::forward<AssociationDispatchAssumeRoleT>(value));
82 return *this;
83 }
85 private:
87
88 Aws::String m_associationDispatchAssumeRole;
89 bool m_entriesHasBeenSet = false;
90 bool m_associationDispatchAssumeRoleHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace SSM
95} // namespace Aws
const Aws::Vector< CreateAssociationBatchRequestEntry > & GetEntries() const
CreateAssociationBatchRequest & WithAssociationDispatchAssumeRole(AssociationDispatchAssumeRoleT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SSM_API Aws::String SerializePayload() const override
void SetAssociationDispatchAssumeRole(AssociationDispatchAssumeRoleT &&value)
CreateAssociationBatchRequest & AddEntries(EntriesT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAssociationBatchRequest & WithEntries(EntriesT &&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