AWS SDK for C++  1.9.131
AWS SDK for C++
DescribeJobsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/mgn/Mgn_EXPORTS.h>
8 #include <aws/mgn/MgnRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace mgn
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeJobs"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const DescribeJobsRequestFilters& GetFilters() const{ return m_filters; }
40 
44  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
45 
49  inline void SetFilters(const DescribeJobsRequestFilters& value) { m_filtersHasBeenSet = true; m_filters = value; }
50 
54  inline void SetFilters(DescribeJobsRequestFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
55 
59  inline DescribeJobsRequest& WithFilters(const DescribeJobsRequestFilters& value) { SetFilters(value); return *this;}
60 
64  inline DescribeJobsRequest& WithFilters(DescribeJobsRequestFilters&& value) { SetFilters(std::move(value)); return *this;}
65 
66 
70  inline int GetMaxResults() const{ return m_maxResults; }
71 
75  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
76 
80  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
81 
85  inline DescribeJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
86 
87 
91  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
92 
96  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
97 
101  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
102 
106  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
107 
111  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
112 
116  inline DescribeJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
117 
121  inline DescribeJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
122 
126  inline DescribeJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
127 
128  private:
129 
130  DescribeJobsRequestFilters m_filters;
131  bool m_filtersHasBeenSet;
132 
133  int m_maxResults;
134  bool m_maxResultsHasBeenSet;
135 
136  Aws::String m_nextToken;
137  bool m_nextTokenHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace mgn
142 } // namespace Aws
Aws::mgn::Model::DescribeJobsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::mgn::Model::DescribeJobsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeJobsRequest.h:96
Aws::mgn::Model::DescribeJobsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeJobsRequest.h:44
Aws::mgn::Model::DescribeJobsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeJobsRequest.h:106
DescribeJobsRequestFilters.h
Aws::mgn::Model::DescribeJobsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeJobsRequest.h:111
Aws::mgn::Model::DescribeJobsRequest::SetFilters
void SetFilters(DescribeJobsRequestFilters &&value)
Definition: DescribeJobsRequest.h:54
Aws::mgn::Model::DescribeJobsRequest
Definition: DescribeJobsRequest.h:23
Aws::mgn::Model::DescribeJobsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeJobsRequest.h:75
Aws::mgn::Model::DescribeJobsRequest::WithMaxResults
DescribeJobsRequest & WithMaxResults(int value)
Definition: DescribeJobsRequest.h:85
AWS_MGN_API
#define AWS_MGN_API
Definition: Mgn_EXPORTS.h:28
Aws::mgn::Model::DescribeJobsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeJobsRequest.h:101
Aws::mgn::MgnRequest
Definition: MgnRequest.h:17
Aws::mgn::Model::DescribeJobsRequest::DescribeJobsRequest
DescribeJobsRequest()
MgnRequest.h
Aws::mgn::Model::DescribeJobsRequestFilters
Definition: DescribeJobsRequestFilters.h:33
Aws::mgn::Model::DescribeJobsRequest::WithFilters
DescribeJobsRequest & WithFilters(const DescribeJobsRequestFilters &value)
Definition: DescribeJobsRequest.h:59
Mgn_EXPORTS.h
AWSString.h
Aws::mgn::Model::DescribeJobsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeJobsRequest.h:80
Aws::mgn::Model::DescribeJobsRequest::GetFilters
const DescribeJobsRequestFilters & GetFilters() const
Definition: DescribeJobsRequest.h:39
Aws::mgn::Model::DescribeJobsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeJobsRequest.h:91
Aws::mgn::Model::DescribeJobsRequest::WithNextToken
DescribeJobsRequest & WithNextToken(const char *value)
Definition: DescribeJobsRequest.h:126
Aws
Definition: AccessManagementClient.h:15
Aws::mgn::Model::DescribeJobsRequest::WithNextToken
DescribeJobsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeJobsRequest.h:116
Aws::mgn::Model::DescribeJobsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeJobsRequest.h:31
Aws::mgn::Model::DescribeJobsRequest::WithFilters
DescribeJobsRequest & WithFilters(DescribeJobsRequestFilters &&value)
Definition: DescribeJobsRequest.h:64
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::mgn::Model::DescribeJobsRequest::WithNextToken
DescribeJobsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeJobsRequest.h:121
Aws::mgn::Model::DescribeJobsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeJobsRequest.h:70
Aws::mgn::Model::DescribeJobsRequest::SetFilters
void SetFilters(const DescribeJobsRequestFilters &value)
Definition: DescribeJobsRequest.h:49