AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutAttributeMappingRequest.h
1
6#pragma once
7#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
8#include <aws/rolesanywhere/RolesAnywhereRequest.h>
9#include <aws/rolesanywhere/model/CertificateField.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/rolesanywhere/model/MappingRule.h>
13#include <utility>
14
15namespace Aws
16{
17namespace RolesAnywhere
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ROLESANYWHERE_API PutAttributeMappingRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutAttributeMapping"; }
34
35 AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override;
36
37
39
42 inline CertificateField GetCertificateField() const { return m_certificateField; }
43 inline bool CertificateFieldHasBeenSet() const { return m_certificateFieldHasBeenSet; }
44 inline void SetCertificateField(CertificateField value) { m_certificateFieldHasBeenSet = true; m_certificateField = value; }
47
49
52 inline const Aws::Vector<MappingRule>& GetMappingRules() const { return m_mappingRules; }
53 inline bool MappingRulesHasBeenSet() const { return m_mappingRulesHasBeenSet; }
54 template<typename MappingRulesT = Aws::Vector<MappingRule>>
55 void SetMappingRules(MappingRulesT&& value) { m_mappingRulesHasBeenSet = true; m_mappingRules = std::forward<MappingRulesT>(value); }
56 template<typename MappingRulesT = Aws::Vector<MappingRule>>
57 PutAttributeMappingRequest& WithMappingRules(MappingRulesT&& value) { SetMappingRules(std::forward<MappingRulesT>(value)); return *this;}
58 template<typename MappingRulesT = MappingRule>
59 PutAttributeMappingRequest& AddMappingRules(MappingRulesT&& value) { m_mappingRulesHasBeenSet = true; m_mappingRules.emplace_back(std::forward<MappingRulesT>(value)); return *this; }
61
63
66 inline const Aws::String& GetProfileId() const { return m_profileId; }
67 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
68 template<typename ProfileIdT = Aws::String>
69 void SetProfileId(ProfileIdT&& value) { m_profileIdHasBeenSet = true; m_profileId = std::forward<ProfileIdT>(value); }
70 template<typename ProfileIdT = Aws::String>
71 PutAttributeMappingRequest& WithProfileId(ProfileIdT&& value) { SetProfileId(std::forward<ProfileIdT>(value)); return *this;}
73 private:
74
76 bool m_certificateFieldHasBeenSet = false;
77
78 Aws::Vector<MappingRule> m_mappingRules;
79 bool m_mappingRulesHasBeenSet = false;
80
81 Aws::String m_profileId;
82 bool m_profileIdHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace RolesAnywhere
87} // namespace Aws
PutAttributeMappingRequest & WithCertificateField(CertificateField value)
PutAttributeMappingRequest & AddMappingRules(MappingRulesT &&value)
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
PutAttributeMappingRequest & WithProfileId(ProfileIdT &&value)
AWS_ROLESANYWHERE_API PutAttributeMappingRequest()=default
PutAttributeMappingRequest & WithMappingRules(MappingRulesT &&value)
const Aws::Vector< MappingRule > & GetMappingRules() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector