AWS SDK for C++

AWS SDK for C++ Version 1.11.554

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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:
26 AWS_SSM_API ModifyDocumentPermissionRequest() = default;
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 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 ModifyDocumentPermissionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
56 inline DocumentPermissionType GetPermissionType() const { return m_permissionType; }
57 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
58 inline void SetPermissionType(DocumentPermissionType value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
61
63
68 inline const Aws::Vector<Aws::String>& GetAccountIdsToAdd() const { return m_accountIdsToAdd; }
69 inline bool AccountIdsToAddHasBeenSet() const { return m_accountIdsToAddHasBeenSet; }
70 template<typename AccountIdsToAddT = Aws::Vector<Aws::String>>
71 void SetAccountIdsToAdd(AccountIdsToAddT&& value) { m_accountIdsToAddHasBeenSet = true; m_accountIdsToAdd = std::forward<AccountIdsToAddT>(value); }
72 template<typename AccountIdsToAddT = Aws::Vector<Aws::String>>
73 ModifyDocumentPermissionRequest& WithAccountIdsToAdd(AccountIdsToAddT&& value) { SetAccountIdsToAdd(std::forward<AccountIdsToAddT>(value)); return *this;}
74 template<typename AccountIdsToAddT = Aws::String>
75 ModifyDocumentPermissionRequest& AddAccountIdsToAdd(AccountIdsToAddT&& value) { m_accountIdsToAddHasBeenSet = true; m_accountIdsToAdd.emplace_back(std::forward<AccountIdsToAddT>(value)); return *this; }
77
79
87 inline const Aws::Vector<Aws::String>& GetAccountIdsToRemove() const { return m_accountIdsToRemove; }
88 inline bool AccountIdsToRemoveHasBeenSet() const { return m_accountIdsToRemoveHasBeenSet; }
89 template<typename AccountIdsToRemoveT = Aws::Vector<Aws::String>>
90 void SetAccountIdsToRemove(AccountIdsToRemoveT&& value) { m_accountIdsToRemoveHasBeenSet = true; m_accountIdsToRemove = std::forward<AccountIdsToRemoveT>(value); }
91 template<typename AccountIdsToRemoveT = Aws::Vector<Aws::String>>
92 ModifyDocumentPermissionRequest& WithAccountIdsToRemove(AccountIdsToRemoveT&& value) { SetAccountIdsToRemove(std::forward<AccountIdsToRemoveT>(value)); return *this;}
93 template<typename AccountIdsToRemoveT = Aws::String>
94 ModifyDocumentPermissionRequest& AddAccountIdsToRemove(AccountIdsToRemoveT&& value) { m_accountIdsToRemoveHasBeenSet = true; m_accountIdsToRemove.emplace_back(std::forward<AccountIdsToRemoveT>(value)); return *this; }
96
98
102 inline const Aws::String& GetSharedDocumentVersion() const { return m_sharedDocumentVersion; }
103 inline bool SharedDocumentVersionHasBeenSet() const { return m_sharedDocumentVersionHasBeenSet; }
104 template<typename SharedDocumentVersionT = Aws::String>
105 void SetSharedDocumentVersion(SharedDocumentVersionT&& value) { m_sharedDocumentVersionHasBeenSet = true; m_sharedDocumentVersion = std::forward<SharedDocumentVersionT>(value); }
106 template<typename SharedDocumentVersionT = Aws::String>
107 ModifyDocumentPermissionRequest& WithSharedDocumentVersion(SharedDocumentVersionT&& value) { SetSharedDocumentVersion(std::forward<SharedDocumentVersionT>(value)); return *this;}
109 private:
110
111 Aws::String m_name;
112 bool m_nameHasBeenSet = false;
113
115 bool m_permissionTypeHasBeenSet = false;
116
117 Aws::Vector<Aws::String> m_accountIdsToAdd;
118 bool m_accountIdsToAddHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_accountIdsToRemove;
121 bool m_accountIdsToRemoveHasBeenSet = false;
122
123 Aws::String m_sharedDocumentVersion;
124 bool m_sharedDocumentVersionHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace SSM
129} // namespace Aws
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ModifyDocumentPermissionRequest & AddAccountIdsToRemove(AccountIdsToRemoveT &&value)
const Aws::Vector< Aws::String > & GetAccountIdsToAdd() const
AWS_SSM_API Aws::String SerializePayload() const override
ModifyDocumentPermissionRequest & WithAccountIdsToRemove(AccountIdsToRemoveT &&value)
ModifyDocumentPermissionRequest & WithName(NameT &&value)
ModifyDocumentPermissionRequest & WithAccountIdsToAdd(AccountIdsToAddT &&value)
ModifyDocumentPermissionRequest & AddAccountIdsToAdd(AccountIdsToAddT &&value)
const Aws::Vector< Aws::String > & GetAccountIdsToRemove() const
ModifyDocumentPermissionRequest & WithSharedDocumentVersion(SharedDocumentVersionT &&value)
ModifyDocumentPermissionRequest & WithPermissionType(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