AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
TestResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/iotdeviceadvisor/IoTDeviceAdvisor_EXPORTS.h>
9#include <aws/iotdeviceadvisor/model/GroupResult.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTDeviceAdvisor {
21namespace Model {
22
29 public:
30 AWS_IOTDEVICEADVISOR_API TestResult() = default;
31 AWS_IOTDEVICEADVISOR_API TestResult(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTDEVICEADVISOR_API TestResult& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTDEVICEADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<GroupResult>& GetGroups() const { return m_groups; }
40 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
41 template <typename GroupsT = Aws::Vector<GroupResult>>
42 void SetGroups(GroupsT&& value) {
43 m_groupsHasBeenSet = true;
44 m_groups = std::forward<GroupsT>(value);
45 }
46 template <typename GroupsT = Aws::Vector<GroupResult>>
47 TestResult& WithGroups(GroupsT&& value) {
48 SetGroups(std::forward<GroupsT>(value));
49 return *this;
50 }
51 template <typename GroupsT = GroupResult>
52 TestResult& AddGroups(GroupsT&& value) {
53 m_groupsHasBeenSet = true;
54 m_groups.emplace_back(std::forward<GroupsT>(value));
55 return *this;
56 }
58 private:
60 bool m_groupsHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace IoTDeviceAdvisor
65} // namespace Aws
TestResult & WithGroups(GroupsT &&value)
Definition TestResult.h:47
AWS_IOTDEVICEADVISOR_API TestResult()=default
AWS_IOTDEVICEADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const
TestResult & AddGroups(GroupsT &&value)
Definition TestResult.h:52
AWS_IOTDEVICEADVISOR_API TestResult(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< GroupResult > & GetGroups() const
Definition TestResult.h:39
AWS_IOTDEVICEADVISOR_API TestResult & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue