AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GroupResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotdeviceadvisor/IoTDeviceAdvisor_EXPORTS.h>
10#include <aws/iotdeviceadvisor/model/TestCaseRun.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTDeviceAdvisor {
22namespace Model {
23
30 public:
31 AWS_IOTDEVICEADVISOR_API GroupResult() = default;
32 AWS_IOTDEVICEADVISOR_API GroupResult(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTDEVICEADVISOR_API GroupResult& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTDEVICEADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetGroupId() const { return m_groupId; }
41 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
42 template <typename GroupIdT = Aws::String>
43 void SetGroupId(GroupIdT&& value) {
44 m_groupIdHasBeenSet = true;
45 m_groupId = std::forward<GroupIdT>(value);
46 }
47 template <typename GroupIdT = Aws::String>
48 GroupResult& WithGroupId(GroupIdT&& value) {
49 SetGroupId(std::forward<GroupIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetGroupName() const { return m_groupName; }
59 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
60 template <typename GroupNameT = Aws::String>
61 void SetGroupName(GroupNameT&& value) {
62 m_groupNameHasBeenSet = true;
63 m_groupName = std::forward<GroupNameT>(value);
64 }
65 template <typename GroupNameT = Aws::String>
66 GroupResult& WithGroupName(GroupNameT&& value) {
67 SetGroupName(std::forward<GroupNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<TestCaseRun>& GetTests() const { return m_tests; }
77 inline bool TestsHasBeenSet() const { return m_testsHasBeenSet; }
78 template <typename TestsT = Aws::Vector<TestCaseRun>>
79 void SetTests(TestsT&& value) {
80 m_testsHasBeenSet = true;
81 m_tests = std::forward<TestsT>(value);
82 }
83 template <typename TestsT = Aws::Vector<TestCaseRun>>
84 GroupResult& WithTests(TestsT&& value) {
85 SetTests(std::forward<TestsT>(value));
86 return *this;
87 }
88 template <typename TestsT = TestCaseRun>
89 GroupResult& AddTests(TestsT&& value) {
90 m_testsHasBeenSet = true;
91 m_tests.emplace_back(std::forward<TestsT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_groupId;
97
98 Aws::String m_groupName;
99
101 bool m_groupIdHasBeenSet = false;
102 bool m_groupNameHasBeenSet = false;
103 bool m_testsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace IoTDeviceAdvisor
108} // namespace Aws
AWS_IOTDEVICEADVISOR_API GroupResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTDEVICEADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const
GroupResult & WithTests(TestsT &&value)
Definition GroupResult.h:84
GroupResult & WithGroupId(GroupIdT &&value)
Definition GroupResult.h:48
AWS_IOTDEVICEADVISOR_API GroupResult(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetGroupName() const
Definition GroupResult.h:58
const Aws::Vector< TestCaseRun > & GetTests() const
Definition GroupResult.h:76
GroupResult & WithGroupName(GroupNameT &&value)
Definition GroupResult.h:66
void SetGroupName(GroupNameT &&value)
Definition GroupResult.h:61
const Aws::String & GetGroupId() const
Definition GroupResult.h:40
GroupResult & AddTests(TestsT &&value)
Definition GroupResult.h:89
AWS_IOTDEVICEADVISOR_API GroupResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue