AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
CompatibleImage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/snowball/Snowball_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Snowball {
20namespace Model {
21
31 public:
32 AWS_SNOWBALL_API CompatibleImage() = default;
33 AWS_SNOWBALL_API CompatibleImage(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_SNOWBALL_API CompatibleImage& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_SNOWBALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetAmiId() const { return m_amiId; }
42 inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
43 template <typename AmiIdT = Aws::String>
44 void SetAmiId(AmiIdT&& value) {
45 m_amiIdHasBeenSet = true;
46 m_amiId = std::forward<AmiIdT>(value);
47 }
48 template <typename AmiIdT = Aws::String>
49 CompatibleImage& WithAmiId(AmiIdT&& value) {
50 SetAmiId(std::forward<AmiIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 CompatibleImage& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_amiId;
74
75 Aws::String m_name;
76 bool m_amiIdHasBeenSet = false;
77 bool m_nameHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Snowball
82} // namespace Aws
CompatibleImage & WithName(NameT &&value)
AWS_SNOWBALL_API CompatibleImage()=default
const Aws::String & GetName() const
CompatibleImage & WithAmiId(AmiIdT &&value)
AWS_SNOWBALL_API CompatibleImage(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_SNOWBALL_API CompatibleImage & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetAmiId() const
AWS_SNOWBALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String