AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EC2SecurityGroup.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElastiCache
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ELASTICACHE_API EC2SecurityGroup();
36 AWS_ELASTICACHE_API EC2SecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICACHE_API EC2SecurityGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetStatus() const{ return m_status; }
48 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
49 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
50 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
51 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
52 inline EC2SecurityGroup& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
53 inline EC2SecurityGroup& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
54 inline EC2SecurityGroup& WithStatus(const char* value) { SetStatus(value); return *this;}
56
58
61 inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; }
62 inline bool EC2SecurityGroupNameHasBeenSet() const { return m_eC2SecurityGroupNameHasBeenSet; }
63 inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
64 inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = std::move(value); }
65 inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); }
67 inline EC2SecurityGroup& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(std::move(value)); return *this;}
68 inline EC2SecurityGroup& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;}
70
72
75 inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; }
76 inline bool EC2SecurityGroupOwnerIdHasBeenSet() const { return m_eC2SecurityGroupOwnerIdHasBeenSet; }
77 inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
78 inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = std::move(value); }
79 inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); }
81 inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(std::move(value)); return *this;}
82 inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;}
84 private:
85
86 Aws::String m_status;
87 bool m_statusHasBeenSet = false;
88
89 Aws::String m_eC2SecurityGroupName;
90 bool m_eC2SecurityGroupNameHasBeenSet = false;
91
92 Aws::String m_eC2SecurityGroupOwnerId;
93 bool m_eC2SecurityGroupOwnerIdHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ElastiCache
98} // namespace Aws
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EC2SecurityGroup & WithStatus(const char *value)
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(Aws::String &&value)
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(const char *value)
void SetEC2SecurityGroupName(Aws::String &&value)
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(const Aws::String &value)
void SetStatus(const Aws::String &value)
EC2SecurityGroup & WithEC2SecurityGroupName(Aws::String &&value)
const Aws::String & GetEC2SecurityGroupName() const
void SetEC2SecurityGroupName(const char *value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EC2SecurityGroup & WithStatus(Aws::String &&value)
AWS_ELASTICACHE_API EC2SecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEC2SecurityGroupOwnerId(const char *value)
void SetEC2SecurityGroupOwnerId(Aws::String &&value)
EC2SecurityGroup & WithStatus(const Aws::String &value)
const Aws::String & GetEC2SecurityGroupOwnerId() const
AWS_ELASTICACHE_API EC2SecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2SecurityGroup & WithEC2SecurityGroupName(const char *value)
void SetEC2SecurityGroupName(const Aws::String &value)
EC2SecurityGroup & WithEC2SecurityGroupName(const Aws::String &value)
void SetEC2SecurityGroupOwnerId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream