AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NetworkInterfacePermissionState.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/NetworkInterfacePermissionStateCode.h>
10#include <aws/core/utils/memory/stl/AWSString.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 NetworkInterfacePermissionStateCode& GetState() const{ return m_state; }
49 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
50 inline void SetState(const NetworkInterfacePermissionStateCode& value) { m_stateHasBeenSet = true; m_state = value; }
51 inline void SetState(NetworkInterfacePermissionStateCode&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
55
57
60 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
61 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
62 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
63 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
64 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
66 inline NetworkInterfacePermissionState& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
67 inline NetworkInterfacePermissionState& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
69 private:
70
72 bool m_stateHasBeenSet = false;
73
74 Aws::String m_statusMessage;
75 bool m_statusMessageHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
const NetworkInterfacePermissionStateCode & GetState() const
NetworkInterfacePermissionState & WithStatusMessage(Aws::String &&value)
NetworkInterfacePermissionState & WithStatusMessage(const char *value)
void SetState(NetworkInterfacePermissionStateCode &&value)
NetworkInterfacePermissionState & WithState(const NetworkInterfacePermissionStateCode &value)
void SetState(const NetworkInterfacePermissionStateCode &value)
AWS_EC2_API NetworkInterfacePermissionState(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NetworkInterfacePermissionState & WithStatusMessage(const Aws::String &value)
AWS_EC2_API NetworkInterfacePermissionState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkInterfacePermissionState & WithState(NetworkInterfacePermissionStateCode &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream