AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Statement.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iam/model/PolicySourceType.h>
11#include <aws/iam/model/Position.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace IAM
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_IAM_API Statement();
40 AWS_IAM_API Statement(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_IAM_API Statement& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetSourcePolicyId() const{ return m_sourcePolicyId; }
52 inline bool SourcePolicyIdHasBeenSet() const { return m_sourcePolicyIdHasBeenSet; }
53 inline void SetSourcePolicyId(const Aws::String& value) { m_sourcePolicyIdHasBeenSet = true; m_sourcePolicyId = value; }
54 inline void SetSourcePolicyId(Aws::String&& value) { m_sourcePolicyIdHasBeenSet = true; m_sourcePolicyId = std::move(value); }
55 inline void SetSourcePolicyId(const char* value) { m_sourcePolicyIdHasBeenSet = true; m_sourcePolicyId.assign(value); }
56 inline Statement& WithSourcePolicyId(const Aws::String& value) { SetSourcePolicyId(value); return *this;}
57 inline Statement& WithSourcePolicyId(Aws::String&& value) { SetSourcePolicyId(std::move(value)); return *this;}
58 inline Statement& WithSourcePolicyId(const char* value) { SetSourcePolicyId(value); return *this;}
60
62
65 inline const PolicySourceType& GetSourcePolicyType() const{ return m_sourcePolicyType; }
66 inline bool SourcePolicyTypeHasBeenSet() const { return m_sourcePolicyTypeHasBeenSet; }
67 inline void SetSourcePolicyType(const PolicySourceType& value) { m_sourcePolicyTypeHasBeenSet = true; m_sourcePolicyType = value; }
68 inline void SetSourcePolicyType(PolicySourceType&& value) { m_sourcePolicyTypeHasBeenSet = true; m_sourcePolicyType = std::move(value); }
69 inline Statement& WithSourcePolicyType(const PolicySourceType& value) { SetSourcePolicyType(value); return *this;}
70 inline Statement& WithSourcePolicyType(PolicySourceType&& value) { SetSourcePolicyType(std::move(value)); return *this;}
72
74
78 inline const Position& GetStartPosition() const{ return m_startPosition; }
79 inline bool StartPositionHasBeenSet() const { return m_startPositionHasBeenSet; }
80 inline void SetStartPosition(const Position& value) { m_startPositionHasBeenSet = true; m_startPosition = value; }
81 inline void SetStartPosition(Position&& value) { m_startPositionHasBeenSet = true; m_startPosition = std::move(value); }
82 inline Statement& WithStartPosition(const Position& value) { SetStartPosition(value); return *this;}
83 inline Statement& WithStartPosition(Position&& value) { SetStartPosition(std::move(value)); return *this;}
85
87
91 inline const Position& GetEndPosition() const{ return m_endPosition; }
92 inline bool EndPositionHasBeenSet() const { return m_endPositionHasBeenSet; }
93 inline void SetEndPosition(const Position& value) { m_endPositionHasBeenSet = true; m_endPosition = value; }
94 inline void SetEndPosition(Position&& value) { m_endPositionHasBeenSet = true; m_endPosition = std::move(value); }
95 inline Statement& WithEndPosition(const Position& value) { SetEndPosition(value); return *this;}
96 inline Statement& WithEndPosition(Position&& value) { SetEndPosition(std::move(value)); return *this;}
98 private:
99
100 Aws::String m_sourcePolicyId;
101 bool m_sourcePolicyIdHasBeenSet = false;
102
103 PolicySourceType m_sourcePolicyType;
104 bool m_sourcePolicyTypeHasBeenSet = false;
105
106 Position m_startPosition;
107 bool m_startPositionHasBeenSet = false;
108
109 Position m_endPosition;
110 bool m_endPositionHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace IAM
115} // namespace Aws
const Position & GetEndPosition() const
Definition Statement.h:91
void SetSourcePolicyId(const char *value)
Definition Statement.h:55
void SetSourcePolicyType(PolicySourceType &&value)
Definition Statement.h:68
bool SourcePolicyTypeHasBeenSet() const
Definition Statement.h:66
void SetSourcePolicyId(Aws::String &&value)
Definition Statement.h:54
void SetSourcePolicyType(const PolicySourceType &value)
Definition Statement.h:67
bool EndPositionHasBeenSet() const
Definition Statement.h:92
Statement & WithEndPosition(Position &&value)
Definition Statement.h:96
AWS_IAM_API Statement(const Aws::Utils::Xml::XmlNode &xmlNode)
Statement & WithSourcePolicyType(PolicySourceType &&value)
Definition Statement.h:70
Statement & WithStartPosition(const Position &value)
Definition Statement.h:82
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Statement & WithSourcePolicyId(const Aws::String &value)
Definition Statement.h:56
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Statement & WithSourcePolicyId(const char *value)
Definition Statement.h:58
Statement & WithEndPosition(const Position &value)
Definition Statement.h:95
const Aws::String & GetSourcePolicyId() const
Definition Statement.h:51
bool StartPositionHasBeenSet() const
Definition Statement.h:79
AWS_IAM_API Statement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const PolicySourceType & GetSourcePolicyType() const
Definition Statement.h:65
bool SourcePolicyIdHasBeenSet() const
Definition Statement.h:52
void SetStartPosition(Position &&value)
Definition Statement.h:81
void SetStartPosition(const Position &value)
Definition Statement.h:80
Statement & WithSourcePolicyId(Aws::String &&value)
Definition Statement.h:57
Statement & WithStartPosition(Position &&value)
Definition Statement.h:83
void SetSourcePolicyId(const Aws::String &value)
Definition Statement.h:53
void SetEndPosition(const Position &value)
Definition Statement.h:93
void SetEndPosition(Position &&value)
Definition Statement.h:94
Statement & WithSourcePolicyType(const PolicySourceType &value)
Definition Statement.h:69
const Position & GetStartPosition() const
Definition Statement.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream