AWS SDK for C++  1.9.157
AWS SDK for C++
ModifyDocumentPermissionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
8 #include <aws/ssm/SSMRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SSM
17 {
18 namespace 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::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetName() const{ return m_name; }
43 
47  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 
52  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 
57  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 
62  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 
67  inline ModifyDocumentPermissionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
68 
72  inline ModifyDocumentPermissionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
73 
77  inline ModifyDocumentPermissionRequest& WithName(const char* value) { SetName(value); return *this;}
78 
79 
84  inline const DocumentPermissionType& GetPermissionType() const{ return m_permissionType; }
85 
90  inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
91 
96  inline void SetPermissionType(const DocumentPermissionType& value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
97 
102  inline void SetPermissionType(DocumentPermissionType&& value) { m_permissionTypeHasBeenSet = true; m_permissionType = std::move(value); }
103 
108  inline ModifyDocumentPermissionRequest& WithPermissionType(const DocumentPermissionType& value) { SetPermissionType(value); return *this;}
109 
114  inline ModifyDocumentPermissionRequest& WithPermissionType(DocumentPermissionType&& value) { SetPermissionType(std::move(value)); return *this;}
115 
116 
122  inline const Aws::Vector<Aws::String>& GetAccountIdsToAdd() const{ return m_accountIdsToAdd; }
123 
129  inline bool AccountIdsToAddHasBeenSet() const { return m_accountIdsToAddHasBeenSet; }
130 
136  inline void SetAccountIdsToAdd(const Aws::Vector<Aws::String>& value) { m_accountIdsToAddHasBeenSet = true; m_accountIdsToAdd = value; }
137 
143  inline void SetAccountIdsToAdd(Aws::Vector<Aws::String>&& value) { m_accountIdsToAddHasBeenSet = true; m_accountIdsToAdd = std::move(value); }
144 
150  inline ModifyDocumentPermissionRequest& WithAccountIdsToAdd(const Aws::Vector<Aws::String>& value) { SetAccountIdsToAdd(value); return *this;}
151 
157  inline ModifyDocumentPermissionRequest& WithAccountIdsToAdd(Aws::Vector<Aws::String>&& value) { SetAccountIdsToAdd(std::move(value)); return *this;}
158 
164  inline ModifyDocumentPermissionRequest& AddAccountIdsToAdd(const Aws::String& value) { m_accountIdsToAddHasBeenSet = true; m_accountIdsToAdd.push_back(value); return *this; }
165 
171  inline ModifyDocumentPermissionRequest& AddAccountIdsToAdd(Aws::String&& value) { m_accountIdsToAddHasBeenSet = true; m_accountIdsToAdd.push_back(std::move(value)); return *this; }
172 
178  inline ModifyDocumentPermissionRequest& AddAccountIdsToAdd(const char* value) { m_accountIdsToAddHasBeenSet = true; m_accountIdsToAdd.push_back(value); return *this; }
179 
180 
188  inline const Aws::Vector<Aws::String>& GetAccountIdsToRemove() const{ return m_accountIdsToRemove; }
189 
197  inline bool AccountIdsToRemoveHasBeenSet() const { return m_accountIdsToRemoveHasBeenSet; }
198 
206  inline void SetAccountIdsToRemove(const Aws::Vector<Aws::String>& value) { m_accountIdsToRemoveHasBeenSet = true; m_accountIdsToRemove = value; }
207 
215  inline void SetAccountIdsToRemove(Aws::Vector<Aws::String>&& value) { m_accountIdsToRemoveHasBeenSet = true; m_accountIdsToRemove = std::move(value); }
216 
224  inline ModifyDocumentPermissionRequest& WithAccountIdsToRemove(const Aws::Vector<Aws::String>& value) { SetAccountIdsToRemove(value); return *this;}
225 
233  inline ModifyDocumentPermissionRequest& WithAccountIdsToRemove(Aws::Vector<Aws::String>&& value) { SetAccountIdsToRemove(std::move(value)); return *this;}
234 
242  inline ModifyDocumentPermissionRequest& AddAccountIdsToRemove(const Aws::String& value) { m_accountIdsToRemoveHasBeenSet = true; m_accountIdsToRemove.push_back(value); return *this; }
243 
251  inline ModifyDocumentPermissionRequest& AddAccountIdsToRemove(Aws::String&& value) { m_accountIdsToRemoveHasBeenSet = true; m_accountIdsToRemove.push_back(std::move(value)); return *this; }
252 
260  inline ModifyDocumentPermissionRequest& AddAccountIdsToRemove(const char* value) { m_accountIdsToRemoveHasBeenSet = true; m_accountIdsToRemove.push_back(value); return *this; }
261 
262 
267  inline const Aws::String& GetSharedDocumentVersion() const{ return m_sharedDocumentVersion; }
268 
273  inline bool SharedDocumentVersionHasBeenSet() const { return m_sharedDocumentVersionHasBeenSet; }
274 
279  inline void SetSharedDocumentVersion(const Aws::String& value) { m_sharedDocumentVersionHasBeenSet = true; m_sharedDocumentVersion = value; }
280 
285  inline void SetSharedDocumentVersion(Aws::String&& value) { m_sharedDocumentVersionHasBeenSet = true; m_sharedDocumentVersion = std::move(value); }
286 
291  inline void SetSharedDocumentVersion(const char* value) { m_sharedDocumentVersionHasBeenSet = true; m_sharedDocumentVersion.assign(value); }
292 
297  inline ModifyDocumentPermissionRequest& WithSharedDocumentVersion(const Aws::String& value) { SetSharedDocumentVersion(value); return *this;}
298 
303  inline ModifyDocumentPermissionRequest& WithSharedDocumentVersion(Aws::String&& value) { SetSharedDocumentVersion(std::move(value)); return *this;}
304 
309  inline ModifyDocumentPermissionRequest& WithSharedDocumentVersion(const char* value) { SetSharedDocumentVersion(value); return *this;}
310 
311  private:
312 
313  Aws::String m_name;
314  bool m_nameHasBeenSet;
315 
316  DocumentPermissionType m_permissionType;
317  bool m_permissionTypeHasBeenSet;
318 
319  Aws::Vector<Aws::String> m_accountIdsToAdd;
320  bool m_accountIdsToAddHasBeenSet;
321 
322  Aws::Vector<Aws::String> m_accountIdsToRemove;
323  bool m_accountIdsToRemoveHasBeenSet;
324 
325  Aws::String m_sharedDocumentVersion;
326  bool m_sharedDocumentVersionHasBeenSet;
327  };
328 
329 } // namespace Model
330 } // namespace SSM
331 } // namespace Aws
Aws::SSM::Model::ModifyDocumentPermissionRequest::AddAccountIdsToRemove
ModifyDocumentPermissionRequest & AddAccountIdsToRemove(const Aws::String &value)
Definition: ModifyDocumentPermissionRequest.h:242
Aws::SSM::Model::ModifyDocumentPermissionRequest::SetName
void SetName(Aws::String &&value)
Definition: ModifyDocumentPermissionRequest.h:57
Aws::SSM::Model::ModifyDocumentPermissionRequest::WithAccountIdsToRemove
ModifyDocumentPermissionRequest & WithAccountIdsToRemove(Aws::Vector< Aws::String > &&value)
Definition: ModifyDocumentPermissionRequest.h:233
Aws::ResilienceHub::Model::SopServiceType::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSM::Model::ModifyDocumentPermissionRequest::AddAccountIdsToAdd
ModifyDocumentPermissionRequest & AddAccountIdsToAdd(Aws::String &&value)
Definition: ModifyDocumentPermissionRequest.h:171
Aws::SSM::Model::ModifyDocumentPermissionRequest::GetAccountIdsToRemove
const Aws::Vector< Aws::String > & GetAccountIdsToRemove() const
Definition: ModifyDocumentPermissionRequest.h:188
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::ModifyDocumentPermissionRequest::GetSharedDocumentVersion
const Aws::String & GetSharedDocumentVersion() const
Definition: ModifyDocumentPermissionRequest.h:267
Aws::SSM::Model::ModifyDocumentPermissionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyDocumentPermissionRequest.h:32
Aws::SSM::Model::ModifyDocumentPermissionRequest::SetAccountIdsToAdd
void SetAccountIdsToAdd(Aws::Vector< Aws::String > &&value)
Definition: ModifyDocumentPermissionRequest.h:143
Aws::SSM::Model::ModifyDocumentPermissionRequest::AddAccountIdsToRemove
ModifyDocumentPermissionRequest & AddAccountIdsToRemove(Aws::String &&value)
Definition: ModifyDocumentPermissionRequest.h:251
Aws::SSM::Model::DocumentPermissionType
DocumentPermissionType
Definition: DocumentPermissionType.h:17
Aws::SSM::Model::ModifyDocumentPermissionRequest::WithName
ModifyDocumentPermissionRequest & WithName(const char *value)
Definition: ModifyDocumentPermissionRequest.h:77
Aws::SSM::Model::ModifyDocumentPermissionRequest::WithPermissionType
ModifyDocumentPermissionRequest & WithPermissionType(DocumentPermissionType &&value)
Definition: ModifyDocumentPermissionRequest.h:114
Aws::SSM::Model::ModifyDocumentPermissionRequest::SetName
void SetName(const char *value)
Definition: ModifyDocumentPermissionRequest.h:62
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SSM_EXPORTS.h
Aws::SSM::Model::ModifyDocumentPermissionRequest::GetAccountIdsToAdd
const Aws::Vector< Aws::String > & GetAccountIdsToAdd() const
Definition: ModifyDocumentPermissionRequest.h:122
Aws::SSM::Model::ModifyDocumentPermissionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ModifyDocumentPermissionRequest.h:47
Aws::SSM::Model::ModifyDocumentPermissionRequest::SetAccountIdsToRemove
void SetAccountIdsToRemove(const Aws::Vector< Aws::String > &value)
Definition: ModifyDocumentPermissionRequest.h:206
Aws::SSM::Model::ModifyDocumentPermissionRequest::AddAccountIdsToAdd
ModifyDocumentPermissionRequest & AddAccountIdsToAdd(const char *value)
Definition: ModifyDocumentPermissionRequest.h:178
AWSVector.h
Aws::SSM::Model::ModifyDocumentPermissionRequest::SetPermissionType
void SetPermissionType(const DocumentPermissionType &value)
Definition: ModifyDocumentPermissionRequest.h:96
Aws::SSM::Model::ModifyDocumentPermissionRequest::SetAccountIdsToRemove
void SetAccountIdsToRemove(Aws::Vector< Aws::String > &&value)
Definition: ModifyDocumentPermissionRequest.h:215
Aws::SSM::Model::ModifyDocumentPermissionRequest
Definition: ModifyDocumentPermissionRequest.h:24
Aws::SSM::Model::ModifyDocumentPermissionRequest::SetSharedDocumentVersion
void SetSharedDocumentVersion(const Aws::String &value)
Definition: ModifyDocumentPermissionRequest.h:279
Aws::SSM::Model::ModifyDocumentPermissionRequest::WithSharedDocumentVersion
ModifyDocumentPermissionRequest & WithSharedDocumentVersion(const char *value)
Definition: ModifyDocumentPermissionRequest.h:309
Aws::SSM::Model::ModifyDocumentPermissionRequest::SetPermissionType
void SetPermissionType(DocumentPermissionType &&value)
Definition: ModifyDocumentPermissionRequest.h:102
Aws::SSM::Model::ModifyDocumentPermissionRequest::WithPermissionType
ModifyDocumentPermissionRequest & WithPermissionType(const DocumentPermissionType &value)
Definition: ModifyDocumentPermissionRequest.h:108
Aws::SSM::Model::ModifyDocumentPermissionRequest::AddAccountIdsToRemove
ModifyDocumentPermissionRequest & AddAccountIdsToRemove(const char *value)
Definition: ModifyDocumentPermissionRequest.h:260
Aws::SSM::Model::ModifyDocumentPermissionRequest::WithName
ModifyDocumentPermissionRequest & WithName(Aws::String &&value)
Definition: ModifyDocumentPermissionRequest.h:72
Aws::SSM::Model::ModifyDocumentPermissionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSM::Model::ModifyDocumentPermissionRequest::SetName
void SetName(const Aws::String &value)
Definition: ModifyDocumentPermissionRequest.h:52
Aws::SSM::Model::ModifyDocumentPermissionRequest::AccountIdsToRemoveHasBeenSet
bool AccountIdsToRemoveHasBeenSet() const
Definition: ModifyDocumentPermissionRequest.h:197
Aws::SSM::Model::ModifyDocumentPermissionRequest::WithAccountIdsToAdd
ModifyDocumentPermissionRequest & WithAccountIdsToAdd(Aws::Vector< Aws::String > &&value)
Definition: ModifyDocumentPermissionRequest.h:157
Aws::SSM::Model::ModifyDocumentPermissionRequest::GetName
const Aws::String & GetName() const
Definition: ModifyDocumentPermissionRequest.h:42
AWSString.h
Aws::SSM::Model::ModifyDocumentPermissionRequest::WithAccountIdsToAdd
ModifyDocumentPermissionRequest & WithAccountIdsToAdd(const Aws::Vector< Aws::String > &value)
Definition: ModifyDocumentPermissionRequest.h:150
Aws::SSM::Model::ModifyDocumentPermissionRequest::GetPermissionType
const DocumentPermissionType & GetPermissionType() const
Definition: ModifyDocumentPermissionRequest.h:84
Aws::SSM::Model::ModifyDocumentPermissionRequest::AccountIdsToAddHasBeenSet
bool AccountIdsToAddHasBeenSet() const
Definition: ModifyDocumentPermissionRequest.h:129
Aws::SSM::Model::ModifyDocumentPermissionRequest::ModifyDocumentPermissionRequest
ModifyDocumentPermissionRequest()
Aws::SSM::Model::ModifyDocumentPermissionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSM::Model::ModifyDocumentPermissionRequest::PermissionTypeHasBeenSet
bool PermissionTypeHasBeenSet() const
Definition: ModifyDocumentPermissionRequest.h:90
Aws::SSM::Model::ModifyDocumentPermissionRequest::WithAccountIdsToRemove
ModifyDocumentPermissionRequest & WithAccountIdsToRemove(const Aws::Vector< Aws::String > &value)
Definition: ModifyDocumentPermissionRequest.h:224
Aws::SSM::Model::ModifyDocumentPermissionRequest::WithSharedDocumentVersion
ModifyDocumentPermissionRequest & WithSharedDocumentVersion(const Aws::String &value)
Definition: ModifyDocumentPermissionRequest.h:297
Aws::SSM::Model::ModifyDocumentPermissionRequest::SetSharedDocumentVersion
void SetSharedDocumentVersion(const char *value)
Definition: ModifyDocumentPermissionRequest.h:291
Aws::SSM::Model::ModifyDocumentPermissionRequest::SharedDocumentVersionHasBeenSet
bool SharedDocumentVersionHasBeenSet() const
Definition: ModifyDocumentPermissionRequest.h:273
Aws::SSM::Model::ModifyDocumentPermissionRequest::WithName
ModifyDocumentPermissionRequest & WithName(const Aws::String &value)
Definition: ModifyDocumentPermissionRequest.h:67
Aws::SSM::Model::ModifyDocumentPermissionRequest::WithSharedDocumentVersion
ModifyDocumentPermissionRequest & WithSharedDocumentVersion(Aws::String &&value)
Definition: ModifyDocumentPermissionRequest.h:303
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::ModifyDocumentPermissionRequest::SetAccountIdsToAdd
void SetAccountIdsToAdd(const Aws::Vector< Aws::String > &value)
Definition: ModifyDocumentPermissionRequest.h:136
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::ModifyDocumentPermissionRequest::AddAccountIdsToAdd
ModifyDocumentPermissionRequest & AddAccountIdsToAdd(const Aws::String &value)
Definition: ModifyDocumentPermissionRequest.h:164
Aws::SSM::Model::ModifyDocumentPermissionRequest::SetSharedDocumentVersion
void SetSharedDocumentVersion(Aws::String &&value)
Definition: ModifyDocumentPermissionRequest.h:285
DocumentPermissionType.h
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
SSMRequest.h