AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
OperatorRequest.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/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28 public:
29 AWS_EC2_API OperatorRequest() = default;
30 AWS_EC2_API OperatorRequest(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetPrincipal() const { return m_principal; }
41 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
42 template <typename PrincipalT = Aws::String>
43 void SetPrincipal(PrincipalT&& value) {
44 m_principalHasBeenSet = true;
45 m_principal = std::forward<PrincipalT>(value);
46 }
47 template <typename PrincipalT = Aws::String>
48 OperatorRequest& WithPrincipal(PrincipalT&& value) {
49 SetPrincipal(std::forward<PrincipalT>(value));
50 return *this;
51 }
53 private:
54 Aws::String m_principal;
55 bool m_principalHasBeenSet = false;
56};
57
58} // namespace Model
59} // namespace EC2
60} // namespace Aws
AWS_EC2_API OperatorRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetPrincipal() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API OperatorRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API OperatorRequest()=default
void SetPrincipal(PrincipalT &&value)
OperatorRequest & WithPrincipal(PrincipalT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream