AWS SDK for C++

AWS SDK for C++ Version 1.11.884

Loading...
Searching...
No Matches
HttpDescriptor.h
1
6#pragma once
7#include <aws/agent-registry/AgentRegistry_EXPORTS.h>
8#include <aws/agent-registry/model/DescriptorSource.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AgentRegistry {
20namespace Model {
21
31 public:
32 AWS_AGENTREGISTRY_API HttpDescriptor() = default;
33 AWS_AGENTREGISTRY_API HttpDescriptor(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AGENTREGISTRY_API HttpDescriptor& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AGENTREGISTRY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const DescriptorSource& GetSource() const { return m_source; }
42 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
43 template <typename SourceT = DescriptorSource>
44 void SetSource(SourceT&& value) {
45 m_sourceHasBeenSet = true;
46 m_source = std::forward<SourceT>(value);
47 }
48 template <typename SourceT = DescriptorSource>
49 HttpDescriptor& WithSource(SourceT&& value) {
50 SetSource(std::forward<SourceT>(value));
51 return *this;
52 }
54 private:
55 DescriptorSource m_source;
56 bool m_sourceHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace AgentRegistry
61} // namespace Aws
AWS_AGENTREGISTRY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AGENTREGISTRY_API HttpDescriptor & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AGENTREGISTRY_API HttpDescriptor(Aws::Utils::Json::JsonView jsonValue)
const DescriptorSource & GetSource() const
AWS_AGENTREGISTRY_API HttpDescriptor()=default
HttpDescriptor & WithSource(SourceT &&value)
Aws::Utils::Json::JsonValue JsonValue