AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociatedTargetNetwork.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/AssociatedNetworkType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API AssociatedTargetNetwork() = default;
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetNetworkId() const { return m_networkId; }
49 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
50 template<typename NetworkIdT = Aws::String>
51 void SetNetworkId(NetworkIdT&& value) { m_networkIdHasBeenSet = true; m_networkId = std::forward<NetworkIdT>(value); }
52 template<typename NetworkIdT = Aws::String>
53 AssociatedTargetNetwork& WithNetworkId(NetworkIdT&& value) { SetNetworkId(std::forward<NetworkIdT>(value)); return *this;}
55
57
60 inline AssociatedNetworkType GetNetworkType() const { return m_networkType; }
61 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
62 inline void SetNetworkType(AssociatedNetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
65 private:
66
67 Aws::String m_networkId;
68 bool m_networkIdHasBeenSet = false;
69
71 bool m_networkTypeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace EC2
76} // namespace Aws
AWS_EC2_API AssociatedTargetNetwork(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API AssociatedTargetNetwork & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetNetworkType(AssociatedNetworkType value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AssociatedTargetNetwork & WithNetworkType(AssociatedNetworkType value)
AssociatedTargetNetwork & WithNetworkId(NetworkIdT &&value)
AWS_EC2_API AssociatedTargetNetwork()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream