AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PropertyGroupRequest.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/GroupType.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 Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTTwinMaker
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_IOTTWINMAKER_API PropertyGroupRequest() = default;
37 AWS_IOTTWINMAKER_API PropertyGroupRequest(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline GroupType GetGroupType() const { return m_groupType; }
47 inline bool GroupTypeHasBeenSet() const { return m_groupTypeHasBeenSet; }
48 inline void SetGroupType(GroupType value) { m_groupTypeHasBeenSet = true; m_groupType = value; }
49 inline PropertyGroupRequest& WithGroupType(GroupType value) { SetGroupType(value); return *this;}
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) { m_propertyNamesHasBeenSet = true; m_propertyNames = std::forward<PropertyNamesT>(value); }
60 template<typename PropertyNamesT = Aws::Vector<Aws::String>>
61 PropertyGroupRequest& WithPropertyNames(PropertyNamesT&& value) { SetPropertyNames(std::forward<PropertyNamesT>(value)); return *this;}
62 template<typename PropertyNamesT = Aws::String>
63 PropertyGroupRequest& AddPropertyNames(PropertyNamesT&& value) { m_propertyNamesHasBeenSet = true; m_propertyNames.emplace_back(std::forward<PropertyNamesT>(value)); return *this; }
65 private:
66
67 GroupType m_groupType{GroupType::NOT_SET};
68 bool m_groupTypeHasBeenSet = false;
69
70 Aws::Vector<Aws::String> m_propertyNames;
71 bool m_propertyNamesHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace IoTTwinMaker
76} // 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