AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const CertificateField& GetCertificateField() const{ return m_certificateField; }
43 inline bool CertificateFieldHasBeenSet() const { return m_certificateFieldHasBeenSet; }
44 inline void SetCertificateField(const CertificateField& value) { m_certificateFieldHasBeenSet = true; m_certificateField = value; }
45 inline void SetCertificateField(CertificateField&& value) { m_certificateFieldHasBeenSet = true; m_certificateField = std::move(value); }
47 inline PutAttributeMappingRequest& WithCertificateField(CertificateField&& value) { SetCertificateField(std::move(value)); return *this;}
49
51
54 inline const Aws::Vector<MappingRule>& GetMappingRules() const{ return m_mappingRules; }
55 inline bool MappingRulesHasBeenSet() const { return m_mappingRulesHasBeenSet; }
56 inline void SetMappingRules(const Aws::Vector<MappingRule>& value) { m_mappingRulesHasBeenSet = true; m_mappingRules = value; }
57 inline void SetMappingRules(Aws::Vector<MappingRule>&& value) { m_mappingRulesHasBeenSet = true; m_mappingRules = std::move(value); }
59 inline PutAttributeMappingRequest& WithMappingRules(Aws::Vector<MappingRule>&& value) { SetMappingRules(std::move(value)); return *this;}
60 inline PutAttributeMappingRequest& AddMappingRules(const MappingRule& value) { m_mappingRulesHasBeenSet = true; m_mappingRules.push_back(value); return *this; }
61 inline PutAttributeMappingRequest& AddMappingRules(MappingRule&& value) { m_mappingRulesHasBeenSet = true; m_mappingRules.push_back(std::move(value)); return *this; }
63
65
68 inline const Aws::String& GetProfileId() const{ return m_profileId; }
69 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
70 inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; }
71 inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); }
72 inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); }
73 inline PutAttributeMappingRequest& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;}
74 inline PutAttributeMappingRequest& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;}
75 inline PutAttributeMappingRequest& WithProfileId(const char* value) { SetProfileId(value); return *this;}
77 private:
78
79 CertificateField m_certificateField;
80 bool m_certificateFieldHasBeenSet = false;
81
82 Aws::Vector<MappingRule> m_mappingRules;
83 bool m_mappingRulesHasBeenSet = false;
84
85 Aws::String m_profileId;
86 bool m_profileIdHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace RolesAnywhere
91} // namespace Aws
PutAttributeMappingRequest & WithCertificateField(const CertificateField &value)
PutAttributeMappingRequest & AddMappingRules(const MappingRule &value)
PutAttributeMappingRequest & AddMappingRules(MappingRule &&value)
PutAttributeMappingRequest & WithProfileId(Aws::String &&value)
PutAttributeMappingRequest & WithProfileId(const Aws::String &value)
PutAttributeMappingRequest & WithMappingRules(const Aws::Vector< MappingRule > &value)
PutAttributeMappingRequest & WithCertificateField(CertificateField &&value)
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
PutAttributeMappingRequest & WithMappingRules(Aws::Vector< MappingRule > &&value)
const Aws::Vector< MappingRule > & GetMappingRules() const
PutAttributeMappingRequest & WithProfileId(const char *value)
void SetMappingRules(const Aws::Vector< MappingRule > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector