AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutAttributeMappingRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rolesanywhere/RolesAnywhereRequest.h>
10#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
11#include <aws/rolesanywhere/model/CertificateField.h>
12#include <aws/rolesanywhere/model/MappingRule.h>
13
14#include <utility>
15
16namespace Aws {
17namespace RolesAnywhere {
18namespace Model {
19
23 public:
24 AWS_ROLESANYWHERE_API PutAttributeMappingRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "PutAttributeMapping"; }
31
32 AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetProfileId() const { return m_profileId; }
39 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
40 template <typename ProfileIdT = Aws::String>
41 void SetProfileId(ProfileIdT&& value) {
42 m_profileIdHasBeenSet = true;
43 m_profileId = std::forward<ProfileIdT>(value);
44 }
45 template <typename ProfileIdT = Aws::String>
47 SetProfileId(std::forward<ProfileIdT>(value));
48 return *this;
49 }
51
53
56 inline CertificateField GetCertificateField() const { return m_certificateField; }
57 inline bool CertificateFieldHasBeenSet() const { return m_certificateFieldHasBeenSet; }
59 m_certificateFieldHasBeenSet = true;
60 m_certificateField = value;
61 }
64 return *this;
65 }
67
69
72 inline const Aws::Vector<MappingRule>& GetMappingRules() const { return m_mappingRules; }
73 inline bool MappingRulesHasBeenSet() const { return m_mappingRulesHasBeenSet; }
74 template <typename MappingRulesT = Aws::Vector<MappingRule>>
75 void SetMappingRules(MappingRulesT&& value) {
76 m_mappingRulesHasBeenSet = true;
77 m_mappingRules = std::forward<MappingRulesT>(value);
78 }
79 template <typename MappingRulesT = Aws::Vector<MappingRule>>
81 SetMappingRules(std::forward<MappingRulesT>(value));
82 return *this;
83 }
84 template <typename MappingRulesT = MappingRule>
86 m_mappingRulesHasBeenSet = true;
87 m_mappingRules.emplace_back(std::forward<MappingRulesT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_profileId;
93
95
96 Aws::Vector<MappingRule> m_mappingRules;
97 bool m_profileIdHasBeenSet = false;
98 bool m_certificateFieldHasBeenSet = false;
99 bool m_mappingRulesHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace RolesAnywhere
104} // 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