AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClaim(const Aws::String& value) { m_claimHasBeenSet = true; m_claim = value; }
50 inline void SetClaim(Aws::String&& value) { m_claimHasBeenSet = true; m_claim = std::move(value); }
51 inline void SetClaim(const char* value) { m_claimHasBeenSet = true; m_claim.assign(value); }
52 inline MappingRule& WithClaim(const Aws::String& value) { SetClaim(value); return *this;}
53 inline MappingRule& WithClaim(Aws::String&& value) { SetClaim(std::move(value)); return *this;}
54 inline MappingRule& WithClaim(const char* value) { SetClaim(value); return *this;}
56
58
62 inline const MappingRuleMatchType& GetMatchType() const{ return m_matchType; }
63 inline bool MatchTypeHasBeenSet() const { return m_matchTypeHasBeenSet; }
64 inline void SetMatchType(const MappingRuleMatchType& value) { m_matchTypeHasBeenSet = true; m_matchType = value; }
65 inline void SetMatchType(MappingRuleMatchType&& value) { m_matchTypeHasBeenSet = true; m_matchType = std::move(value); }
66 inline MappingRule& WithMatchType(const MappingRuleMatchType& value) { SetMatchType(value); return *this;}
67 inline MappingRule& WithMatchType(MappingRuleMatchType&& value) { SetMatchType(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetValue() const{ return m_value; }
75 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
76 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
77 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
78 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
79 inline MappingRule& WithValue(const Aws::String& value) { SetValue(value); return *this;}
80 inline MappingRule& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
81 inline MappingRule& WithValue(const char* value) { SetValue(value); return *this;}
83
85
88 inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
89 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
90 inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
91 inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
92 inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
93 inline MappingRule& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
94 inline MappingRule& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
95 inline MappingRule& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
97 private:
98
99 Aws::String m_claim;
100 bool m_claimHasBeenSet = false;
101
102 MappingRuleMatchType m_matchType;
103 bool m_matchTypeHasBeenSet = false;
104
105 Aws::String m_value;
106 bool m_valueHasBeenSet = false;
107
108 Aws::String m_roleARN;
109 bool m_roleARNHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace CognitoIdentity
114} // namespace Aws
void SetValue(const Aws::String &value)
Definition MappingRule.h:76
void SetClaim(const Aws::String &value)
Definition MappingRule.h:49
void SetClaim(Aws::String &&value)
Definition MappingRule.h:50
MappingRule & WithClaim(const Aws::String &value)
Definition MappingRule.h:52
MappingRule & WithValue(const Aws::String &value)
Definition MappingRule.h:79
AWS_COGNITOIDENTITY_API MappingRule & operator=(Aws::Utils::Json::JsonView jsonValue)
MappingRule & WithValue(const char *value)
Definition MappingRule.h:81
void SetRoleARN(Aws::String &&value)
Definition MappingRule.h:91
void SetMatchType(const MappingRuleMatchType &value)
Definition MappingRule.h:64
const Aws::String & GetClaim() const
Definition MappingRule.h:47
MappingRule & WithMatchType(const MappingRuleMatchType &value)
Definition MappingRule.h:66
MappingRule & WithRoleARN(const Aws::String &value)
Definition MappingRule.h:93
AWS_COGNITOIDENTITY_API MappingRule()
MappingRule & WithRoleARN(const char *value)
Definition MappingRule.h:95
void SetMatchType(MappingRuleMatchType &&value)
Definition MappingRule.h:65
MappingRule & WithClaim(const char *value)
Definition MappingRule.h:54
MappingRule & WithValue(Aws::String &&value)
Definition MappingRule.h:80
const MappingRuleMatchType & GetMatchType() const
Definition MappingRule.h:62
const Aws::String & GetRoleARN() const
Definition MappingRule.h:88
void SetValue(Aws::String &&value)
Definition MappingRule.h:77
MappingRule & WithClaim(Aws::String &&value)
Definition MappingRule.h:53
AWS_COGNITOIDENTITY_API MappingRule(Aws::Utils::Json::JsonView jsonValue)
AWS_COGNITOIDENTITY_API Aws::Utils::Json::JsonValue Jsonize() const
MappingRule & WithRoleARN(Aws::String &&value)
Definition MappingRule.h:94
const Aws::String & GetValue() const
Definition MappingRule.h:74
void SetRoleARN(const Aws::String &value)
Definition MappingRule.h:90
MappingRule & WithMatchType(MappingRuleMatchType &&value)
Definition MappingRule.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue