AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SourceSecurityGroup.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/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElasticLoadBalancing {
20namespace Model {
21
28 public:
29 AWS_ELASTICLOADBALANCING_API SourceSecurityGroup() = default;
30 AWS_ELASTICLOADBALANCING_API SourceSecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_ELASTICLOADBALANCING_API SourceSecurityGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
34 const char* locationValue) const;
35 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetOwnerAlias() const { return m_ownerAlias; }
42 inline bool OwnerAliasHasBeenSet() const { return m_ownerAliasHasBeenSet; }
43 template <typename OwnerAliasT = Aws::String>
44 void SetOwnerAlias(OwnerAliasT&& value) {
45 m_ownerAliasHasBeenSet = true;
46 m_ownerAlias = std::forward<OwnerAliasT>(value);
47 }
48 template <typename OwnerAliasT = Aws::String>
49 SourceSecurityGroup& WithOwnerAlias(OwnerAliasT&& value) {
50 SetOwnerAlias(std::forward<OwnerAliasT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetGroupName() const { return m_groupName; }
60 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
61 template <typename GroupNameT = Aws::String>
62 void SetGroupName(GroupNameT&& value) {
63 m_groupNameHasBeenSet = true;
64 m_groupName = std::forward<GroupNameT>(value);
65 }
66 template <typename GroupNameT = Aws::String>
67 SourceSecurityGroup& WithGroupName(GroupNameT&& value) {
68 SetGroupName(std::forward<GroupNameT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_ownerAlias;
74
75 Aws::String m_groupName;
76 bool m_ownerAliasHasBeenSet = false;
77 bool m_groupNameHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace ElasticLoadBalancing
82} // namespace Aws
SourceSecurityGroup & WithOwnerAlias(OwnerAliasT &&value)
AWS_ELASTICLOADBALANCING_API SourceSecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SourceSecurityGroup & WithGroupName(GroupNameT &&value)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCING_API SourceSecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCING_API SourceSecurityGroup()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream