AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyDocumentPermissionRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSM
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ModifyDocumentPermission"; }
33
34 AWS_SSM_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetName() const{ return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline ModifyDocumentPermissionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline ModifyDocumentPermissionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline ModifyDocumentPermissionRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
58 inline const DocumentPermissionType& GetPermissionType() const{ return m_permissionType; }
59 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
60 inline void SetPermissionType(const DocumentPermissionType& value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
61 inline void SetPermissionType(DocumentPermissionType&& value) { m_permissionTypeHasBeenSet = true; m_permissionType = std::move(value); }
65
67
71 inline const Aws::Vector<Aws::String>& GetAccountIdsToAdd() const{ return m_accountIdsToAdd; }
72 inline bool AccountIdsToAddHasBeenSet() const { return m_accountIdsToAddHasBeenSet; }
73 inline void SetAccountIdsToAdd(const Aws::Vector<Aws::String>& value) { m_accountIdsToAddHasBeenSet = true; m_accountIdsToAdd = value; }
74 inline void SetAccountIdsToAdd(Aws::Vector<Aws::String>&& value) { m_accountIdsToAddHasBeenSet = true; m_accountIdsToAdd = std::move(value); }
77 inline ModifyDocumentPermissionRequest& AddAccountIdsToAdd(const Aws::String& value) { m_accountIdsToAddHasBeenSet = true; m_accountIdsToAdd.push_back(value); return *this; }
78 inline ModifyDocumentPermissionRequest& AddAccountIdsToAdd(Aws::String&& value) { m_accountIdsToAddHasBeenSet = true; m_accountIdsToAdd.push_back(std::move(value)); return *this; }
79 inline ModifyDocumentPermissionRequest& AddAccountIdsToAdd(const char* value) { m_accountIdsToAddHasBeenSet = true; m_accountIdsToAdd.push_back(value); return *this; }
81
83
90 inline const Aws::Vector<Aws::String>& GetAccountIdsToRemove() const{ return m_accountIdsToRemove; }
91 inline bool AccountIdsToRemoveHasBeenSet() const { return m_accountIdsToRemoveHasBeenSet; }
92 inline void SetAccountIdsToRemove(const Aws::Vector<Aws::String>& value) { m_accountIdsToRemoveHasBeenSet = true; m_accountIdsToRemove = value; }
93 inline void SetAccountIdsToRemove(Aws::Vector<Aws::String>&& value) { m_accountIdsToRemoveHasBeenSet = true; m_accountIdsToRemove = std::move(value); }
96 inline ModifyDocumentPermissionRequest& AddAccountIdsToRemove(const Aws::String& value) { m_accountIdsToRemoveHasBeenSet = true; m_accountIdsToRemove.push_back(value); return *this; }
97 inline ModifyDocumentPermissionRequest& AddAccountIdsToRemove(Aws::String&& value) { m_accountIdsToRemoveHasBeenSet = true; m_accountIdsToRemove.push_back(std::move(value)); return *this; }
98 inline ModifyDocumentPermissionRequest& AddAccountIdsToRemove(const char* value) { m_accountIdsToRemoveHasBeenSet = true; m_accountIdsToRemove.push_back(value); return *this; }
100
102
106 inline const Aws::String& GetSharedDocumentVersion() const{ return m_sharedDocumentVersion; }
107 inline bool SharedDocumentVersionHasBeenSet() const { return m_sharedDocumentVersionHasBeenSet; }
108 inline void SetSharedDocumentVersion(const Aws::String& value) { m_sharedDocumentVersionHasBeenSet = true; m_sharedDocumentVersion = value; }
109 inline void SetSharedDocumentVersion(Aws::String&& value) { m_sharedDocumentVersionHasBeenSet = true; m_sharedDocumentVersion = std::move(value); }
110 inline void SetSharedDocumentVersion(const char* value) { m_sharedDocumentVersionHasBeenSet = true; m_sharedDocumentVersion.assign(value); }
115 private:
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 DocumentPermissionType m_permissionType;
121 bool m_permissionTypeHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_accountIdsToAdd;
124 bool m_accountIdsToAddHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_accountIdsToRemove;
127 bool m_accountIdsToRemoveHasBeenSet = false;
128
129 Aws::String m_sharedDocumentVersion;
130 bool m_sharedDocumentVersionHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace SSM
135} // namespace Aws
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ModifyDocumentPermissionRequest & WithAccountIdsToRemove(const Aws::Vector< Aws::String > &value)
void SetPermissionType(const DocumentPermissionType &value)
ModifyDocumentPermissionRequest & WithName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAccountIdsToAdd() const
ModifyDocumentPermissionRequest & WithSharedDocumentVersion(const char *value)
AWS_SSM_API Aws::String SerializePayload() const override
ModifyDocumentPermissionRequest & AddAccountIdsToAdd(Aws::String &&value)
ModifyDocumentPermissionRequest & AddAccountIdsToAdd(const char *value)
const Aws::Vector< Aws::String > & GetAccountIdsToRemove() const
ModifyDocumentPermissionRequest & AddAccountIdsToRemove(Aws::String &&value)
ModifyDocumentPermissionRequest & AddAccountIdsToRemove(const Aws::String &value)
void SetAccountIdsToAdd(Aws::Vector< Aws::String > &&value)
ModifyDocumentPermissionRequest & WithAccountIdsToRemove(Aws::Vector< Aws::String > &&value)
void SetAccountIdsToRemove(const Aws::Vector< Aws::String > &value)
void SetAccountIdsToRemove(Aws::Vector< Aws::String > &&value)
ModifyDocumentPermissionRequest & WithAccountIdsToAdd(Aws::Vector< Aws::String > &&value)
ModifyDocumentPermissionRequest & WithAccountIdsToAdd(const Aws::Vector< Aws::String > &value)
ModifyDocumentPermissionRequest & AddAccountIdsToAdd(const Aws::String &value)
ModifyDocumentPermissionRequest & WithSharedDocumentVersion(Aws::String &&value)
ModifyDocumentPermissionRequest & WithPermissionType(DocumentPermissionType &&value)
ModifyDocumentPermissionRequest & WithName(const char *value)
ModifyDocumentPermissionRequest & WithSharedDocumentVersion(const Aws::String &value)
ModifyDocumentPermissionRequest & WithName(Aws::String &&value)
ModifyDocumentPermissionRequest & AddAccountIdsToRemove(const char *value)
void SetAccountIdsToAdd(const Aws::Vector< Aws::String > &value)
ModifyDocumentPermissionRequest & WithPermissionType(const DocumentPermissionType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector