AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
ResolvedTargetResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace resiliencehubv2 {
21namespace Model {
22
30 public:
31 AWS_RESILIENCEHUBV2_API ResolvedTargetResource() = default;
32 AWS_RESILIENCEHUBV2_API ResolvedTargetResource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUBV2_API ResolvedTargetResource& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetResourceType() const { return m_resourceType; }
42 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
43 template <typename ResourceTypeT = Aws::String>
44 void SetResourceType(ResourceTypeT&& value) {
45 m_resourceTypeHasBeenSet = true;
46 m_resourceType = std::forward<ResourceTypeT>(value);
47 }
48 template <typename ResourceTypeT = Aws::String>
49 ResolvedTargetResource& WithResourceType(ResourceTypeT&& value) {
50 SetResourceType(std::forward<ResourceTypeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTargetName() const { return m_targetName; }
60 inline bool TargetNameHasBeenSet() const { return m_targetNameHasBeenSet; }
61 template <typename TargetNameT = Aws::String>
62 void SetTargetName(TargetNameT&& value) {
63 m_targetNameHasBeenSet = true;
64 m_targetName = std::forward<TargetNameT>(value);
65 }
66 template <typename TargetNameT = Aws::String>
67 ResolvedTargetResource& WithTargetName(TargetNameT&& value) {
68 SetTargetName(std::forward<TargetNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Map<Aws::String, Aws::String>& GetTargetInformation() const { return m_targetInformation; }
78 inline bool TargetInformationHasBeenSet() const { return m_targetInformationHasBeenSet; }
79 template <typename TargetInformationT = Aws::Map<Aws::String, Aws::String>>
80 void SetTargetInformation(TargetInformationT&& value) {
81 m_targetInformationHasBeenSet = true;
82 m_targetInformation = std::forward<TargetInformationT>(value);
83 }
84 template <typename TargetInformationT = Aws::Map<Aws::String, Aws::String>>
85 ResolvedTargetResource& WithTargetInformation(TargetInformationT&& value) {
86 SetTargetInformation(std::forward<TargetInformationT>(value));
87 return *this;
88 }
89 template <typename TargetInformationKeyT = Aws::String, typename TargetInformationValueT = Aws::String>
90 ResolvedTargetResource& AddTargetInformation(TargetInformationKeyT&& key, TargetInformationValueT&& value) {
91 m_targetInformationHasBeenSet = true;
92 m_targetInformation.emplace(std::forward<TargetInformationKeyT>(key), std::forward<TargetInformationValueT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_resourceType;
98
99 Aws::String m_targetName;
100
101 Aws::Map<Aws::String, Aws::String> m_targetInformation;
102 bool m_resourceTypeHasBeenSet = false;
103 bool m_targetNameHasBeenSet = false;
104 bool m_targetInformationHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace resiliencehubv2
109} // namespace Aws
ResolvedTargetResource & WithResourceType(ResourceTypeT &&value)
AWS_RESILIENCEHUBV2_API ResolvedTargetResource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTargetInformation() const
ResolvedTargetResource & WithTargetName(TargetNameT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
ResolvedTargetResource & AddTargetInformation(TargetInformationKeyT &&key, TargetInformationValueT &&value)
AWS_RESILIENCEHUBV2_API ResolvedTargetResource()=default
ResolvedTargetResource & WithTargetInformation(TargetInformationT &&value)
AWS_RESILIENCEHUBV2_API ResolvedTargetResource(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue