AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeDocumentPermissionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/DocumentPermissionType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SSM {
16namespace Model {
17
21 public:
22 AWS_SSM_API DescribeDocumentPermissionRequest() = 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 "DescribeDocumentPermission"; }
29
30 AWS_SSM_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
57 inline DocumentPermissionType GetPermissionType() const { return m_permissionType; }
58 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
60 m_permissionTypeHasBeenSet = true;
61 m_permissionType = value;
62 }
64 SetPermissionType(value);
65 return *this;
66 }
68
70
75 inline int GetMaxResults() const { return m_maxResults; }
76 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
77 inline void SetMaxResults(int value) {
78 m_maxResultsHasBeenSet = true;
79 m_maxResults = value;
80 }
82 SetMaxResults(value);
83 return *this;
84 }
86
88
92 inline const Aws::String& GetNextToken() const { return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 template <typename NextTokenT = Aws::String>
95 void SetNextToken(NextTokenT&& value) {
96 m_nextTokenHasBeenSet = true;
97 m_nextToken = std::forward<NextTokenT>(value);
98 }
99 template <typename NextTokenT = Aws::String>
101 SetNextToken(std::forward<NextTokenT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_name;
107
109
110 int m_maxResults{0};
111
112 Aws::String m_nextToken;
113 bool m_nameHasBeenSet = false;
114 bool m_permissionTypeHasBeenSet = false;
115 bool m_maxResultsHasBeenSet = false;
116 bool m_nextTokenHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace SSM
121} // namespace Aws
DescribeDocumentPermissionRequest & WithPermissionType(DocumentPermissionType value)
DescribeDocumentPermissionRequest & WithMaxResults(int value)
DescribeDocumentPermissionRequest & WithNextToken(NextTokenT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
DescribeDocumentPermissionRequest & WithName(NameT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String