AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DiscoveredResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fms/FMS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace FMS {
20namespace Model {
21
29 public:
30 AWS_FMS_API DiscoveredResource() = default;
34
36
39 inline const Aws::String& GetURI() const { return m_uRI; }
40 inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
41 template <typename URIT = Aws::String>
42 void SetURI(URIT&& value) {
43 m_uRIHasBeenSet = true;
44 m_uRI = std::forward<URIT>(value);
45 }
46 template <typename URIT = Aws::String>
47 DiscoveredResource& WithURI(URIT&& value) {
48 SetURI(std::forward<URIT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetAccountId() const { return m_accountId; }
59 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
60 template <typename AccountIdT = Aws::String>
61 void SetAccountId(AccountIdT&& value) {
62 m_accountIdHasBeenSet = true;
63 m_accountId = std::forward<AccountIdT>(value);
64 }
65 template <typename AccountIdT = Aws::String>
66 DiscoveredResource& WithAccountId(AccountIdT&& value) {
67 SetAccountId(std::forward<AccountIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 template <typename TypeT = Aws::String>
79 void SetType(TypeT&& value) {
80 m_typeHasBeenSet = true;
81 m_type = std::forward<TypeT>(value);
82 }
83 template <typename TypeT = Aws::String>
84 DiscoveredResource& WithType(TypeT&& value) {
85 SetType(std::forward<TypeT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetName() const { return m_name; }
95 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 template <typename NameT = Aws::String>
97 void SetName(NameT&& value) {
98 m_nameHasBeenSet = true;
99 m_name = std::forward<NameT>(value);
100 }
101 template <typename NameT = Aws::String>
102 DiscoveredResource& WithName(NameT&& value) {
103 SetName(std::forward<NameT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_uRI;
109
110 Aws::String m_accountId;
111
112 Aws::String m_type;
113
114 Aws::String m_name;
115 bool m_uRIHasBeenSet = false;
116 bool m_accountIdHasBeenSet = false;
117 bool m_typeHasBeenSet = false;
118 bool m_nameHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace FMS
123} // namespace Aws
DiscoveredResource & WithURI(URIT &&value)
void SetAccountId(AccountIdT &&value)
const Aws::String & GetName() const
DiscoveredResource & WithType(TypeT &&value)
AWS_FMS_API DiscoveredResource & operator=(Aws::Utils::Json::JsonView jsonValue)
DiscoveredResource & WithAccountId(AccountIdT &&value)
const Aws::String & GetType() const
const Aws::String & GetURI() const
const Aws::String & GetAccountId() const
AWS_FMS_API DiscoveredResource()=default
DiscoveredResource & WithName(NameT &&value)
AWS_FMS_API DiscoveredResource(Aws::Utils::Json::JsonView jsonValue)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue