AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceDiscovery.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/AwsCloudMapServiceDiscovery.h>
9#include <aws/appmesh/model/DnsServiceDiscovery.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppMesh
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPMESH_API ServiceDiscovery();
37 AWS_APPMESH_API ServiceDiscovery(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const AwsCloudMapServiceDiscovery& GetAwsCloudMap() const{ return m_awsCloudMap; }
47 inline bool AwsCloudMapHasBeenSet() const { return m_awsCloudMapHasBeenSet; }
48 inline void SetAwsCloudMap(const AwsCloudMapServiceDiscovery& value) { m_awsCloudMapHasBeenSet = true; m_awsCloudMap = value; }
49 inline void SetAwsCloudMap(AwsCloudMapServiceDiscovery&& value) { m_awsCloudMapHasBeenSet = true; m_awsCloudMap = std::move(value); }
50 inline ServiceDiscovery& WithAwsCloudMap(const AwsCloudMapServiceDiscovery& value) { SetAwsCloudMap(value); return *this;}
51 inline ServiceDiscovery& WithAwsCloudMap(AwsCloudMapServiceDiscovery&& value) { SetAwsCloudMap(std::move(value)); return *this;}
53
55
58 inline const DnsServiceDiscovery& GetDns() const{ return m_dns; }
59 inline bool DnsHasBeenSet() const { return m_dnsHasBeenSet; }
60 inline void SetDns(const DnsServiceDiscovery& value) { m_dnsHasBeenSet = true; m_dns = value; }
61 inline void SetDns(DnsServiceDiscovery&& value) { m_dnsHasBeenSet = true; m_dns = std::move(value); }
62 inline ServiceDiscovery& WithDns(const DnsServiceDiscovery& value) { SetDns(value); return *this;}
63 inline ServiceDiscovery& WithDns(DnsServiceDiscovery&& value) { SetDns(std::move(value)); return *this;}
65 private:
66
67 AwsCloudMapServiceDiscovery m_awsCloudMap;
68 bool m_awsCloudMapHasBeenSet = false;
69
71 bool m_dnsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace AppMesh
76} // namespace Aws
ServiceDiscovery & WithAwsCloudMap(AwsCloudMapServiceDiscovery &&value)
AWS_APPMESH_API ServiceDiscovery(Aws::Utils::Json::JsonView jsonValue)
const AwsCloudMapServiceDiscovery & GetAwsCloudMap() const
void SetDns(const DnsServiceDiscovery &value)
ServiceDiscovery & WithAwsCloudMap(const AwsCloudMapServiceDiscovery &value)
ServiceDiscovery & WithDns(const DnsServiceDiscovery &value)
const DnsServiceDiscovery & GetDns() const
void SetAwsCloudMap(const AwsCloudMapServiceDiscovery &value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAwsCloudMap(AwsCloudMapServiceDiscovery &&value)
void SetDns(DnsServiceDiscovery &&value)
AWS_APPMESH_API ServiceDiscovery & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceDiscovery & WithDns(DnsServiceDiscovery &&value)
Aws::Utils::Json::JsonValue JsonValue