AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
InstanceIpv6Address.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 InstanceIpv6Address() = default;
31 AWS_WORKSPACESINSTANCES_API InstanceIpv6Address(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACESINSTANCES_API InstanceIpv6Address& 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& GetIpv6Address() const { return m_ipv6Address; }
40 inline bool Ipv6AddressHasBeenSet() const { return m_ipv6AddressHasBeenSet; }
41 template <typename Ipv6AddressT = Aws::String>
42 void SetIpv6Address(Ipv6AddressT&& value) {
43 m_ipv6AddressHasBeenSet = true;
44 m_ipv6Address = std::forward<Ipv6AddressT>(value);
45 }
46 template <typename Ipv6AddressT = Aws::String>
47 InstanceIpv6Address& WithIpv6Address(Ipv6AddressT&& value) {
48 SetIpv6Address(std::forward<Ipv6AddressT>(value));
49 return *this;
50 }
52
54
57 inline bool GetIsPrimaryIpv6() const { return m_isPrimaryIpv6; }
58 inline bool IsPrimaryIpv6HasBeenSet() const { return m_isPrimaryIpv6HasBeenSet; }
59 inline void SetIsPrimaryIpv6(bool value) {
60 m_isPrimaryIpv6HasBeenSet = true;
61 m_isPrimaryIpv6 = value;
62 }
64 SetIsPrimaryIpv6(value);
65 return *this;
66 }
68 private:
69 Aws::String m_ipv6Address;
70
71 bool m_isPrimaryIpv6{false};
72 bool m_ipv6AddressHasBeenSet = false;
73 bool m_isPrimaryIpv6HasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace WorkspacesInstances
78} // namespace Aws
AWS_WORKSPACESINSTANCES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_WORKSPACESINSTANCES_API InstanceIpv6Address()=default
InstanceIpv6Address & WithIpv6Address(Ipv6AddressT &&value)
AWS_WORKSPACESINSTANCES_API InstanceIpv6Address(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACESINSTANCES_API InstanceIpv6Address & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String