AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
46 inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = std::move(value); }
47 inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
48 inline ListCommandInvocationsRequest& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
49 inline ListCommandInvocationsRequest& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;}
50 inline ListCommandInvocationsRequest& WithCommandId(const char* value) { SetCommandId(value); return *this;}
52
54
57 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
58 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
59 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
60 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
61 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
62 inline ListCommandInvocationsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
63 inline ListCommandInvocationsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
64 inline ListCommandInvocationsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
66
68
73 inline int GetMaxResults() const{ return m_maxResults; }
74 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
75 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
76 inline ListCommandInvocationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
78
80
84 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
86 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
87 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
88 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
89 inline ListCommandInvocationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
90 inline ListCommandInvocationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
91 inline ListCommandInvocationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
93
95
99 inline const Aws::Vector<CommandFilter>& GetFilters() const{ return m_filters; }
100 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
101 inline void SetFilters(const Aws::Vector<CommandFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
102 inline void SetFilters(Aws::Vector<CommandFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
104 inline ListCommandInvocationsRequest& WithFilters(Aws::Vector<CommandFilter>&& value) { SetFilters(std::move(value)); return *this;}
105 inline ListCommandInvocationsRequest& AddFilters(const CommandFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
106 inline ListCommandInvocationsRequest& AddFilters(CommandFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
108
110
114 inline bool GetDetails() const{ return m_details; }
115 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
116 inline void SetDetails(bool value) { m_detailsHasBeenSet = true; m_details = value; }
117 inline ListCommandInvocationsRequest& WithDetails(bool value) { SetDetails(value); return *this;}
119 private:
120
121 Aws::String m_commandId;
122 bool m_commandIdHasBeenSet = false;
123
124 Aws::String m_instanceId;
125 bool m_instanceIdHasBeenSet = false;
126
127 int m_maxResults;
128 bool m_maxResultsHasBeenSet = false;
129
130 Aws::String m_nextToken;
131 bool m_nextTokenHasBeenSet = false;
132
134 bool m_filtersHasBeenSet = false;
135
136 bool m_details;
137 bool m_detailsHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace SSM
142} // namespace Aws
ListCommandInvocationsRequest & WithInstanceId(const Aws::String &value)
ListCommandInvocationsRequest & WithCommandId(const Aws::String &value)
ListCommandInvocationsRequest & AddFilters(CommandFilter &&value)
ListCommandInvocationsRequest & AddFilters(const CommandFilter &value)
ListCommandInvocationsRequest & WithNextToken(const char *value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListCommandInvocationsRequest & WithInstanceId(Aws::String &&value)
ListCommandInvocationsRequest & WithDetails(bool value)
ListCommandInvocationsRequest & WithInstanceId(const char *value)
ListCommandInvocationsRequest & WithMaxResults(int value)
AWS_SSM_API Aws::String SerializePayload() const override
void SetFilters(Aws::Vector< CommandFilter > &&value)
ListCommandInvocationsRequest & WithNextToken(const Aws::String &value)
const Aws::Vector< CommandFilter > & GetFilters() const
void SetFilters(const Aws::Vector< CommandFilter > &value)
virtual const char * GetServiceRequestName() const override
ListCommandInvocationsRequest & WithCommandId(Aws::String &&value)
ListCommandInvocationsRequest & WithFilters(Aws::Vector< CommandFilter > &&value)
ListCommandInvocationsRequest & WithFilters(const Aws::Vector< CommandFilter > &value)
ListCommandInvocationsRequest & WithNextToken(Aws::String &&value)
ListCommandInvocationsRequest & WithCommandId(const char *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