AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttributeMapping.h
1
6#pragma once
7#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
8#include <aws/rolesanywhere/model/CertificateField.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rolesanywhere/model/MappingRule.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 RolesAnywhere
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ROLESANYWHERE_API AttributeMapping();
38 AWS_ROLESANYWHERE_API AttributeMapping(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROLESANYWHERE_API AttributeMapping& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const CertificateField& GetCertificateField() const{ return m_certificateField; }
48 inline bool CertificateFieldHasBeenSet() const { return m_certificateFieldHasBeenSet; }
49 inline void SetCertificateField(const CertificateField& value) { m_certificateFieldHasBeenSet = true; m_certificateField = value; }
50 inline void SetCertificateField(CertificateField&& value) { m_certificateFieldHasBeenSet = true; m_certificateField = std::move(value); }
51 inline AttributeMapping& WithCertificateField(const CertificateField& value) { SetCertificateField(value); return *this;}
52 inline AttributeMapping& WithCertificateField(CertificateField&& value) { SetCertificateField(std::move(value)); return *this;}
54
56
59 inline const Aws::Vector<MappingRule>& GetMappingRules() const{ return m_mappingRules; }
60 inline bool MappingRulesHasBeenSet() const { return m_mappingRulesHasBeenSet; }
61 inline void SetMappingRules(const Aws::Vector<MappingRule>& value) { m_mappingRulesHasBeenSet = true; m_mappingRules = value; }
62 inline void SetMappingRules(Aws::Vector<MappingRule>&& value) { m_mappingRulesHasBeenSet = true; m_mappingRules = std::move(value); }
63 inline AttributeMapping& WithMappingRules(const Aws::Vector<MappingRule>& value) { SetMappingRules(value); return *this;}
64 inline AttributeMapping& WithMappingRules(Aws::Vector<MappingRule>&& value) { SetMappingRules(std::move(value)); return *this;}
65 inline AttributeMapping& AddMappingRules(const MappingRule& value) { m_mappingRulesHasBeenSet = true; m_mappingRules.push_back(value); return *this; }
66 inline AttributeMapping& AddMappingRules(MappingRule&& value) { m_mappingRulesHasBeenSet = true; m_mappingRules.push_back(std::move(value)); return *this; }
68 private:
69
70 CertificateField m_certificateField;
71 bool m_certificateFieldHasBeenSet = false;
72
73 Aws::Vector<MappingRule> m_mappingRules;
74 bool m_mappingRulesHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace RolesAnywhere
79} // namespace Aws
const Aws::Vector< MappingRule > & GetMappingRules() const
AttributeMapping & AddMappingRules(const MappingRule &value)
AWS_ROLESANYWHERE_API AttributeMapping(Aws::Utils::Json::JsonView jsonValue)
AttributeMapping & WithCertificateField(CertificateField &&value)
void SetCertificateField(CertificateField &&value)
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
AttributeMapping & WithMappingRules(const Aws::Vector< MappingRule > &value)
AttributeMapping & AddMappingRules(MappingRule &&value)
AWS_ROLESANYWHERE_API AttributeMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
AttributeMapping & WithCertificateField(const CertificateField &value)
void SetMappingRules(const Aws::Vector< MappingRule > &value)
void SetMappingRules(Aws::Vector< MappingRule > &&value)
AttributeMapping & WithMappingRules(Aws::Vector< MappingRule > &&value)
void SetCertificateField(const CertificateField &value)
const CertificateField & GetCertificateField() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue