AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
NamespaceProperties.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/servicediscovery/model/DnsProperties.h>
9#include <aws/servicediscovery/model/HttpProperties.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ServiceDiscovery {
21namespace Model {
22
30 public:
31 AWS_SERVICEDISCOVERY_API NamespaceProperties() = default;
32 AWS_SERVICEDISCOVERY_API NamespaceProperties(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SERVICEDISCOVERY_API NamespaceProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const DnsProperties& GetDnsProperties() const { return m_dnsProperties; }
42 inline bool DnsPropertiesHasBeenSet() const { return m_dnsPropertiesHasBeenSet; }
43 template <typename DnsPropertiesT = DnsProperties>
44 void SetDnsProperties(DnsPropertiesT&& value) {
45 m_dnsPropertiesHasBeenSet = true;
46 m_dnsProperties = std::forward<DnsPropertiesT>(value);
47 }
48 template <typename DnsPropertiesT = DnsProperties>
49 NamespaceProperties& WithDnsProperties(DnsPropertiesT&& value) {
50 SetDnsProperties(std::forward<DnsPropertiesT>(value));
51 return *this;
52 }
54
56
59 inline const HttpProperties& GetHttpProperties() const { return m_httpProperties; }
60 inline bool HttpPropertiesHasBeenSet() const { return m_httpPropertiesHasBeenSet; }
61 template <typename HttpPropertiesT = HttpProperties>
62 void SetHttpProperties(HttpPropertiesT&& value) {
63 m_httpPropertiesHasBeenSet = true;
64 m_httpProperties = std::forward<HttpPropertiesT>(value);
65 }
66 template <typename HttpPropertiesT = HttpProperties>
67 NamespaceProperties& WithHttpProperties(HttpPropertiesT&& value) {
68 SetHttpProperties(std::forward<HttpPropertiesT>(value));
69 return *this;
70 }
72 private:
73 DnsProperties m_dnsProperties;
74
75 HttpProperties m_httpProperties;
76 bool m_dnsPropertiesHasBeenSet = false;
77 bool m_httpPropertiesHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace ServiceDiscovery
82} // namespace Aws
AWS_SERVICEDISCOVERY_API NamespaceProperties()=default
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SERVICEDISCOVERY_API NamespaceProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
NamespaceProperties & WithHttpProperties(HttpPropertiesT &&value)
AWS_SERVICEDISCOVERY_API NamespaceProperties(Aws::Utils::Json::JsonView jsonValue)
NamespaceProperties & WithDnsProperties(DnsPropertiesT &&value)
Aws::Utils::Json::JsonValue JsonValue