AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MappingRule.h
1
6#pragma once
7#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cognito-identity/model/MappingRuleMatchType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CognitoIdentity
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_COGNITOIDENTITY_API MappingRule() = default;
37 AWS_COGNITOIDENTITY_API MappingRule(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COGNITOIDENTITY_API MappingRule& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COGNITOIDENTITY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetClaim() const { return m_claim; }
48 inline bool ClaimHasBeenSet() const { return m_claimHasBeenSet; }
49 template<typename ClaimT = Aws::String>
50 void SetClaim(ClaimT&& value) { m_claimHasBeenSet = true; m_claim = std::forward<ClaimT>(value); }
51 template<typename ClaimT = Aws::String>
52 MappingRule& WithClaim(ClaimT&& value) { SetClaim(std::forward<ClaimT>(value)); return *this;}
54
56
60 inline MappingRuleMatchType GetMatchType() const { return m_matchType; }
61 inline bool MatchTypeHasBeenSet() const { return m_matchTypeHasBeenSet; }
62 inline void SetMatchType(MappingRuleMatchType value) { m_matchTypeHasBeenSet = true; m_matchType = value; }
63 inline MappingRule& WithMatchType(MappingRuleMatchType value) { SetMatchType(value); return *this;}
65
67
70 inline const Aws::String& GetValue() const { return m_value; }
71 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
72 template<typename ValueT = Aws::String>
73 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
74 template<typename ValueT = Aws::String>
75 MappingRule& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
77
79
82 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
83 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
84 template<typename RoleARNT = Aws::String>
85 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
86 template<typename RoleARNT = Aws::String>
87 MappingRule& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
89 private:
90
91 Aws::String m_claim;
92 bool m_claimHasBeenSet = false;
93
95 bool m_matchTypeHasBeenSet = false;
96
97 Aws::String m_value;
98 bool m_valueHasBeenSet = false;
99
100 Aws::String m_roleARN;
101 bool m_roleARNHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CognitoIdentity
106} // namespace Aws
AWS_COGNITOIDENTITY_API MappingRule & operator=(Aws::Utils::Json::JsonView jsonValue)
MappingRule & WithClaim(ClaimT &&value)
Definition MappingRule.h:52
const Aws::String & GetClaim() const
Definition MappingRule.h:47
void SetMatchType(MappingRuleMatchType value)
Definition MappingRule.h:62
const Aws::String & GetRoleARN() const
Definition MappingRule.h:82
MappingRule & WithMatchType(MappingRuleMatchType value)
Definition MappingRule.h:63
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:75
MappingRule & WithRoleARN(RoleARNT &&value)
Definition MappingRule.h:87
AWS_COGNITOIDENTITY_API MappingRule()=default
const Aws::String & GetValue() const
Definition MappingRule.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue