AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AssociatedTargetNetwork.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/AssociatedNetworkType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API AssociatedTargetNetwork() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetNetworkId() const { return m_networkId; }
43 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
44 template <typename NetworkIdT = Aws::String>
45 void SetNetworkId(NetworkIdT&& value) {
46 m_networkIdHasBeenSet = true;
47 m_networkId = std::forward<NetworkIdT>(value);
48 }
49 template <typename NetworkIdT = Aws::String>
51 SetNetworkId(std::forward<NetworkIdT>(value));
52 return *this;
53 }
55
57
60 inline AssociatedNetworkType GetNetworkType() const { return m_networkType; }
61 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
63 m_networkTypeHasBeenSet = true;
64 m_networkType = value;
65 }
67 SetNetworkType(value);
68 return *this;
69 }
71 private:
72 Aws::String m_networkId;
73
75 bool m_networkIdHasBeenSet = false;
76 bool m_networkTypeHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EC2
81} // 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