AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeJobDefinitionsRequest.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/BatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Batch
16{
17namespace Model
18{
19
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "DescribeJobDefinitions"; }
36
37 AWS_BATCH_API Aws::String SerializePayload() const override;
38
39
41
48 inline const Aws::Vector<Aws::String>& GetJobDefinitions() const{ return m_jobDefinitions; }
49 inline bool JobDefinitionsHasBeenSet() const { return m_jobDefinitionsHasBeenSet; }
50 inline void SetJobDefinitions(const Aws::Vector<Aws::String>& value) { m_jobDefinitionsHasBeenSet = true; m_jobDefinitions = value; }
51 inline void SetJobDefinitions(Aws::Vector<Aws::String>&& value) { m_jobDefinitionsHasBeenSet = true; m_jobDefinitions = std::move(value); }
54 inline DescribeJobDefinitionsRequest& AddJobDefinitions(const Aws::String& value) { m_jobDefinitionsHasBeenSet = true; m_jobDefinitions.push_back(value); return *this; }
55 inline DescribeJobDefinitionsRequest& AddJobDefinitions(Aws::String&& value) { m_jobDefinitionsHasBeenSet = true; m_jobDefinitions.push_back(std::move(value)); return *this; }
56 inline DescribeJobDefinitionsRequest& AddJobDefinitions(const char* value) { m_jobDefinitionsHasBeenSet = true; m_jobDefinitions.push_back(value); return *this; }
58
60
71 inline int GetMaxResults() const{ return m_maxResults; }
72 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
73 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
74 inline DescribeJobDefinitionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
76
78
81 inline const Aws::String& GetJobDefinitionName() const{ return m_jobDefinitionName; }
82 inline bool JobDefinitionNameHasBeenSet() const { return m_jobDefinitionNameHasBeenSet; }
83 inline void SetJobDefinitionName(const Aws::String& value) { m_jobDefinitionNameHasBeenSet = true; m_jobDefinitionName = value; }
84 inline void SetJobDefinitionName(Aws::String&& value) { m_jobDefinitionNameHasBeenSet = true; m_jobDefinitionName = std::move(value); }
85 inline void SetJobDefinitionName(const char* value) { m_jobDefinitionNameHasBeenSet = true; m_jobDefinitionName.assign(value); }
87 inline DescribeJobDefinitionsRequest& WithJobDefinitionName(Aws::String&& value) { SetJobDefinitionName(std::move(value)); return *this;}
88 inline DescribeJobDefinitionsRequest& WithJobDefinitionName(const char* value) { SetJobDefinitionName(value); return *this;}
90
92
95 inline const Aws::String& GetStatus() const{ return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
98 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
99 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
100 inline DescribeJobDefinitionsRequest& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
101 inline DescribeJobDefinitionsRequest& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
102 inline DescribeJobDefinitionsRequest& WithStatus(const char* value) { SetStatus(value); return *this;}
104
106
116 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
117 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
118 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
119 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
120 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
121 inline DescribeJobDefinitionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
122 inline DescribeJobDefinitionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
123 inline DescribeJobDefinitionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
125 private:
126
127 Aws::Vector<Aws::String> m_jobDefinitions;
128 bool m_jobDefinitionsHasBeenSet = false;
129
130 int m_maxResults;
131 bool m_maxResultsHasBeenSet = false;
132
133 Aws::String m_jobDefinitionName;
134 bool m_jobDefinitionNameHasBeenSet = false;
135
136 Aws::String m_status;
137 bool m_statusHasBeenSet = false;
138
139 Aws::String m_nextToken;
140 bool m_nextTokenHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace Batch
145} // namespace Aws
DescribeJobDefinitionsRequest & WithStatus(Aws::String &&value)
DescribeJobDefinitionsRequest & WithNextToken(const char *value)
DescribeJobDefinitionsRequest & WithJobDefinitions(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetJobDefinitions() const
AWS_BATCH_API Aws::String SerializePayload() const override
void SetJobDefinitions(const Aws::Vector< Aws::String > &value)
DescribeJobDefinitionsRequest & AddJobDefinitions(Aws::String &&value)
DescribeJobDefinitionsRequest & WithStatus(const Aws::String &value)
DescribeJobDefinitionsRequest & WithStatus(const char *value)
DescribeJobDefinitionsRequest & AddJobDefinitions(const Aws::String &value)
DescribeJobDefinitionsRequest & WithJobDefinitions(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
DescribeJobDefinitionsRequest & WithMaxResults(int value)
DescribeJobDefinitionsRequest & WithNextToken(Aws::String &&value)
DescribeJobDefinitionsRequest & WithNextToken(const Aws::String &value)
DescribeJobDefinitionsRequest & WithJobDefinitionName(Aws::String &&value)
DescribeJobDefinitionsRequest & WithJobDefinitionName(const Aws::String &value)
void SetJobDefinitions(Aws::Vector< Aws::String > &&value)
DescribeJobDefinitionsRequest & AddJobDefinitions(const char *value)
DescribeJobDefinitionsRequest & WithJobDefinitionName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector