AWS SDK for C++  1.9.175
AWS SDK for C++
GroupResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace IoTDeviceAdvisor
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetGroupId() const{ return m_groupId; }
46 
50  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
51 
55  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
56 
60  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
61 
65  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
66 
70  inline GroupResult& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
71 
75  inline GroupResult& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
76 
80  inline GroupResult& WithGroupId(const char* value) { SetGroupId(value); return *this;}
81 
82 
86  inline const Aws::String& GetGroupName() const{ return m_groupName; }
87 
91  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
92 
96  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
97 
101  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
102 
106  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
107 
111  inline GroupResult& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
112 
116  inline GroupResult& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
117 
121  inline GroupResult& WithGroupName(const char* value) { SetGroupName(value); return *this;}
122 
123 
127  inline const Aws::Vector<TestCaseRun>& GetTests() const{ return m_tests; }
128 
132  inline bool TestsHasBeenSet() const { return m_testsHasBeenSet; }
133 
137  inline void SetTests(const Aws::Vector<TestCaseRun>& value) { m_testsHasBeenSet = true; m_tests = value; }
138 
142  inline void SetTests(Aws::Vector<TestCaseRun>&& value) { m_testsHasBeenSet = true; m_tests = std::move(value); }
143 
147  inline GroupResult& WithTests(const Aws::Vector<TestCaseRun>& value) { SetTests(value); return *this;}
148 
152  inline GroupResult& WithTests(Aws::Vector<TestCaseRun>&& value) { SetTests(std::move(value)); return *this;}
153 
157  inline GroupResult& AddTests(const TestCaseRun& value) { m_testsHasBeenSet = true; m_tests.push_back(value); return *this; }
158 
162  inline GroupResult& AddTests(TestCaseRun&& value) { m_testsHasBeenSet = true; m_tests.push_back(std::move(value)); return *this; }
163 
164  private:
165 
166  Aws::String m_groupId;
167  bool m_groupIdHasBeenSet;
168 
169  Aws::String m_groupName;
170  bool m_groupNameHasBeenSet;
171 
172  Aws::Vector<TestCaseRun> m_tests;
173  bool m_testsHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace IoTDeviceAdvisor
178 } // namespace Aws
Aws::IoTDeviceAdvisor::Model::GroupResult::GetGroupName
const Aws::String & GetGroupName() const
Definition: GroupResult.h:86
TestCaseRun.h
Aws::IoTDeviceAdvisor::Model::GroupResult::SetTests
void SetTests(const Aws::Vector< TestCaseRun > &value)
Definition: GroupResult.h:137
Aws::IoTDeviceAdvisor::Model::GroupResult::WithTests
GroupResult & WithTests(const Aws::Vector< TestCaseRun > &value)
Definition: GroupResult.h:147
Aws::IoTDeviceAdvisor::Model::GroupResult::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: GroupResult.h:91
Aws::IoTDeviceAdvisor::Model::GroupResult::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: GroupResult.h:55
Aws::IoTDeviceAdvisor::Model::GroupResult::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: GroupResult.h:96
Aws::IoTDeviceAdvisor::Model::GroupResult::GroupResult
GroupResult()
Aws::IoTDeviceAdvisor::Model::GroupResult::GetGroupId
const Aws::String & GetGroupId() const
Definition: GroupResult.h:45
Aws::IoTDeviceAdvisor::Model::GroupResult::SetGroupName
void SetGroupName(const char *value)
Definition: GroupResult.h:106
Aws::IoTDeviceAdvisor::Model::GroupResult::WithTests
GroupResult & WithTests(Aws::Vector< TestCaseRun > &&value)
Definition: GroupResult.h:152
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoTDeviceAdvisor::Model::GroupResult::WithGroupName
GroupResult & WithGroupName(const Aws::String &value)
Definition: GroupResult.h:111
Aws::IoTDeviceAdvisor::Model::GroupResult::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: GroupResult.h:101
AWSVector.h
AWS_IOTDEVICEADVISOR_API
#define AWS_IOTDEVICEADVISOR_API
Definition: IoTDeviceAdvisor_EXPORTS.h:28
Aws::IoTDeviceAdvisor::Model::GroupResult::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: GroupResult.h:60
Aws::IoTDeviceAdvisor::Model::GroupResult::GroupResult
GroupResult(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTDeviceAdvisor::Model::GroupResult::WithGroupName
GroupResult & WithGroupName(const char *value)
Definition: GroupResult.h:121
Aws::IoTDeviceAdvisor::Model::GroupResult::WithGroupId
GroupResult & WithGroupId(Aws::String &&value)
Definition: GroupResult.h:75
Aws::IoTDeviceAdvisor::Model::GroupResult::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTDeviceAdvisor::Model::GroupResult
Definition: GroupResult.h:34
Aws::IoTDeviceAdvisor::Model::GroupResult::WithGroupId
GroupResult & WithGroupId(const char *value)
Definition: GroupResult.h:80
Aws::IoTDeviceAdvisor::Model::GroupResult::GetTests
const Aws::Vector< TestCaseRun > & GetTests() const
Definition: GroupResult.h:127
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTDeviceAdvisor::Model::GroupResult::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: GroupResult.h:50
Aws::IoTDeviceAdvisor::Model::GroupResult::TestsHasBeenSet
bool TestsHasBeenSet() const
Definition: GroupResult.h:132
Aws::IoTDeviceAdvisor::Model::GroupResult::WithGroupName
GroupResult & WithGroupName(Aws::String &&value)
Definition: GroupResult.h:116
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::IoTDeviceAdvisor::Model::GroupResult::SetGroupId
void SetGroupId(const char *value)
Definition: GroupResult.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::IoTDeviceAdvisor::Model::GroupResult::operator=
GroupResult & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTDeviceAdvisor::Model::GroupResult::WithGroupId
GroupResult & WithGroupId(const Aws::String &value)
Definition: GroupResult.h:70
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTDeviceAdvisor::Model::GroupResult::AddTests
GroupResult & AddTests(TestCaseRun &&value)
Definition: GroupResult.h:162
IoTDeviceAdvisor_EXPORTS.h
Aws::IoTDeviceAdvisor::Model::GroupResult::AddTests
GroupResult & AddTests(const TestCaseRun &value)
Definition: GroupResult.h:157
Aws::IoTDeviceAdvisor::Model::GroupResult::SetTests
void SetTests(Aws::Vector< TestCaseRun > &&value)
Definition: GroupResult.h:142
Aws::IoTDeviceAdvisor::Model::TestCaseRun
Definition: TestCaseRun.h:34