AWS SDK for C++  1.9.40
AWS SDK for C++
ListDocumentVersionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
8 #include <aws/ssm/SSMRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SSM
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ListDocumentVersions"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetName() const{ return m_name; }
41 
45  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 
50  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 
55  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 
60  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 
65  inline ListDocumentVersionsRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
66 
70  inline ListDocumentVersionsRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 
75  inline ListDocumentVersionsRequest& WithName(const char* value) { SetName(value); return *this;}
76 
77 
83  inline int GetMaxResults() const{ return m_maxResults; }
84 
90  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
91 
97  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
98 
104  inline ListDocumentVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
105 
106 
111  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
112 
117  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
118 
123  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
124 
129  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
130 
135  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
136 
141  inline ListDocumentVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
142 
147  inline ListDocumentVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
148 
153  inline ListDocumentVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
154 
155  private:
156 
157  Aws::String m_name;
158  bool m_nameHasBeenSet;
159 
160  int m_maxResults;
161  bool m_maxResultsHasBeenSet;
162 
163  Aws::String m_nextToken;
164  bool m_nextTokenHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace SSM
169 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::ListDocumentVersionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListDocumentVersionsRequest.h:117
Aws::SSM::Model::ListDocumentVersionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListDocumentVersionsRequest.h:135
SSM_EXPORTS.h
Aws::SSM::Model::ListDocumentVersionsRequest::WithNextToken
ListDocumentVersionsRequest & WithNextToken(const Aws::String &value)
Definition: ListDocumentVersionsRequest.h:141
Aws::SSM::Model::ListDocumentVersionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSM::Model::ListDocumentVersionsRequest::ListDocumentVersionsRequest
ListDocumentVersionsRequest()
Aws::SSM::Model::ListDocumentVersionsRequest
Definition: ListDocumentVersionsRequest.h:22
Aws::SSM::Model::ListDocumentVersionsRequest::WithName
ListDocumentVersionsRequest & WithName(const char *value)
Definition: ListDocumentVersionsRequest.h:75
Aws::SSM::Model::ListDocumentVersionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListDocumentVersionsRequest.h:111
Aws::SSM::Model::ListDocumentVersionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListDocumentVersionsRequest.h:129
Aws::SSM::Model::ListDocumentVersionsRequest::WithMaxResults
ListDocumentVersionsRequest & WithMaxResults(int value)
Definition: ListDocumentVersionsRequest.h:104
AWSString.h
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::ListDocumentVersionsRequest::GetName
const Aws::String & GetName() const
Definition: ListDocumentVersionsRequest.h:40
Aws::SSM::Model::ListDocumentVersionsRequest::SetName
void SetName(Aws::String &&value)
Definition: ListDocumentVersionsRequest.h:55
Aws::SSM::Model::ListDocumentVersionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSM::Model::ListDocumentVersionsRequest::SetName
void SetName(const char *value)
Definition: ListDocumentVersionsRequest.h:60
Aws::SSM::Model::ListDocumentVersionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListDocumentVersionsRequest.h:97
Aws::SSM::Model::ListDocumentVersionsRequest::WithName
ListDocumentVersionsRequest & WithName(Aws::String &&value)
Definition: ListDocumentVersionsRequest.h:70
Aws::SSM::Model::ListDocumentVersionsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListDocumentVersionsRequest.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::ListDocumentVersionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListDocumentVersionsRequest.h:123
Aws::SSM::Model::ListDocumentVersionsRequest::WithNextToken
ListDocumentVersionsRequest & WithNextToken(Aws::String &&value)
Definition: ListDocumentVersionsRequest.h:147
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::ListDocumentVersionsRequest::WithName
ListDocumentVersionsRequest & WithName(const Aws::String &value)
Definition: ListDocumentVersionsRequest.h:65
Aws::SSM::Model::ListDocumentVersionsRequest::SetName
void SetName(const Aws::String &value)
Definition: ListDocumentVersionsRequest.h:50
Aws::SSM::Model::ListDocumentVersionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListDocumentVersionsRequest.h:90
Aws::SSM::Model::ListDocumentVersionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListDocumentVersionsRequest.h:30
Aws::SSM::Model::ListDocumentVersionsRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ListDocumentVersionsRequest.h:45
Aws::SSM::Model::ListDocumentVersionsRequest::WithNextToken
ListDocumentVersionsRequest & WithNextToken(const char *value)
Definition: ListDocumentVersionsRequest.h:153
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
SSMRequest.h