AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
Address.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace NetworkFirewall {
20namespace Model {
21
28class Address {
29 public:
30 AWS_NETWORKFIREWALL_API Address() = default;
31 AWS_NETWORKFIREWALL_API Address(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_NETWORKFIREWALL_API Address& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
54 inline const Aws::String& GetAddressDefinition() const { return m_addressDefinition; }
55 inline bool AddressDefinitionHasBeenSet() const { return m_addressDefinitionHasBeenSet; }
56 template <typename AddressDefinitionT = Aws::String>
57 void SetAddressDefinition(AddressDefinitionT&& value) {
58 m_addressDefinitionHasBeenSet = true;
59 m_addressDefinition = std::forward<AddressDefinitionT>(value);
60 }
61 template <typename AddressDefinitionT = Aws::String>
62 Address& WithAddressDefinition(AddressDefinitionT&& value) {
63 SetAddressDefinition(std::forward<AddressDefinitionT>(value));
64 return *this;
65 }
67 private:
68 Aws::String m_addressDefinition;
69 bool m_addressDefinitionHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace NetworkFirewall
74} // namespace Aws
AWS_NETWORKFIREWALL_API Address(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetAddressDefinition() const
Definition Address.h:54
Address & WithAddressDefinition(AddressDefinitionT &&value)
Definition Address.h:62
void SetAddressDefinition(AddressDefinitionT &&value)
Definition Address.h:57
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_NETWORKFIREWALL_API Address()=default
AWS_NETWORKFIREWALL_API Address & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String