AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ResolvedTarget.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/fis/FIS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FIS {
21namespace Model {
22
29 public:
30 AWS_FIS_API ResolvedTarget() = default;
34
36
39 inline const Aws::String& GetResourceType() const { return m_resourceType; }
40 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
41 template <typename ResourceTypeT = Aws::String>
42 void SetResourceType(ResourceTypeT&& value) {
43 m_resourceTypeHasBeenSet = true;
44 m_resourceType = std::forward<ResourceTypeT>(value);
45 }
46 template <typename ResourceTypeT = Aws::String>
47 ResolvedTarget& WithResourceType(ResourceTypeT&& value) {
48 SetResourceType(std::forward<ResourceTypeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetTargetName() const { return m_targetName; }
58 inline bool TargetNameHasBeenSet() const { return m_targetNameHasBeenSet; }
59 template <typename TargetNameT = Aws::String>
60 void SetTargetName(TargetNameT&& value) {
61 m_targetNameHasBeenSet = true;
62 m_targetName = std::forward<TargetNameT>(value);
63 }
64 template <typename TargetNameT = Aws::String>
65 ResolvedTarget& WithTargetName(TargetNameT&& value) {
66 SetTargetName(std::forward<TargetNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Map<Aws::String, Aws::String>& GetTargetInformation() const { return m_targetInformation; }
76 inline bool TargetInformationHasBeenSet() const { return m_targetInformationHasBeenSet; }
77 template <typename TargetInformationT = Aws::Map<Aws::String, Aws::String>>
78 void SetTargetInformation(TargetInformationT&& value) {
79 m_targetInformationHasBeenSet = true;
80 m_targetInformation = std::forward<TargetInformationT>(value);
81 }
82 template <typename TargetInformationT = Aws::Map<Aws::String, Aws::String>>
83 ResolvedTarget& WithTargetInformation(TargetInformationT&& value) {
84 SetTargetInformation(std::forward<TargetInformationT>(value));
85 return *this;
86 }
87 template <typename TargetInformationKeyT = Aws::String, typename TargetInformationValueT = Aws::String>
88 ResolvedTarget& AddTargetInformation(TargetInformationKeyT&& key, TargetInformationValueT&& value) {
89 m_targetInformationHasBeenSet = true;
90 m_targetInformation.emplace(std::forward<TargetInformationKeyT>(key), std::forward<TargetInformationValueT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_resourceType;
96
97 Aws::String m_targetName;
98
99 Aws::Map<Aws::String, Aws::String> m_targetInformation;
100 bool m_resourceTypeHasBeenSet = false;
101 bool m_targetNameHasBeenSet = false;
102 bool m_targetInformationHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace FIS
107} // namespace Aws
ResolvedTarget & AddTargetInformation(TargetInformationKeyT &&key, TargetInformationValueT &&value)
ResolvedTarget & WithResourceType(ResourceTypeT &&value)
AWS_FIS_API ResolvedTarget()=default
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetResourceType() const
void SetTargetName(TargetNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTargetInformation() const
void SetTargetInformation(TargetInformationT &&value)
AWS_FIS_API ResolvedTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FIS_API ResolvedTarget(Aws::Utils::Json::JsonView jsonValue)
ResolvedTarget & WithTargetInformation(TargetInformationT &&value)
void SetResourceType(ResourceTypeT &&value)
ResolvedTarget & WithTargetName(TargetNameT &&value)
const Aws::String & GetTargetName() const
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