AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
UpdateApplicationSettingsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm-sap/SsmSapRequest.h>
10#include <aws/ssm-sap/SsmSap_EXPORTS.h>
11#include <aws/ssm-sap/model/ApplicationCredential.h>
12#include <aws/ssm-sap/model/BackintConfig.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SsmSap {
18namespace Model {
19
23 public:
24 AWS_SSMSAP_API UpdateApplicationSettingsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateApplicationSettings"; }
31
32 AWS_SSMSAP_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
39 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
40 template <typename ApplicationIdT = Aws::String>
41 void SetApplicationId(ApplicationIdT&& value) {
42 m_applicationIdHasBeenSet = true;
43 m_applicationId = std::forward<ApplicationIdT>(value);
44 }
45 template <typename ApplicationIdT = Aws::String>
47 SetApplicationId(std::forward<ApplicationIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<ApplicationCredential>& GetCredentialsToAddOrUpdate() const { return m_credentialsToAddOrUpdate; }
57 inline bool CredentialsToAddOrUpdateHasBeenSet() const { return m_credentialsToAddOrUpdateHasBeenSet; }
58 template <typename CredentialsToAddOrUpdateT = Aws::Vector<ApplicationCredential>>
59 void SetCredentialsToAddOrUpdate(CredentialsToAddOrUpdateT&& value) {
60 m_credentialsToAddOrUpdateHasBeenSet = true;
61 m_credentialsToAddOrUpdate = std::forward<CredentialsToAddOrUpdateT>(value);
62 }
63 template <typename CredentialsToAddOrUpdateT = Aws::Vector<ApplicationCredential>>
65 SetCredentialsToAddOrUpdate(std::forward<CredentialsToAddOrUpdateT>(value));
66 return *this;
67 }
68 template <typename CredentialsToAddOrUpdateT = ApplicationCredential>
70 m_credentialsToAddOrUpdateHasBeenSet = true;
71 m_credentialsToAddOrUpdate.emplace_back(std::forward<CredentialsToAddOrUpdateT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<ApplicationCredential>& GetCredentialsToRemove() const { return m_credentialsToRemove; }
81 inline bool CredentialsToRemoveHasBeenSet() const { return m_credentialsToRemoveHasBeenSet; }
82 template <typename CredentialsToRemoveT = Aws::Vector<ApplicationCredential>>
83 void SetCredentialsToRemove(CredentialsToRemoveT&& value) {
84 m_credentialsToRemoveHasBeenSet = true;
85 m_credentialsToRemove = std::forward<CredentialsToRemoveT>(value);
86 }
87 template <typename CredentialsToRemoveT = Aws::Vector<ApplicationCredential>>
89 SetCredentialsToRemove(std::forward<CredentialsToRemoveT>(value));
90 return *this;
91 }
92 template <typename CredentialsToRemoveT = ApplicationCredential>
94 m_credentialsToRemoveHasBeenSet = true;
95 m_credentialsToRemove.emplace_back(std::forward<CredentialsToRemoveT>(value));
96 return *this;
97 }
99
101
104 inline const BackintConfig& GetBackint() const { return m_backint; }
105 inline bool BackintHasBeenSet() const { return m_backintHasBeenSet; }
106 template <typename BackintT = BackintConfig>
107 void SetBackint(BackintT&& value) {
108 m_backintHasBeenSet = true;
109 m_backint = std::forward<BackintT>(value);
110 }
111 template <typename BackintT = BackintConfig>
113 SetBackint(std::forward<BackintT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::String& GetDatabaseArn() const { return m_databaseArn; }
124 inline bool DatabaseArnHasBeenSet() const { return m_databaseArnHasBeenSet; }
125 template <typename DatabaseArnT = Aws::String>
126 void SetDatabaseArn(DatabaseArnT&& value) {
127 m_databaseArnHasBeenSet = true;
128 m_databaseArn = std::forward<DatabaseArnT>(value);
129 }
130 template <typename DatabaseArnT = Aws::String>
132 SetDatabaseArn(std::forward<DatabaseArnT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_applicationId;
138
139 Aws::Vector<ApplicationCredential> m_credentialsToAddOrUpdate;
140
141 Aws::Vector<ApplicationCredential> m_credentialsToRemove;
142
143 BackintConfig m_backint;
144
145 Aws::String m_databaseArn;
146 bool m_applicationIdHasBeenSet = false;
147 bool m_credentialsToAddOrUpdateHasBeenSet = false;
148 bool m_credentialsToRemoveHasBeenSet = false;
149 bool m_backintHasBeenSet = false;
150 bool m_databaseArnHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace SsmSap
155} // namespace Aws
const Aws::Vector< ApplicationCredential > & GetCredentialsToAddOrUpdate() const
UpdateApplicationSettingsRequest & WithDatabaseArn(DatabaseArnT &&value)
UpdateApplicationSettingsRequest & AddCredentialsToAddOrUpdate(CredentialsToAddOrUpdateT &&value)
UpdateApplicationSettingsRequest & WithCredentialsToRemove(CredentialsToRemoveT &&value)
AWS_SSMSAP_API Aws::String SerializePayload() const override
UpdateApplicationSettingsRequest & AddCredentialsToRemove(CredentialsToRemoveT &&value)
UpdateApplicationSettingsRequest & WithCredentialsToAddOrUpdate(CredentialsToAddOrUpdateT &&value)
UpdateApplicationSettingsRequest & WithApplicationId(ApplicationIdT &&value)
const Aws::Vector< ApplicationCredential > & GetCredentialsToRemove() const
UpdateApplicationSettingsRequest & WithBackint(BackintT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector