AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ResourceTargetDefinition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
10#include <aws/servicecatalog/model/RequiresRecreation.h>
11#include <aws/servicecatalog/model/ResourceAttribute.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace ServiceCatalog {
22namespace Model {
23
31 public:
32 AWS_SERVICECATALOG_API ResourceTargetDefinition() = default;
33 AWS_SERVICECATALOG_API ResourceTargetDefinition(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_SERVICECATALOG_API ResourceTargetDefinition& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline ResourceAttribute GetAttribute() const { return m_attribute; }
42 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
43 inline void SetAttribute(ResourceAttribute value) {
44 m_attributeHasBeenSet = true;
45 m_attribute = value;
46 }
48 SetAttribute(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
77 inline RequiresRecreation GetRequiresRecreation() const { return m_requiresRecreation; }
78 inline bool RequiresRecreationHasBeenSet() const { return m_requiresRecreationHasBeenSet; }
80 m_requiresRecreationHasBeenSet = true;
81 m_requiresRecreation = value;
82 }
88 private:
90
91 Aws::String m_name;
92
94 bool m_attributeHasBeenSet = false;
95 bool m_nameHasBeenSet = false;
96 bool m_requiresRecreationHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace ServiceCatalog
101} // namespace Aws
ResourceTargetDefinition & WithRequiresRecreation(RequiresRecreation value)
AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ResourceTargetDefinition & WithName(NameT &&value)
AWS_SERVICECATALOG_API ResourceTargetDefinition()=default
ResourceTargetDefinition & WithAttribute(ResourceAttribute value)
AWS_SERVICECATALOG_API ResourceTargetDefinition(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_SERVICECATALOG_API ResourceTargetDefinition & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String