AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StructuredMessageListDefinition.h
1
6#pragma once
7#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotfleetwise/model/StructuredMessageListType.h>
10#include <aws/core/utils/memory/stl/AWSAllocator.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 IoTFleetWise
24{
25namespace Model
26{
27 class StructuredMessage;
28
36 {
37 public:
38 AWS_IOTFLEETWISE_API StructuredMessageListDefinition() = default;
41 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 StructuredMessageListDefinition& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline const StructuredMessage& GetMemberType() const{
61 return *m_memberType;
62 }
63 inline bool MemberTypeHasBeenSet() const { return m_memberTypeHasBeenSet; }
64 template<typename MemberTypeT = StructuredMessage>
65 void SetMemberType(MemberTypeT&& value) {
66 m_memberTypeHasBeenSet = true;
67 m_memberType = Aws::MakeShared<StructuredMessage>("StructuredMessageListDefinition", std::forward<MemberTypeT>(value));
68 }
69 template<typename MemberTypeT = StructuredMessage>
70 StructuredMessageListDefinition& WithMemberType(MemberTypeT&& value) { SetMemberType(std::forward<MemberTypeT>(value)); return *this;}
72
74
77 inline StructuredMessageListType GetListType() const { return m_listType; }
78 inline bool ListTypeHasBeenSet() const { return m_listTypeHasBeenSet; }
79 inline void SetListType(StructuredMessageListType value) { m_listTypeHasBeenSet = true; m_listType = value; }
82
84
88 inline int GetCapacity() const { return m_capacity; }
89 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
90 inline void SetCapacity(int value) { m_capacityHasBeenSet = true; m_capacity = value; }
91 inline StructuredMessageListDefinition& WithCapacity(int value) { SetCapacity(value); return *this;}
93 private:
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 std::shared_ptr<StructuredMessage> m_memberType;
99 bool m_memberTypeHasBeenSet = false;
100
102 bool m_listTypeHasBeenSet = false;
103
104 int m_capacity{0};
105 bool m_capacityHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace IoTFleetWise
110} // namespace Aws
StructuredMessageListDefinition & WithListType(StructuredMessageListType value)
AWS_IOTFLEETWISE_API StructuredMessageListDefinition()=default
AWS_IOTFLEETWISE_API StructuredMessageListDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTFLEETWISE_API StructuredMessageListDefinition(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
StructuredMessageListDefinition & WithMemberType(MemberTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue