AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteResourcePermissionRequest.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 "DeleteResourcePermission"; }
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 DeleteResourcePermissionRequest& WithActionType(PermissionActionType&& value) { SetActionType(std::move(value)); return *this;}
47
49
52 inline const Aws::String& GetSourceResourceArn() const{ return m_sourceResourceArn; }
53 inline bool SourceResourceArnHasBeenSet() const { return m_sourceResourceArnHasBeenSet; }
54 inline void SetSourceResourceArn(const Aws::String& value) { m_sourceResourceArnHasBeenSet = true; m_sourceResourceArn = value; }
55 inline void SetSourceResourceArn(Aws::String&& value) { m_sourceResourceArnHasBeenSet = true; m_sourceResourceArn = std::move(value); }
56 inline void SetSourceResourceArn(const char* value) { m_sourceResourceArnHasBeenSet = true; m_sourceResourceArn.assign(value); }
59 inline DeleteResourcePermissionRequest& WithSourceResourceArn(const char* value) { SetSourceResourceArn(value); return *this;}
61
63
66 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
67 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
68 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
69 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
70 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
71 inline DeleteResourcePermissionRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
72 inline DeleteResourcePermissionRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
73 inline DeleteResourcePermissionRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
75 private:
76
77 PermissionActionType m_actionType;
78 bool m_actionTypeHasBeenSet = false;
79
80 Aws::String m_sourceResourceArn;
81 bool m_sourceResourceArnHasBeenSet = false;
82
83 Aws::String m_resourceArn;
84 bool m_resourceArnHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace SsmSap
89} // namespace Aws
DeleteResourcePermissionRequest & WithResourceArn(const Aws::String &value)
DeleteResourcePermissionRequest & WithActionType(const PermissionActionType &value)
DeleteResourcePermissionRequest & WithSourceResourceArn(Aws::String &&value)
AWS_SSMSAP_API Aws::String SerializePayload() const override
DeleteResourcePermissionRequest & WithResourceArn(const char *value)
DeleteResourcePermissionRequest & WithSourceResourceArn(const Aws::String &value)
DeleteResourcePermissionRequest & WithSourceResourceArn(const char *value)
DeleteResourcePermissionRequest & WithActionType(PermissionActionType &&value)
DeleteResourcePermissionRequest & WithResourceArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String