AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
PropertyGroupRequest.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/iottwinmaker/IoTTwinMaker_EXPORTS.h>
10#include <aws/iottwinmaker/model/GroupType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTTwinMaker {
22namespace Model {
23
30 public:
31 AWS_IOTTWINMAKER_API PropertyGroupRequest() = default;
32 AWS_IOTTWINMAKER_API PropertyGroupRequest(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline GroupType GetGroupType() const { return m_groupType; }
41 inline bool GroupTypeHasBeenSet() const { return m_groupTypeHasBeenSet; }
42 inline void SetGroupType(GroupType value) {
43 m_groupTypeHasBeenSet = true;
44 m_groupType = value;
45 }
47 SetGroupType(value);
48 return *this;
49 }
51
53
56 inline const Aws::Vector<Aws::String>& GetPropertyNames() const { return m_propertyNames; }
57 inline bool PropertyNamesHasBeenSet() const { return m_propertyNamesHasBeenSet; }
58 template <typename PropertyNamesT = Aws::Vector<Aws::String>>
59 void SetPropertyNames(PropertyNamesT&& value) {
60 m_propertyNamesHasBeenSet = true;
61 m_propertyNames = std::forward<PropertyNamesT>(value);
62 }
63 template <typename PropertyNamesT = Aws::Vector<Aws::String>>
64 PropertyGroupRequest& WithPropertyNames(PropertyNamesT&& value) {
65 SetPropertyNames(std::forward<PropertyNamesT>(value));
66 return *this;
67 }
68 template <typename PropertyNamesT = Aws::String>
69 PropertyGroupRequest& AddPropertyNames(PropertyNamesT&& value) {
70 m_propertyNamesHasBeenSet = true;
71 m_propertyNames.emplace_back(std::forward<PropertyNamesT>(value));
72 return *this;
73 }
75 private:
76 GroupType m_groupType{GroupType::NOT_SET};
77
78 Aws::Vector<Aws::String> m_propertyNames;
79 bool m_groupTypeHasBeenSet = false;
80 bool m_propertyNamesHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace IoTTwinMaker
85} // namespace Aws
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
PropertyGroupRequest & WithPropertyNames(PropertyNamesT &&value)
AWS_IOTTWINMAKER_API PropertyGroupRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetPropertyNames() const
PropertyGroupRequest & AddPropertyNames(PropertyNamesT &&value)
AWS_IOTTWINMAKER_API PropertyGroupRequest()=default
PropertyGroupRequest & WithGroupType(GroupType value)
AWS_IOTTWINMAKER_API PropertyGroupRequest(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue