AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ServiceAttributes.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_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 ServiceDiscovery
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SERVICEDISCOVERY_API ServiceAttributes() = default;
37 AWS_SERVICEDISCOVERY_API ServiceAttributes(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SERVICEDISCOVERY_API ServiceAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
47 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
48 template<typename ServiceArnT = Aws::String>
49 void SetServiceArn(ServiceArnT&& value) { m_serviceArnHasBeenSet = true; m_serviceArn = std::forward<ServiceArnT>(value); }
50 template<typename ServiceArnT = Aws::String>
51 ServiceAttributes& WithServiceArn(ServiceArnT&& value) { SetServiceArn(std::forward<ServiceArnT>(value)); return *this;}
53
55
61 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
62 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
63 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
64 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
65 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
66 ServiceAttributes& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
67 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
68 ServiceAttributes& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
69 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
70 }
72 private:
73
74 Aws::String m_serviceArn;
75 bool m_serviceArnHasBeenSet = false;
76
78 bool m_attributesHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ServiceDiscovery
83} // namespace Aws
AWS_SERVICEDISCOVERY_API ServiceAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceAttributes & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
ServiceAttributes & WithServiceArn(ServiceArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AWS_SERVICEDISCOVERY_API ServiceAttributes(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceAttributes & WithAttributes(AttributesT &&value)
AWS_SERVICEDISCOVERY_API ServiceAttributes()=default
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