AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
DiscoveredResource.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Assurance {
20namespace Model {
21
30 public:
31 AWS_ASSURANCE_API DiscoveredResource() = default;
32 AWS_ASSURANCE_API DiscoveredResource(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_ASSURANCE_API DiscoveredResource& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
41 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
42 template <typename ResourceIdentifierT = Aws::String>
43 void SetResourceIdentifier(ResourceIdentifierT&& value) {
44 m_resourceIdentifierHasBeenSet = true;
45 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
46 }
47 template <typename ResourceIdentifierT = Aws::String>
48 DiscoveredResource& WithResourceIdentifier(ResourceIdentifierT&& value) {
49 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetResourceType() const { return m_resourceType; }
61 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
62 template <typename ResourceTypeT = Aws::String>
63 void SetResourceType(ResourceTypeT&& value) {
64 m_resourceTypeHasBeenSet = true;
65 m_resourceType = std::forward<ResourceTypeT>(value);
66 }
67 template <typename ResourceTypeT = Aws::String>
68 DiscoveredResource& WithResourceType(ResourceTypeT&& value) {
69 SetResourceType(std::forward<ResourceTypeT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetAccountId() const { return m_accountId; }
79 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
80 template <typename AccountIdT = Aws::String>
81 void SetAccountId(AccountIdT&& value) {
82 m_accountIdHasBeenSet = true;
83 m_accountId = std::forward<AccountIdT>(value);
84 }
85 template <typename AccountIdT = Aws::String>
86 DiscoveredResource& WithAccountId(AccountIdT&& value) {
87 SetAccountId(std::forward<AccountIdT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetRegion() const { return m_region; }
98 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
99 template <typename RegionT = Aws::String>
100 void SetRegion(RegionT&& value) {
101 m_regionHasBeenSet = true;
102 m_region = std::forward<RegionT>(value);
103 }
104 template <typename RegionT = Aws::String>
105 DiscoveredResource& WithRegion(RegionT&& value) {
106 SetRegion(std::forward<RegionT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_resourceIdentifier;
112
113 Aws::String m_resourceType;
114
115 Aws::String m_accountId;
116
117 Aws::String m_region;
118 bool m_resourceIdentifierHasBeenSet = false;
119 bool m_resourceTypeHasBeenSet = false;
120 bool m_accountIdHasBeenSet = false;
121 bool m_regionHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace Assurance
126} // namespace Aws
DiscoveredResource & WithResourceType(ResourceTypeT &&value)
AWS_ASSURANCE_API DiscoveredResource(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetResourceType() const
DiscoveredResource & WithAccountId(AccountIdT &&value)
AWS_ASSURANCE_API DiscoveredResource()=default
void SetResourceIdentifier(ResourceIdentifierT &&value)
DiscoveredResource & WithRegion(RegionT &&value)
AWS_ASSURANCE_API DiscoveredResource & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetResourceType(ResourceTypeT &&value)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetResourceIdentifier() const
DiscoveredResource & WithResourceIdentifier(ResourceIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String