AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreatePermissionSetRequest.h
1
6#pragma once
7#include <aws/assurance/AssuranceRequest.h>
8#include <aws/assurance/Assurance_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Assurance {
16namespace Model {
17
21 public:
22 AWS_ASSURANCE_API CreatePermissionSetRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreatePermissionSet"; }
29
30 AWS_ASSURANCE_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
39 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
40 template <typename EnvironmentArnT = Aws::String>
41 void SetEnvironmentArn(EnvironmentArnT&& value) {
42 m_environmentArnHasBeenSet = true;
43 m_environmentArn = std::forward<EnvironmentArnT>(value);
44 }
45 template <typename EnvironmentArnT = Aws::String>
47 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<Aws::String>& GetPermissions() const { return m_permissions; }
93 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
94 template <typename PermissionsT = Aws::Vector<Aws::String>>
95 void SetPermissions(PermissionsT&& value) {
96 m_permissionsHasBeenSet = true;
97 m_permissions = std::forward<PermissionsT>(value);
98 }
99 template <typename PermissionsT = Aws::Vector<Aws::String>>
101 SetPermissions(std::forward<PermissionsT>(value));
102 return *this;
103 }
104 template <typename PermissionsT = Aws::String>
106 m_permissionsHasBeenSet = true;
107 m_permissions.emplace_back(std::forward<PermissionsT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_environmentArn;
113
114 Aws::String m_name;
115
116 Aws::String m_description;
117
118 Aws::Vector<Aws::String> m_permissions;
119 bool m_environmentArnHasBeenSet = false;
120 bool m_nameHasBeenSet = false;
121 bool m_descriptionHasBeenSet = false;
122 bool m_permissionsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Assurance
127} // namespace Aws
CreatePermissionSetRequest & WithName(NameT &&value)
CreatePermissionSetRequest & WithEnvironmentArn(EnvironmentArnT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ASSURANCE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePermissionSetRequest & WithPermissions(PermissionsT &&value)
CreatePermissionSetRequest & AddPermissions(PermissionsT &&value)
AWS_ASSURANCE_API Aws::String SerializePayload() const override
AWS_ASSURANCE_API CreatePermissionSetRequest()=default
const Aws::Vector< Aws::String > & GetPermissions() const
CreatePermissionSetRequest & WithDescription(DescriptionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector