AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
AttachPointDescriptor.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/interconnect/Interconnect_EXPORTS.h>
10#include <aws/interconnect/model/AttachPointType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Interconnect {
21namespace Model {
22
30 public:
31 AWS_INTERCONNECT_API AttachPointDescriptor() = default;
32 AWS_INTERCONNECT_API AttachPointDescriptor(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_INTERCONNECT_API AttachPointDescriptor& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_INTERCONNECT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
42 inline AttachPointType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(AttachPointType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetIdentifier() const { return m_identifier; }
59 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
60 template <typename IdentifierT = Aws::String>
61 void SetIdentifier(IdentifierT&& value) {
62 m_identifierHasBeenSet = true;
63 m_identifier = std::forward<IdentifierT>(value);
64 }
65 template <typename IdentifierT = Aws::String>
66 AttachPointDescriptor& WithIdentifier(IdentifierT&& value) {
67 SetIdentifier(std::forward<IdentifierT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89 private:
91
92 Aws::String m_identifier;
93
94 Aws::String m_name;
95 bool m_typeHasBeenSet = false;
96 bool m_identifierHasBeenSet = false;
97 bool m_nameHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Interconnect
102} // namespace Aws
AttachPointDescriptor & WithIdentifier(IdentifierT &&value)
AWS_INTERCONNECT_API AttachPointDescriptor()=default
AttachPointDescriptor & WithType(AttachPointType value)
AWS_INTERCONNECT_API AttachPointDescriptor & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AttachPointDescriptor & WithName(NameT &&value)
AWS_INTERCONNECT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_INTERCONNECT_API AttachPointDescriptor(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String