AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ResourceDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace ServiceCatalog {
21namespace Model {
22
29 public:
30 AWS_SERVICECATALOG_API ResourceDetail() = default;
31 AWS_SERVICECATALOG_API ResourceDetail(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_SERVICECATALOG_API ResourceDetail& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
47 ResourceDetail& WithId(IdT&& value) {
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetARN() const { return m_aRN; }
58 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
59 template <typename ARNT = Aws::String>
60 void SetARN(ARNT&& value) {
61 m_aRNHasBeenSet = true;
62 m_aRN = std::forward<ARNT>(value);
63 }
64 template <typename ARNT = Aws::String>
65 ResourceDetail& WithARN(ARNT&& value) {
66 SetARN(std::forward<ARNT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
83 ResourceDetail& WithName(NameT&& value) {
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
101 ResourceDetail& WithDescription(DescriptionT&& value) {
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
112 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
113 template <typename CreatedTimeT = Aws::Utils::DateTime>
114 void SetCreatedTime(CreatedTimeT&& value) {
115 m_createdTimeHasBeenSet = true;
116 m_createdTime = std::forward<CreatedTimeT>(value);
117 }
118 template <typename CreatedTimeT = Aws::Utils::DateTime>
119 ResourceDetail& WithCreatedTime(CreatedTimeT&& value) {
120 SetCreatedTime(std::forward<CreatedTimeT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_id;
126
127 Aws::String m_aRN;
128
129 Aws::String m_name;
130
131 Aws::String m_description;
132
133 Aws::Utils::DateTime m_createdTime{};
134 bool m_idHasBeenSet = false;
135 bool m_aRNHasBeenSet = false;
136 bool m_nameHasBeenSet = false;
137 bool m_descriptionHasBeenSet = false;
138 bool m_createdTimeHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace ServiceCatalog
143} // namespace Aws
ResourceDetail & WithId(IdT &&value)
AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ResourceDetail & WithARN(ARNT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetCreatedTime(CreatedTimeT &&value)
ResourceDetail & WithDescription(DescriptionT &&value)
ResourceDetail & WithName(NameT &&value)
AWS_SERVICECATALOG_API ResourceDetail & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_SERVICECATALOG_API ResourceDetail()=default
AWS_SERVICECATALOG_API ResourceDetail(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ResourceDetail & WithCreatedTime(CreatedTimeT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String