AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
AzureResourceIdentifierSummary.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/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ObservabilityAdmin {
21namespace Model {
22
29 public:
30 AWS_OBSERVABILITYADMIN_API AzureResourceIdentifierSummary() = default;
31 AWS_OBSERVABILITYADMIN_API AzureResourceIdentifierSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetResourceId() const { return m_resourceId; }
40 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
41 template <typename ResourceIdT = Aws::String>
42 void SetResourceId(ResourceIdT&& value) {
43 m_resourceIdHasBeenSet = true;
44 m_resourceId = std::forward<ResourceIdT>(value);
45 }
46 template <typename ResourceIdT = Aws::String>
48 SetResourceId(std::forward<ResourceIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetResourceType() const { return m_resourceType; }
59 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
60 template <typename ResourceTypeT = Aws::String>
61 void SetResourceType(ResourceTypeT&& value) {
62 m_resourceTypeHasBeenSet = true;
63 m_resourceType = std::forward<ResourceTypeT>(value);
64 }
65 template <typename ResourceTypeT = Aws::String>
67 SetResourceType(std::forward<ResourceTypeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetRegion() const { return m_region; }
77 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
78 template <typename RegionT = Aws::String>
79 void SetRegion(RegionT&& value) {
80 m_regionHasBeenSet = true;
81 m_region = std::forward<RegionT>(value);
82 }
83 template <typename RegionT = Aws::String>
85 SetRegion(std::forward<RegionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetSubscriptionId() const { return m_subscriptionId; }
95 inline bool SubscriptionIdHasBeenSet() const { return m_subscriptionIdHasBeenSet; }
96 template <typename SubscriptionIdT = Aws::String>
97 void SetSubscriptionId(SubscriptionIdT&& value) {
98 m_subscriptionIdHasBeenSet = true;
99 m_subscriptionId = std::forward<SubscriptionIdT>(value);
100 }
101 template <typename SubscriptionIdT = Aws::String>
103 SetSubscriptionId(std::forward<SubscriptionIdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 void SetTags(TagsT&& value) {
116 m_tagsHasBeenSet = true;
117 m_tags = std::forward<TagsT>(value);
118 }
119 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 SetTags(std::forward<TagsT>(value));
122 return *this;
123 }
124 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
125 AzureResourceIdentifierSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
126 m_tagsHasBeenSet = true;
127 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_resourceId;
133
134 Aws::String m_resourceType;
135
136 Aws::String m_region;
137
138 Aws::String m_subscriptionId;
139
141 bool m_resourceIdHasBeenSet = false;
142 bool m_resourceTypeHasBeenSet = false;
143 bool m_regionHasBeenSet = false;
144 bool m_subscriptionIdHasBeenSet = false;
145 bool m_tagsHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace ObservabilityAdmin
150} // namespace Aws
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
AzureResourceIdentifierSummary & WithResourceType(ResourceTypeT &&value)
AzureResourceIdentifierSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_OBSERVABILITYADMIN_API AzureResourceIdentifierSummary()=default
AzureResourceIdentifierSummary & WithSubscriptionId(SubscriptionIdT &&value)
AWS_OBSERVABILITYADMIN_API AzureResourceIdentifierSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_OBSERVABILITYADMIN_API AzureResourceIdentifierSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AzureResourceIdentifierSummary & WithResourceId(ResourceIdT &&value)
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