AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RoleMapping.h
1
6#pragma once
7#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
8#include <aws/cognito-identity/model/RoleMappingType.h>
9#include <aws/cognito-identity/model/AmbiguousRoleResolutionType.h>
10#include <aws/cognito-identity/model/RulesConfigurationType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CognitoIdentity
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_COGNITOIDENTITY_API RoleMapping();
37 AWS_COGNITOIDENTITY_API RoleMapping(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COGNITOIDENTITY_API RoleMapping& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COGNITOIDENTITY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const RoleMappingType& GetType() const{ return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(const RoleMappingType& value) { m_typeHasBeenSet = true; m_type = value; }
52 inline void SetType(RoleMappingType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
53 inline RoleMapping& WithType(const RoleMappingType& value) { SetType(value); return *this;}
54 inline RoleMapping& WithType(RoleMappingType&& value) { SetType(std::move(value)); return *this;}
56
58
65 inline const AmbiguousRoleResolutionType& GetAmbiguousRoleResolution() const{ return m_ambiguousRoleResolution; }
66 inline bool AmbiguousRoleResolutionHasBeenSet() const { return m_ambiguousRoleResolutionHasBeenSet; }
67 inline void SetAmbiguousRoleResolution(const AmbiguousRoleResolutionType& value) { m_ambiguousRoleResolutionHasBeenSet = true; m_ambiguousRoleResolution = value; }
68 inline void SetAmbiguousRoleResolution(AmbiguousRoleResolutionType&& value) { m_ambiguousRoleResolutionHasBeenSet = true; m_ambiguousRoleResolution = std::move(value); }
72
74
78 inline const RulesConfigurationType& GetRulesConfiguration() const{ return m_rulesConfiguration; }
79 inline bool RulesConfigurationHasBeenSet() const { return m_rulesConfigurationHasBeenSet; }
80 inline void SetRulesConfiguration(const RulesConfigurationType& value) { m_rulesConfigurationHasBeenSet = true; m_rulesConfiguration = value; }
81 inline void SetRulesConfiguration(RulesConfigurationType&& value) { m_rulesConfigurationHasBeenSet = true; m_rulesConfiguration = std::move(value); }
83 inline RoleMapping& WithRulesConfiguration(RulesConfigurationType&& value) { SetRulesConfiguration(std::move(value)); return *this;}
85 private:
86
87 RoleMappingType m_type;
88 bool m_typeHasBeenSet = false;
89
90 AmbiguousRoleResolutionType m_ambiguousRoleResolution;
91 bool m_ambiguousRoleResolutionHasBeenSet = false;
92
93 RulesConfigurationType m_rulesConfiguration;
94 bool m_rulesConfigurationHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace CognitoIdentity
99} // namespace Aws
const RulesConfigurationType & GetRulesConfiguration() const
Definition RoleMapping.h:78
RoleMapping & WithAmbiguousRoleResolution(AmbiguousRoleResolutionType &&value)
Definition RoleMapping.h:70
AWS_COGNITOIDENTITY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COGNITOIDENTITY_API RoleMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COGNITOIDENTITY_API RoleMapping(Aws::Utils::Json::JsonView jsonValue)
RoleMapping & WithAmbiguousRoleResolution(const AmbiguousRoleResolutionType &value)
Definition RoleMapping.h:69
RoleMapping & WithRulesConfiguration(RulesConfigurationType &&value)
Definition RoleMapping.h:83
void SetRulesConfiguration(const RulesConfigurationType &value)
Definition RoleMapping.h:80
void SetRulesConfiguration(RulesConfigurationType &&value)
Definition RoleMapping.h:81
AWS_COGNITOIDENTITY_API RoleMapping()
const RoleMappingType & GetType() const
Definition RoleMapping.h:49
void SetAmbiguousRoleResolution(const AmbiguousRoleResolutionType &value)
Definition RoleMapping.h:67
RoleMapping & WithType(const RoleMappingType &value)
Definition RoleMapping.h:53
void SetType(const RoleMappingType &value)
Definition RoleMapping.h:51
void SetType(RoleMappingType &&value)
Definition RoleMapping.h:52
void SetAmbiguousRoleResolution(AmbiguousRoleResolutionType &&value)
Definition RoleMapping.h:68
const AmbiguousRoleResolutionType & GetAmbiguousRoleResolution() const
Definition RoleMapping.h:65
RoleMapping & WithRulesConfiguration(const RulesConfigurationType &value)
Definition RoleMapping.h:82
RoleMapping & WithType(RoleMappingType &&value)
Definition RoleMapping.h:54
Aws::Utils::Json::JsonValue JsonValue