AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListCommandsRequest.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 ListCommandsRequest();
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 "ListCommands"; }
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 ListCommandsRequest& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
49 inline ListCommandsRequest& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;}
50 inline ListCommandsRequest& WithCommandId(const char* value) { SetCommandId(value); return *this;}
52
54
60 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
61 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
62 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
63 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
64 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
65 inline ListCommandsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
66 inline ListCommandsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
67 inline ListCommandsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
69
71
76 inline int GetMaxResults() const{ return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
79 inline ListCommandsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
81
83
87 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
88 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
90 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
91 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
92 inline ListCommandsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
93 inline ListCommandsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
94 inline ListCommandsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
96
98
102 inline const Aws::Vector<CommandFilter>& GetFilters() const{ return m_filters; }
103 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
104 inline void SetFilters(const Aws::Vector<CommandFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
105 inline void SetFilters(Aws::Vector<CommandFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
106 inline ListCommandsRequest& WithFilters(const Aws::Vector<CommandFilter>& value) { SetFilters(value); return *this;}
107 inline ListCommandsRequest& WithFilters(Aws::Vector<CommandFilter>&& value) { SetFilters(std::move(value)); return *this;}
108 inline ListCommandsRequest& AddFilters(const CommandFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
109 inline ListCommandsRequest& AddFilters(CommandFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
111 private:
112
113 Aws::String m_commandId;
114 bool m_commandIdHasBeenSet = false;
115
116 Aws::String m_instanceId;
117 bool m_instanceIdHasBeenSet = false;
118
119 int m_maxResults;
120 bool m_maxResultsHasBeenSet = false;
121
122 Aws::String m_nextToken;
123 bool m_nextTokenHasBeenSet = false;
124
126 bool m_filtersHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace SSM
131} // namespace Aws
ListCommandsRequest & WithInstanceId(const char *value)
void SetInstanceId(Aws::String &&value)
AWS_SSM_API Aws::String SerializePayload() const override
const Aws::String & GetNextToken() const
const Aws::String & GetCommandId() const
ListCommandsRequest & WithInstanceId(Aws::String &&value)
void SetFilters(Aws::Vector< CommandFilter > &&value)
ListCommandsRequest & WithMaxResults(int value)
ListCommandsRequest & WithNextToken(const char *value)
ListCommandsRequest & WithNextToken(Aws::String &&value)
ListCommandsRequest & WithCommandId(Aws::String &&value)
ListCommandsRequest & WithFilters(const Aws::Vector< CommandFilter > &value)
ListCommandsRequest & WithNextToken(const Aws::String &value)
ListCommandsRequest & AddFilters(const CommandFilter &value)
void SetFilters(const Aws::Vector< CommandFilter > &value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListCommandsRequest & AddFilters(CommandFilter &&value)
void SetInstanceId(const Aws::String &value)
const Aws::Vector< CommandFilter > & GetFilters() const
ListCommandsRequest & WithCommandId(const char *value)
ListCommandsRequest & WithCommandId(const Aws::String &value)
void SetNextToken(const Aws::String &value)
void SetCommandId(const Aws::String &value)
const Aws::String & GetInstanceId() const
ListCommandsRequest & WithFilters(Aws::Vector< CommandFilter > &&value)
virtual const char * GetServiceRequestName() const override
ListCommandsRequest & WithInstanceId(const Aws::String &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