AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
ServiceConnectServiceResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
35 public:
36 AWS_ECS_API ServiceConnectServiceResource() = default;
40
42
52 inline const Aws::String& GetDiscoveryName() const { return m_discoveryName; }
53 inline bool DiscoveryNameHasBeenSet() const { return m_discoveryNameHasBeenSet; }
54 template <typename DiscoveryNameT = Aws::String>
55 void SetDiscoveryName(DiscoveryNameT&& value) {
56 m_discoveryNameHasBeenSet = true;
57 m_discoveryName = std::forward<DiscoveryNameT>(value);
58 }
59 template <typename DiscoveryNameT = Aws::String>
61 SetDiscoveryName(std::forward<DiscoveryNameT>(value));
62 return *this;
63 }
65
67
73 inline const Aws::String& GetDiscoveryArn() const { return m_discoveryArn; }
74 inline bool DiscoveryArnHasBeenSet() const { return m_discoveryArnHasBeenSet; }
75 template <typename DiscoveryArnT = Aws::String>
76 void SetDiscoveryArn(DiscoveryArnT&& value) {
77 m_discoveryArnHasBeenSet = true;
78 m_discoveryArn = std::forward<DiscoveryArnT>(value);
79 }
80 template <typename DiscoveryArnT = Aws::String>
82 SetDiscoveryArn(std::forward<DiscoveryArnT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_discoveryName;
88
89 Aws::String m_discoveryArn;
90 bool m_discoveryNameHasBeenSet = false;
91 bool m_discoveryArnHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace ECS
96} // namespace Aws
ServiceConnectServiceResource & WithDiscoveryArn(DiscoveryArnT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ServiceConnectServiceResource(Aws::Utils::Json::JsonView jsonValue)
ServiceConnectServiceResource & WithDiscoveryName(DiscoveryNameT &&value)
AWS_ECS_API ServiceConnectServiceResource & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue