AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GetResourcePermissionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm-sap/SsmSapRequest.h>
9#include <aws/ssm-sap/SsmSap_EXPORTS.h>
10#include <aws/ssm-sap/model/PermissionActionType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SsmSap {
16namespace Model {
17
21 public:
22 AWS_SSMSAP_API GetResourcePermissionRequest() = 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 "GetResourcePermission"; }
29
30 AWS_SSMSAP_API Aws::String SerializePayload() const override;
31
33
36 inline PermissionActionType GetActionType() const { return m_actionType; }
37 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
39 m_actionTypeHasBeenSet = true;
40 m_actionType = value;
41 }
43 SetActionType(value);
44 return *this;
45 }
47
49
52 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
53 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
54 template <typename ResourceArnT = Aws::String>
55 void SetResourceArn(ResourceArnT&& value) {
56 m_resourceArnHasBeenSet = true;
57 m_resourceArn = std::forward<ResourceArnT>(value);
58 }
59 template <typename ResourceArnT = Aws::String>
61 SetResourceArn(std::forward<ResourceArnT>(value));
62 return *this;
63 }
65 private:
67
68 Aws::String m_resourceArn;
69 bool m_actionTypeHasBeenSet = false;
70 bool m_resourceArnHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace SsmSap
75} // namespace Aws
virtual const char * GetServiceRequestName() const override
GetResourcePermissionRequest & WithActionType(PermissionActionType value)
GetResourcePermissionRequest & WithResourceArn(ResourceArnT &&value)
AWS_SSMSAP_API Aws::String SerializePayload() const override
AWS_SSMSAP_API GetResourcePermissionRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String