AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
Operator.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace AutoScaling {
20namespace Model {
21
28class Operator {
29 public:
30 AWS_AUTOSCALING_API Operator() = default;
31 AWS_AUTOSCALING_API Operator(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_AUTOSCALING_API Operator& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
43 inline const Aws::String& GetPrincipal() const { return m_principal; }
44 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
45 template <typename PrincipalT = Aws::String>
46 void SetPrincipal(PrincipalT&& value) {
47 m_principalHasBeenSet = true;
48 m_principal = std::forward<PrincipalT>(value);
49 }
50 template <typename PrincipalT = Aws::String>
51 Operator& WithPrincipal(PrincipalT&& value) {
52 SetPrincipal(std::forward<PrincipalT>(value));
53 return *this;
54 }
56 private:
57 Aws::String m_principal;
58 bool m_principalHasBeenSet = false;
59};
60
61} // namespace Model
62} // namespace AutoScaling
63} // namespace Aws
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Operator & WithPrincipal(PrincipalT &&value)
Definition Operator.h:51
void SetPrincipal(PrincipalT &&value)
Definition Operator.h:46
const Aws::String & GetPrincipal() const
Definition Operator.h:43
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API Operator()=default
AWS_AUTOSCALING_API Operator(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API Operator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream