AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
SigninResourceBasedPolicy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/signin/Signin_EXPORTS.h>
10#include <aws/signin/model/PolicyStatement.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Signin {
22namespace Model {
23
30 public:
31 AWS_SIGNIN_API SigninResourceBasedPolicy() = default;
34 AWS_SIGNIN_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetVersion() const { return m_version; }
41 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
42 template <typename VersionT = Aws::String>
43 void SetVersion(VersionT&& value) {
44 m_versionHasBeenSet = true;
45 m_version = std::forward<VersionT>(value);
46 }
47 template <typename VersionT = Aws::String>
49 SetVersion(std::forward<VersionT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<PolicyStatement>& GetStatement() const { return m_statement; }
59 inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; }
60 template <typename StatementT = Aws::Vector<PolicyStatement>>
61 void SetStatement(StatementT&& value) {
62 m_statementHasBeenSet = true;
63 m_statement = std::forward<StatementT>(value);
64 }
65 template <typename StatementT = Aws::Vector<PolicyStatement>>
67 SetStatement(std::forward<StatementT>(value));
68 return *this;
69 }
70 template <typename StatementT = PolicyStatement>
72 m_statementHasBeenSet = true;
73 m_statement.emplace_back(std::forward<StatementT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_version;
79
81 bool m_versionHasBeenSet = false;
82 bool m_statementHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Signin
87} // namespace Aws
AWS_SIGNIN_API SigninResourceBasedPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< PolicyStatement > & GetStatement() const
AWS_SIGNIN_API SigninResourceBasedPolicy()=default
SigninResourceBasedPolicy & AddStatement(StatementT &&value)
AWS_SIGNIN_API SigninResourceBasedPolicy(Aws::Utils::Json::JsonView jsonValue)
SigninResourceBasedPolicy & WithStatement(StatementT &&value)
SigninResourceBasedPolicy & WithVersion(VersionT &&value)
AWS_SIGNIN_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue