AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DescriptorEntry.h
1
6#pragma once
7#include <aws/agent-discovery/AgentDiscovery_EXPORTS.h>
8#include <aws/agent-discovery/model/DescriptorSource.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AgentDiscovery {
22namespace Model {
23
34 public:
35 AWS_AGENTDISCOVERY_API DescriptorEntry() = default;
36 AWS_AGENTDISCOVERY_API DescriptorEntry(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AGENTDISCOVERY_API DescriptorEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AGENTDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetData() const { return m_data; }
45 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
46 template <typename DataT = Aws::String>
47 void SetData(DataT&& value) {
48 m_dataHasBeenSet = true;
49 m_data = std::forward<DataT>(value);
50 }
51 template <typename DataT = Aws::String>
52 DescriptorEntry& WithData(DataT&& value) {
53 SetData(std::forward<DataT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetVersion() const { return m_version; }
63 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
64 template <typename VersionT = Aws::String>
65 void SetVersion(VersionT&& value) {
66 m_versionHasBeenSet = true;
67 m_version = std::forward<VersionT>(value);
68 }
69 template <typename VersionT = Aws::String>
70 DescriptorEntry& WithVersion(VersionT&& value) {
71 SetVersion(std::forward<VersionT>(value));
72 return *this;
73 }
75
77
80 inline const DescriptorSource& GetSource() const { return m_source; }
81 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
82 template <typename SourceT = DescriptorSource>
83 void SetSource(SourceT&& value) {
84 m_sourceHasBeenSet = true;
85 m_source = std::forward<SourceT>(value);
86 }
87 template <typename SourceT = DescriptorSource>
88 DescriptorEntry& WithSource(SourceT&& value) {
89 SetSource(std::forward<SourceT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Map<Aws::String, DescriptorEntry>& GetAdditionalData() const { return m_additionalData; }
100 inline bool AdditionalDataHasBeenSet() const { return m_additionalDataHasBeenSet; }
101 template <typename AdditionalDataT = Aws::Map<Aws::String, DescriptorEntry>>
102 void SetAdditionalData(AdditionalDataT&& value) {
103 m_additionalDataHasBeenSet = true;
104 m_additionalData = std::forward<AdditionalDataT>(value);
105 }
106 template <typename AdditionalDataT = Aws::Map<Aws::String, DescriptorEntry>>
107 DescriptorEntry& WithAdditionalData(AdditionalDataT&& value) {
108 SetAdditionalData(std::forward<AdditionalDataT>(value));
109 return *this;
110 }
111 template <typename AdditionalDataKeyT = Aws::String, typename AdditionalDataValueT = DescriptorEntry>
112 DescriptorEntry& AddAdditionalData(AdditionalDataKeyT&& key, AdditionalDataValueT&& value) {
113 m_additionalDataHasBeenSet = true;
114 m_additionalData.emplace(std::forward<AdditionalDataKeyT>(key), std::forward<AdditionalDataValueT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_data;
120
121 Aws::String m_version;
122
123 DescriptorSource m_source;
124
126 bool m_dataHasBeenSet = false;
127 bool m_versionHasBeenSet = false;
128 bool m_sourceHasBeenSet = false;
129 bool m_additionalDataHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace AgentDiscovery
134} // namespace Aws
bool VersionHasBeenSet() const
bool AdditionalDataHasBeenSet() const
DescriptorEntry & WithData(DataT &&value)
void SetSource(SourceT &&value)
const Aws::Map< Aws::String, DescriptorEntry > & GetAdditionalData() const
const Aws::String & GetData() const
void SetVersion(VersionT &&value)
AWS_AGENTDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AGENTDISCOVERY_API DescriptorEntry()=default
void SetAdditionalData(AdditionalDataT &&value)
DescriptorEntry & WithVersion(VersionT &&value)
AWS_AGENTDISCOVERY_API DescriptorEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetData(DataT &&value)
bool DataHasBeenSet() const
bool SourceHasBeenSet() const
DescriptorEntry & WithSource(SourceT &&value)
const DescriptorSource & GetSource() const
DescriptorEntry & AddAdditionalData(AdditionalDataKeyT &&key, AdditionalDataValueT &&value)
const Aws::String & GetVersion() const
AWS_AGENTDISCOVERY_API DescriptorEntry(Aws::Utils::Json::JsonView jsonValue)
DescriptorEntry & WithAdditionalData(AdditionalDataT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue