AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeDocumentPermissionRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm/model/DocumentPermissionType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SSM
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 "DescribeDocumentPermission"; }
32
33 AWS_SSM_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetName() const{ return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline DescribeDocumentPermissionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline DescribeDocumentPermissionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline DescribeDocumentPermissionRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
57 inline const DocumentPermissionType& GetPermissionType() const{ return m_permissionType; }
58 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
59 inline void SetPermissionType(const DocumentPermissionType& value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
60 inline void SetPermissionType(DocumentPermissionType&& value) { m_permissionTypeHasBeenSet = true; m_permissionType = std::move(value); }
64
66
71 inline int GetMaxResults() const{ return m_maxResults; }
72 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
73 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
74 inline DescribeDocumentPermissionRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
76
78
82 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
83 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
84 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
85 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
86 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
87 inline DescribeDocumentPermissionRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
88 inline DescribeDocumentPermissionRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
89 inline DescribeDocumentPermissionRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
91 private:
92
93 Aws::String m_name;
94 bool m_nameHasBeenSet = false;
95
96 DocumentPermissionType m_permissionType;
97 bool m_permissionTypeHasBeenSet = false;
98
99 int m_maxResults;
100 bool m_maxResultsHasBeenSet = false;
101
102 Aws::String m_nextToken;
103 bool m_nextTokenHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace SSM
108} // namespace Aws
DescribeDocumentPermissionRequest & WithNextToken(const Aws::String &value)
DescribeDocumentPermissionRequest & WithNextToken(Aws::String &&value)
DescribeDocumentPermissionRequest & WithMaxResults(int value)
DescribeDocumentPermissionRequest & WithPermissionType(DocumentPermissionType &&value)
DescribeDocumentPermissionRequest & WithNextToken(const char *value)
DescribeDocumentPermissionRequest & WithPermissionType(const DocumentPermissionType &value)
DescribeDocumentPermissionRequest & WithName(Aws::String &&value)
DescribeDocumentPermissionRequest & WithName(const char *value)
AWS_SSM_API Aws::String SerializePayload() const override
DescribeDocumentPermissionRequest & WithName(const Aws::String &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