AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; }
51 inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); }
52 inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); }
53 inline AssociatedTargetNetwork& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;}
54 inline AssociatedTargetNetwork& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;}
55 inline AssociatedTargetNetwork& WithNetworkId(const char* value) { SetNetworkId(value); return *this;}
57
59
62 inline const AssociatedNetworkType& GetNetworkType() const{ return m_networkType; }
63 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
64 inline void SetNetworkType(const AssociatedNetworkType& value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
65 inline void SetNetworkType(AssociatedNetworkType&& value) { m_networkTypeHasBeenSet = true; m_networkType = std::move(value); }
66 inline AssociatedTargetNetwork& WithNetworkType(const AssociatedNetworkType& value) { SetNetworkType(value); return *this;}
67 inline AssociatedTargetNetwork& WithNetworkType(AssociatedNetworkType&& value) { SetNetworkType(std::move(value)); return *this;}
69 private:
70
71 Aws::String m_networkId;
72 bool m_networkIdHasBeenSet = false;
73
74 AssociatedNetworkType m_networkType;
75 bool m_networkTypeHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
AssociatedTargetNetwork & WithNetworkId(const Aws::String &value)
AssociatedTargetNetwork & WithNetworkType(const AssociatedNetworkType &value)
AWS_EC2_API AssociatedTargetNetwork(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetNetworkType(AssociatedNetworkType &&value)
AWS_EC2_API AssociatedTargetNetwork & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AssociatedTargetNetwork & WithNetworkId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AssociatedTargetNetwork & WithNetworkType(AssociatedNetworkType &&value)
const AssociatedNetworkType & GetNetworkType() const
AssociatedTargetNetwork & WithNetworkId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetNetworkType(const AssociatedNetworkType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream