AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateApplicationSettingsRequest.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/ssm-sap/SsmSapRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm-sap/model/BackintConfig.h>
12#include <aws/ssm-sap/model/ApplicationCredential.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SsmSap
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateApplicationSettings"; }
34
35 AWS_SSMSAP_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
43 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
44 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
45 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
46 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
48 inline UpdateApplicationSettingsRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
49 inline UpdateApplicationSettingsRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
51
53
56 inline const Aws::Vector<ApplicationCredential>& GetCredentialsToAddOrUpdate() const{ return m_credentialsToAddOrUpdate; }
57 inline bool CredentialsToAddOrUpdateHasBeenSet() const { return m_credentialsToAddOrUpdateHasBeenSet; }
58 inline void SetCredentialsToAddOrUpdate(const Aws::Vector<ApplicationCredential>& value) { m_credentialsToAddOrUpdateHasBeenSet = true; m_credentialsToAddOrUpdate = value; }
59 inline void SetCredentialsToAddOrUpdate(Aws::Vector<ApplicationCredential>&& value) { m_credentialsToAddOrUpdateHasBeenSet = true; m_credentialsToAddOrUpdate = std::move(value); }
62 inline UpdateApplicationSettingsRequest& AddCredentialsToAddOrUpdate(const ApplicationCredential& value) { m_credentialsToAddOrUpdateHasBeenSet = true; m_credentialsToAddOrUpdate.push_back(value); return *this; }
63 inline UpdateApplicationSettingsRequest& AddCredentialsToAddOrUpdate(ApplicationCredential&& value) { m_credentialsToAddOrUpdateHasBeenSet = true; m_credentialsToAddOrUpdate.push_back(std::move(value)); return *this; }
65
67
70 inline const Aws::Vector<ApplicationCredential>& GetCredentialsToRemove() const{ return m_credentialsToRemove; }
71 inline bool CredentialsToRemoveHasBeenSet() const { return m_credentialsToRemoveHasBeenSet; }
72 inline void SetCredentialsToRemove(const Aws::Vector<ApplicationCredential>& value) { m_credentialsToRemoveHasBeenSet = true; m_credentialsToRemove = value; }
73 inline void SetCredentialsToRemove(Aws::Vector<ApplicationCredential>&& value) { m_credentialsToRemoveHasBeenSet = true; m_credentialsToRemove = std::move(value); }
76 inline UpdateApplicationSettingsRequest& AddCredentialsToRemove(const ApplicationCredential& value) { m_credentialsToRemoveHasBeenSet = true; m_credentialsToRemove.push_back(value); return *this; }
77 inline UpdateApplicationSettingsRequest& AddCredentialsToRemove(ApplicationCredential&& value) { m_credentialsToRemoveHasBeenSet = true; m_credentialsToRemove.push_back(std::move(value)); return *this; }
79
81
84 inline const BackintConfig& GetBackint() const{ return m_backint; }
85 inline bool BackintHasBeenSet() const { return m_backintHasBeenSet; }
86 inline void SetBackint(const BackintConfig& value) { m_backintHasBeenSet = true; m_backint = value; }
87 inline void SetBackint(BackintConfig&& value) { m_backintHasBeenSet = true; m_backint = std::move(value); }
88 inline UpdateApplicationSettingsRequest& WithBackint(const BackintConfig& value) { SetBackint(value); return *this;}
89 inline UpdateApplicationSettingsRequest& WithBackint(BackintConfig&& value) { SetBackint(std::move(value)); return *this;}
91
93
97 inline const Aws::String& GetDatabaseArn() const{ return m_databaseArn; }
98 inline bool DatabaseArnHasBeenSet() const { return m_databaseArnHasBeenSet; }
99 inline void SetDatabaseArn(const Aws::String& value) { m_databaseArnHasBeenSet = true; m_databaseArn = value; }
100 inline void SetDatabaseArn(Aws::String&& value) { m_databaseArnHasBeenSet = true; m_databaseArn = std::move(value); }
101 inline void SetDatabaseArn(const char* value) { m_databaseArnHasBeenSet = true; m_databaseArn.assign(value); }
102 inline UpdateApplicationSettingsRequest& WithDatabaseArn(const Aws::String& value) { SetDatabaseArn(value); return *this;}
103 inline UpdateApplicationSettingsRequest& WithDatabaseArn(Aws::String&& value) { SetDatabaseArn(std::move(value)); return *this;}
104 inline UpdateApplicationSettingsRequest& WithDatabaseArn(const char* value) { SetDatabaseArn(value); return *this;}
106 private:
107
108 Aws::String m_applicationId;
109 bool m_applicationIdHasBeenSet = false;
110
111 Aws::Vector<ApplicationCredential> m_credentialsToAddOrUpdate;
112 bool m_credentialsToAddOrUpdateHasBeenSet = false;
113
114 Aws::Vector<ApplicationCredential> m_credentialsToRemove;
115 bool m_credentialsToRemoveHasBeenSet = false;
116
117 BackintConfig m_backint;
118 bool m_backintHasBeenSet = false;
119
120 Aws::String m_databaseArn;
121 bool m_databaseArnHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace SsmSap
126} // namespace Aws
const Aws::Vector< ApplicationCredential > & GetCredentialsToAddOrUpdate() const
void SetCredentialsToRemove(const Aws::Vector< ApplicationCredential > &value)
UpdateApplicationSettingsRequest & AddCredentialsToAddOrUpdate(const ApplicationCredential &value)
UpdateApplicationSettingsRequest & WithDatabaseArn(Aws::String &&value)
UpdateApplicationSettingsRequest & WithCredentialsToAddOrUpdate(Aws::Vector< ApplicationCredential > &&value)
UpdateApplicationSettingsRequest & AddCredentialsToAddOrUpdate(ApplicationCredential &&value)
UpdateApplicationSettingsRequest & WithCredentialsToAddOrUpdate(const Aws::Vector< ApplicationCredential > &value)
AWS_SSMSAP_API Aws::String SerializePayload() const override
UpdateApplicationSettingsRequest & WithDatabaseArn(const Aws::String &value)
void SetCredentialsToAddOrUpdate(const Aws::Vector< ApplicationCredential > &value)
UpdateApplicationSettingsRequest & WithApplicationId(const char *value)
UpdateApplicationSettingsRequest & WithCredentialsToRemove(Aws::Vector< ApplicationCredential > &&value)
UpdateApplicationSettingsRequest & WithDatabaseArn(const char *value)
UpdateApplicationSettingsRequest & AddCredentialsToRemove(ApplicationCredential &&value)
UpdateApplicationSettingsRequest & AddCredentialsToRemove(const ApplicationCredential &value)
void SetCredentialsToRemove(Aws::Vector< ApplicationCredential > &&value)
UpdateApplicationSettingsRequest & WithBackint(const BackintConfig &value)
void SetCredentialsToAddOrUpdate(Aws::Vector< ApplicationCredential > &&value)
UpdateApplicationSettingsRequest & WithApplicationId(Aws::String &&value)
const Aws::Vector< ApplicationCredential > & GetCredentialsToRemove() const
UpdateApplicationSettingsRequest & WithCredentialsToRemove(const Aws::Vector< ApplicationCredential > &value)
UpdateApplicationSettingsRequest & WithApplicationId(const Aws::String &value)
UpdateApplicationSettingsRequest & WithBackint(BackintConfig &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector