AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateServiceLinkedRoleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/iam/IAM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace IAM {
15namespace Model {
16
20 public:
21 AWS_IAM_API CreateServiceLinkedRoleRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreateServiceLinkedRole"; }
28
29 AWS_IAM_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
48 inline const Aws::String& GetAWSServiceName() const { return m_aWSServiceName; }
49 inline bool AWSServiceNameHasBeenSet() const { return m_aWSServiceNameHasBeenSet; }
50 template <typename AWSServiceNameT = Aws::String>
51 void SetAWSServiceName(AWSServiceNameT&& value) {
52 m_aWSServiceNameHasBeenSet = true;
53 m_aWSServiceName = std::forward<AWSServiceNameT>(value);
54 }
55 template <typename AWSServiceNameT = Aws::String>
57 SetAWSServiceName(std::forward<AWSServiceNameT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 template <typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) {
70 m_descriptionHasBeenSet = true;
71 m_description = std::forward<DescriptionT>(value);
72 }
73 template <typename DescriptionT = Aws::String>
75 SetDescription(std::forward<DescriptionT>(value));
76 return *this;
77 }
79
81
91 inline const Aws::String& GetCustomSuffix() const { return m_customSuffix; }
92 inline bool CustomSuffixHasBeenSet() const { return m_customSuffixHasBeenSet; }
93 template <typename CustomSuffixT = Aws::String>
94 void SetCustomSuffix(CustomSuffixT&& value) {
95 m_customSuffixHasBeenSet = true;
96 m_customSuffix = std::forward<CustomSuffixT>(value);
97 }
98 template <typename CustomSuffixT = Aws::String>
100 SetCustomSuffix(std::forward<CustomSuffixT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_aWSServiceName;
106
107 Aws::String m_description;
108
109 Aws::String m_customSuffix;
110 bool m_aWSServiceNameHasBeenSet = false;
111 bool m_descriptionHasBeenSet = false;
112 bool m_customSuffixHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace IAM
117} // 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