AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResolvedTarget.h
1
6#pragma once
7#include <aws/fis/FIS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FIS
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_FIS_API ResolvedTarget() = default;
39
40
42
45 inline const Aws::String& GetResourceType() const { return m_resourceType; }
46 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
47 template<typename ResourceTypeT = Aws::String>
48 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
49 template<typename ResourceTypeT = Aws::String>
50 ResolvedTarget& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
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) { m_targetNameHasBeenSet = true; m_targetName = std::forward<TargetNameT>(value); }
61 template<typename TargetNameT = Aws::String>
62 ResolvedTarget& WithTargetName(TargetNameT&& value) { SetTargetName(std::forward<TargetNameT>(value)); return *this;}
64
66
69 inline const Aws::Map<Aws::String, Aws::String>& GetTargetInformation() const { return m_targetInformation; }
70 inline bool TargetInformationHasBeenSet() const { return m_targetInformationHasBeenSet; }
71 template<typename TargetInformationT = Aws::Map<Aws::String, Aws::String>>
72 void SetTargetInformation(TargetInformationT&& value) { m_targetInformationHasBeenSet = true; m_targetInformation = std::forward<TargetInformationT>(value); }
73 template<typename TargetInformationT = Aws::Map<Aws::String, Aws::String>>
74 ResolvedTarget& WithTargetInformation(TargetInformationT&& value) { SetTargetInformation(std::forward<TargetInformationT>(value)); return *this;}
75 template<typename TargetInformationKeyT = Aws::String, typename TargetInformationValueT = Aws::String>
76 ResolvedTarget& AddTargetInformation(TargetInformationKeyT&& key, TargetInformationValueT&& value) {
77 m_targetInformationHasBeenSet = true; m_targetInformation.emplace(std::forward<TargetInformationKeyT>(key), std::forward<TargetInformationValueT>(value)); return *this;
78 }
80 private:
81
82 Aws::String m_resourceType;
83 bool m_resourceTypeHasBeenSet = false;
84
85 Aws::String m_targetName;
86 bool m_targetNameHasBeenSet = false;
87
88 Aws::Map<Aws::String, Aws::String> m_targetInformation;
89 bool m_targetInformationHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace FIS
94} // 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