AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
MappingRule.h
1
6#pragma once
7#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
8#include <aws/cognito-identity/model/MappingRuleMatchType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CognitoIdentity {
21namespace Model {
22
30 public:
31 AWS_COGNITOIDENTITY_API MappingRule() = default;
32 AWS_COGNITOIDENTITY_API MappingRule(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COGNITOIDENTITY_API MappingRule& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COGNITOIDENTITY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetClaim() const { return m_claim; }
42 inline bool ClaimHasBeenSet() const { return m_claimHasBeenSet; }
43 template <typename ClaimT = Aws::String>
44 void SetClaim(ClaimT&& value) {
45 m_claimHasBeenSet = true;
46 m_claim = std::forward<ClaimT>(value);
47 }
48 template <typename ClaimT = Aws::String>
49 MappingRule& WithClaim(ClaimT&& value) {
50 SetClaim(std::forward<ClaimT>(value));
51 return *this;
52 }
54
56
60 inline MappingRuleMatchType GetMatchType() const { return m_matchType; }
61 inline bool MatchTypeHasBeenSet() const { return m_matchTypeHasBeenSet; }
63 m_matchTypeHasBeenSet = true;
64 m_matchType = value;
65 }
67 SetMatchType(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetValue() const { return m_value; }
77 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
78 template <typename ValueT = Aws::String>
79 void SetValue(ValueT&& value) {
80 m_valueHasBeenSet = true;
81 m_value = std::forward<ValueT>(value);
82 }
83 template <typename ValueT = Aws::String>
84 MappingRule& WithValue(ValueT&& value) {
85 SetValue(std::forward<ValueT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
95 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
96 template <typename RoleARNT = Aws::String>
97 void SetRoleARN(RoleARNT&& value) {
98 m_roleARNHasBeenSet = true;
99 m_roleARN = std::forward<RoleARNT>(value);
100 }
101 template <typename RoleARNT = Aws::String>
102 MappingRule& WithRoleARN(RoleARNT&& value) {
103 SetRoleARN(std::forward<RoleARNT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_claim;
109
111
112 Aws::String m_value;
113
114 Aws::String m_roleARN;
115 bool m_claimHasBeenSet = false;
116 bool m_matchTypeHasBeenSet = false;
117 bool m_valueHasBeenSet = false;
118 bool m_roleARNHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace CognitoIdentity
123} // namespace Aws
AWS_COGNITOIDENTITY_API MappingRule & operator=(Aws::Utils::Json::JsonView jsonValue)
MappingRule & WithClaim(ClaimT &&value)
Definition MappingRule.h:49
const Aws::String & GetClaim() const
Definition MappingRule.h:41
void SetMatchType(MappingRuleMatchType value)
Definition MappingRule.h:62
const Aws::String & GetRoleARN() const
Definition MappingRule.h:94
MappingRule & WithMatchType(MappingRuleMatchType value)
Definition MappingRule.h:66
AWS_COGNITOIDENTITY_API MappingRule(Aws::Utils::Json::JsonView jsonValue)
MappingRuleMatchType GetMatchType() const
Definition MappingRule.h:60
AWS_COGNITOIDENTITY_API Aws::Utils::Json::JsonValue Jsonize() const
MappingRule & WithValue(ValueT &&value)
Definition MappingRule.h:84
MappingRule & WithRoleARN(RoleARNT &&value)
AWS_COGNITOIDENTITY_API MappingRule()=default
const Aws::String & GetValue() const
Definition MappingRule.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue