AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ServiceChange.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
9#include <aws/servicediscovery/model/DnsConfigChange.h>
10#include <aws/servicediscovery/model/HealthCheckConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ServiceDiscovery {
22namespace Model {
23
31 public:
32 AWS_SERVICEDISCOVERY_API ServiceChange() = default;
33 AWS_SERVICEDISCOVERY_API ServiceChange(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SERVICEDISCOVERY_API ServiceChange& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetDescription() const { return m_description; }
42 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
43 template <typename DescriptionT = Aws::String>
44 void SetDescription(DescriptionT&& value) {
45 m_descriptionHasBeenSet = true;
46 m_description = std::forward<DescriptionT>(value);
47 }
48 template <typename DescriptionT = Aws::String>
49 ServiceChange& WithDescription(DescriptionT&& value) {
50 SetDescription(std::forward<DescriptionT>(value));
51 return *this;
52 }
54
56
60 inline const DnsConfigChange& GetDnsConfig() const { return m_dnsConfig; }
61 inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; }
62 template <typename DnsConfigT = DnsConfigChange>
63 void SetDnsConfig(DnsConfigT&& value) {
64 m_dnsConfigHasBeenSet = true;
65 m_dnsConfig = std::forward<DnsConfigT>(value);
66 }
67 template <typename DnsConfigT = DnsConfigChange>
68 ServiceChange& WithDnsConfig(DnsConfigT&& value) {
69 SetDnsConfig(std::forward<DnsConfigT>(value));
70 return *this;
71 }
73
75
80 inline const HealthCheckConfig& GetHealthCheckConfig() const { return m_healthCheckConfig; }
81 inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
82 template <typename HealthCheckConfigT = HealthCheckConfig>
83 void SetHealthCheckConfig(HealthCheckConfigT&& value) {
84 m_healthCheckConfigHasBeenSet = true;
85 m_healthCheckConfig = std::forward<HealthCheckConfigT>(value);
86 }
87 template <typename HealthCheckConfigT = HealthCheckConfig>
88 ServiceChange& WithHealthCheckConfig(HealthCheckConfigT&& value) {
89 SetHealthCheckConfig(std::forward<HealthCheckConfigT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_description;
95
96 DnsConfigChange m_dnsConfig;
97
98 HealthCheckConfig m_healthCheckConfig;
99 bool m_descriptionHasBeenSet = false;
100 bool m_dnsConfigHasBeenSet = false;
101 bool m_healthCheckConfigHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace ServiceDiscovery
106} // namespace Aws
void SetDescription(DescriptionT &&value)
AWS_SERVICEDISCOVERY_API ServiceChange & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEDISCOVERY_API ServiceChange(Aws::Utils::Json::JsonView jsonValue)
const HealthCheckConfig & GetHealthCheckConfig() const
const DnsConfigChange & GetDnsConfig() const
ServiceChange & WithHealthCheckConfig(HealthCheckConfigT &&value)
void SetHealthCheckConfig(HealthCheckConfigT &&value)
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SERVICEDISCOVERY_API ServiceChange()=default
ServiceChange & WithDescription(DescriptionT &&value)
ServiceChange & WithDnsConfig(DnsConfigT &&value)
const Aws::String & GetDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue