AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateServiceLinkedRoleRequest.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace IAM
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_IAM_API CreateServiceLinkedRoleRequest() = 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 "CreateServiceLinkedRole"; }
31
32 AWS_IAM_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
52 inline const Aws::String& GetAWSServiceName() const { return m_aWSServiceName; }
53 inline bool AWSServiceNameHasBeenSet() const { return m_aWSServiceNameHasBeenSet; }
54 template<typename AWSServiceNameT = Aws::String>
55 void SetAWSServiceName(AWSServiceNameT&& value) { m_aWSServiceNameHasBeenSet = true; m_aWSServiceName = std::forward<AWSServiceNameT>(value); }
56 template<typename AWSServiceNameT = Aws::String>
57 CreateServiceLinkedRoleRequest& WithAWSServiceName(AWSServiceNameT&& value) { SetAWSServiceName(std::forward<AWSServiceNameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template<typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 CreateServiceLinkedRoleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
83 inline const Aws::String& GetCustomSuffix() const { return m_customSuffix; }
84 inline bool CustomSuffixHasBeenSet() const { return m_customSuffixHasBeenSet; }
85 template<typename CustomSuffixT = Aws::String>
86 void SetCustomSuffix(CustomSuffixT&& value) { m_customSuffixHasBeenSet = true; m_customSuffix = std::forward<CustomSuffixT>(value); }
87 template<typename CustomSuffixT = Aws::String>
88 CreateServiceLinkedRoleRequest& WithCustomSuffix(CustomSuffixT&& value) { SetCustomSuffix(std::forward<CustomSuffixT>(value)); return *this;}
90 private:
91
92 Aws::String m_aWSServiceName;
93 bool m_aWSServiceNameHasBeenSet = false;
94
95 Aws::String m_description;
96 bool m_descriptionHasBeenSet = false;
97
98 Aws::String m_customSuffix;
99 bool m_customSuffixHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace IAM
104} // namespace Aws
CreateServiceLinkedRoleRequest & WithCustomSuffix(CustomSuffixT &&value)
AWS_IAM_API Aws::String SerializePayload() const override
CreateServiceLinkedRoleRequest & WithAWSServiceName(AWSServiceNameT &&value)
CreateServiceLinkedRoleRequest & WithDescription(DescriptionT &&value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String