AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetResourcePermissionRequest.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/ssm-sap/SsmSapRequest.h>
9#include <aws/ssm-sap/model/PermissionActionType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SsmSap
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SSMSAP_API GetResourcePermissionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetResourcePermission"; }
32
33 AWS_SSMSAP_API Aws::String SerializePayload() const override;
34
35
37
40 inline PermissionActionType GetActionType() const { return m_actionType; }
41 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
42 inline void SetActionType(PermissionActionType value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
45
47
50 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
51 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
52 template<typename ResourceArnT = Aws::String>
53 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
54 template<typename ResourceArnT = Aws::String>
55 GetResourcePermissionRequest& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
57 private:
58
60 bool m_actionTypeHasBeenSet = false;
61
62 Aws::String m_resourceArn;
63 bool m_resourceArnHasBeenSet = false;
64 };
65
66} // namespace Model
67} // namespace SsmSap
68} // 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