AWS SDK for C++

AWS SDK for C++ Version 1.11.553

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
ListCommandInvocationsRequest.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/CommandFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSM
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SSM_API ListCommandInvocationsRequest() = 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 "ListCommandInvocations"; }
33
34 AWS_SSM_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetCommandId() const { return m_commandId; }
44 inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
45 template<typename CommandIdT = Aws::String>
46 void SetCommandId(CommandIdT&& value) { m_commandIdHasBeenSet = true; m_commandId = std::forward<CommandIdT>(value); }
47 template<typename CommandIdT = Aws::String>
48 ListCommandInvocationsRequest& WithCommandId(CommandIdT&& value) { SetCommandId(std::forward<CommandIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
56 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
57 template<typename InstanceIdT = Aws::String>
58 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
59 template<typename InstanceIdT = Aws::String>
60 ListCommandInvocationsRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
62
64
69 inline int GetMaxResults() const { return m_maxResults; }
70 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
71 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
72 inline ListCommandInvocationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
74
76
80 inline const Aws::String& GetNextToken() const { return m_nextToken; }
81 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
82 template<typename NextTokenT = Aws::String>
83 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
84 template<typename NextTokenT = Aws::String>
85 ListCommandInvocationsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
87
89
93 inline const Aws::Vector<CommandFilter>& GetFilters() const { return m_filters; }
94 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
95 template<typename FiltersT = Aws::Vector<CommandFilter>>
96 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
97 template<typename FiltersT = Aws::Vector<CommandFilter>>
98 ListCommandInvocationsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
99 template<typename FiltersT = CommandFilter>
100 ListCommandInvocationsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
102
104
108 inline bool GetDetails() const { return m_details; }
109 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
110 inline void SetDetails(bool value) { m_detailsHasBeenSet = true; m_details = value; }
111 inline ListCommandInvocationsRequest& WithDetails(bool value) { SetDetails(value); return *this;}
113 private:
114
115 Aws::String m_commandId;
116 bool m_commandIdHasBeenSet = false;
117
118 Aws::String m_instanceId;
119 bool m_instanceIdHasBeenSet = false;
120
121 int m_maxResults{0};
122 bool m_maxResultsHasBeenSet = false;
123
124 Aws::String m_nextToken;
125 bool m_nextTokenHasBeenSet = false;
126
128 bool m_filtersHasBeenSet = false;
129
130 bool m_details{false};
131 bool m_detailsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace SSM
136} // namespace Aws
ListCommandInvocationsRequest & WithInstanceId(InstanceIdT &&value)
ListCommandInvocationsRequest & WithCommandId(CommandIdT &&value)
ListCommandInvocationsRequest & WithNextToken(NextTokenT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListCommandInvocationsRequest & WithDetails(bool value)
ListCommandInvocationsRequest & WithMaxResults(int value)
ListCommandInvocationsRequest & AddFilters(FiltersT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
const Aws::Vector< CommandFilter > & GetFilters() const
virtual const char * GetServiceRequestName() const override
ListCommandInvocationsRequest & WithFilters(FiltersT &&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