AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 const PermissionActionType& GetActionType() const{ return m_actionType; }
41 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
42 inline void SetActionType(const PermissionActionType& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
43 inline void SetActionType(PermissionActionType&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
45 inline GetResourcePermissionRequest& WithActionType(PermissionActionType&& value) { SetActionType(std::move(value)); return *this;}
47
49
52 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
53 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
54 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
55 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
56 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
57 inline GetResourcePermissionRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
58 inline GetResourcePermissionRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
59 inline GetResourcePermissionRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
61 private:
62
63 PermissionActionType m_actionType;
64 bool m_actionTypeHasBeenSet = false;
65
66 Aws::String m_resourceArn;
67 bool m_resourceArnHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace SsmSap
72} // namespace Aws
GetResourcePermissionRequest & WithResourceArn(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_SSMSAP_API Aws::String SerializePayload() const override
GetResourcePermissionRequest & WithActionType(const PermissionActionType &value)
void SetActionType(const PermissionActionType &value)
GetResourcePermissionRequest & WithActionType(PermissionActionType &&value)
GetResourcePermissionRequest & WithResourceArn(const Aws::String &value)
GetResourcePermissionRequest & WithResourceArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String