AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
EC2ManagedInstance.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces-instances/WorkspacesInstances_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace WorkspacesInstances {
20namespace Model {
21
29 public:
30 AWS_WORKSPACESINSTANCES_API EC2ManagedInstance() = default;
31 AWS_WORKSPACESINSTANCES_API EC2ManagedInstance(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACESINSTANCES_API EC2ManagedInstance& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_WORKSPACESINSTANCES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
47 EC2ManagedInstance& WithInstanceId(InstanceIdT&& value) {
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52 private:
53 Aws::String m_instanceId;
54 bool m_instanceIdHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace WorkspacesInstances
59} // namespace Aws
AWS_WORKSPACESINSTANCES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_WORKSPACESINSTANCES_API EC2ManagedInstance & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EC2ManagedInstance & WithInstanceId(InstanceIdT &&value)
AWS_WORKSPACESINSTANCES_API EC2ManagedInstance(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACESINSTANCES_API EC2ManagedInstance()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String