AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
PrivateIpAddressSpecification.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 PrivateIpAddressSpecification() = default;
31 AWS_WORKSPACESINSTANCES_API PrivateIpAddressSpecification(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACESINSTANCES_API PrivateIpAddressSpecification& 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 bool GetPrimary() const { return m_primary; }
40 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
41 inline void SetPrimary(bool value) {
42 m_primaryHasBeenSet = true;
43 m_primary = value;
44 }
46 SetPrimary(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetPrivateIpAddress() const { return m_privateIpAddress; }
56 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
57 template <typename PrivateIpAddressT = Aws::String>
58 void SetPrivateIpAddress(PrivateIpAddressT&& value) {
59 m_privateIpAddressHasBeenSet = true;
60 m_privateIpAddress = std::forward<PrivateIpAddressT>(value);
61 }
62 template <typename PrivateIpAddressT = Aws::String>
64 SetPrivateIpAddress(std::forward<PrivateIpAddressT>(value));
65 return *this;
66 }
68 private:
69 bool m_primary{false};
70
71 Aws::String m_privateIpAddress;
72 bool m_primaryHasBeenSet = false;
73 bool m_privateIpAddressHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace WorkspacesInstances
78} // namespace Aws
AWS_WORKSPACESINSTANCES_API PrivateIpAddressSpecification & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACESINSTANCES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_WORKSPACESINSTANCES_API PrivateIpAddressSpecification()=default
PrivateIpAddressSpecification & WithPrivateIpAddress(PrivateIpAddressT &&value)
AWS_WORKSPACESINSTANCES_API PrivateIpAddressSpecification(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String