AWS SDK for C++  1.9.40
AWS SDK for C++
PutAppReplicationConfigurationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sms/SMS_EXPORTS.h>
8 #include <aws/sms/SMSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SMS
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 "PutAppReplicationConfiguration"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetAppId() const{ return m_appId; }
43 
47  inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
48 
52  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
53 
57  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
58 
62  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
63 
67  inline PutAppReplicationConfigurationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
68 
72  inline PutAppReplicationConfigurationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
73 
77  inline PutAppReplicationConfigurationRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
78 
79 
84  inline const Aws::Vector<ServerGroupReplicationConfiguration>& GetServerGroupReplicationConfigurations() const{ return m_serverGroupReplicationConfigurations; }
85 
90  inline bool ServerGroupReplicationConfigurationsHasBeenSet() const { return m_serverGroupReplicationConfigurationsHasBeenSet; }
91 
96  inline void SetServerGroupReplicationConfigurations(const Aws::Vector<ServerGroupReplicationConfiguration>& value) { m_serverGroupReplicationConfigurationsHasBeenSet = true; m_serverGroupReplicationConfigurations = value; }
97 
102  inline void SetServerGroupReplicationConfigurations(Aws::Vector<ServerGroupReplicationConfiguration>&& value) { m_serverGroupReplicationConfigurationsHasBeenSet = true; m_serverGroupReplicationConfigurations = std::move(value); }
103 
108  inline PutAppReplicationConfigurationRequest& WithServerGroupReplicationConfigurations(const Aws::Vector<ServerGroupReplicationConfiguration>& value) { SetServerGroupReplicationConfigurations(value); return *this;}
109 
114  inline PutAppReplicationConfigurationRequest& WithServerGroupReplicationConfigurations(Aws::Vector<ServerGroupReplicationConfiguration>&& value) { SetServerGroupReplicationConfigurations(std::move(value)); return *this;}
115 
120  inline PutAppReplicationConfigurationRequest& AddServerGroupReplicationConfigurations(const ServerGroupReplicationConfiguration& value) { m_serverGroupReplicationConfigurationsHasBeenSet = true; m_serverGroupReplicationConfigurations.push_back(value); return *this; }
121 
126  inline PutAppReplicationConfigurationRequest& AddServerGroupReplicationConfigurations(ServerGroupReplicationConfiguration&& value) { m_serverGroupReplicationConfigurationsHasBeenSet = true; m_serverGroupReplicationConfigurations.push_back(std::move(value)); return *this; }
127 
128  private:
129 
130  Aws::String m_appId;
131  bool m_appIdHasBeenSet;
132 
133  Aws::Vector<ServerGroupReplicationConfiguration> m_serverGroupReplicationConfigurations;
134  bool m_serverGroupReplicationConfigurationsHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace SMS
139 } // namespace Aws
Aws::SMS::Model::PutAppReplicationConfigurationRequest::SetAppId
void SetAppId(Aws::String &&value)
Definition: PutAppReplicationConfigurationRequest.h:57
Aws::SMS::Model::PutAppReplicationConfigurationRequest::SetServerGroupReplicationConfigurations
void SetServerGroupReplicationConfigurations(Aws::Vector< ServerGroupReplicationConfiguration > &&value)
Definition: PutAppReplicationConfigurationRequest.h:102
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
SMSRequest.h
Aws::SMS::Model::PutAppReplicationConfigurationRequest
Definition: PutAppReplicationConfigurationRequest.h:24
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SMS::Model::PutAppReplicationConfigurationRequest::WithServerGroupReplicationConfigurations
PutAppReplicationConfigurationRequest & WithServerGroupReplicationConfigurations(Aws::Vector< ServerGroupReplicationConfiguration > &&value)
Definition: PutAppReplicationConfigurationRequest.h:114
Aws::SMS::Model::PutAppReplicationConfigurationRequest::WithAppId
PutAppReplicationConfigurationRequest & WithAppId(const Aws::String &value)
Definition: PutAppReplicationConfigurationRequest.h:67
Aws::SMS::Model::ServerGroupReplicationConfiguration
Definition: ServerGroupReplicationConfiguration.h:34
AWSVector.h
SMS_EXPORTS.h
Aws::SMS::Model::PutAppReplicationConfigurationRequest::ServerGroupReplicationConfigurationsHasBeenSet
bool ServerGroupReplicationConfigurationsHasBeenSet() const
Definition: PutAppReplicationConfigurationRequest.h:90
Aws::SMS::SMSRequest
Definition: SMSRequest.h:17
Aws::SMS::Model::PutAppReplicationConfigurationRequest::PutAppReplicationConfigurationRequest
PutAppReplicationConfigurationRequest()
Aws::AmplifyBackend::Model::DeliveryMethod::NOT_SET
@ NOT_SET
AWSString.h
Aws::SMS::Model::PutAppReplicationConfigurationRequest::AddServerGroupReplicationConfigurations
PutAppReplicationConfigurationRequest & AddServerGroupReplicationConfigurations(const ServerGroupReplicationConfiguration &value)
Definition: PutAppReplicationConfigurationRequest.h:120
Aws::SMS::Model::PutAppReplicationConfigurationRequest::WithServerGroupReplicationConfigurations
PutAppReplicationConfigurationRequest & WithServerGroupReplicationConfigurations(const Aws::Vector< ServerGroupReplicationConfiguration > &value)
Definition: PutAppReplicationConfigurationRequest.h:108
Aws::SMS::Model::PutAppReplicationConfigurationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SMS::Model::PutAppReplicationConfigurationRequest::WithAppId
PutAppReplicationConfigurationRequest & WithAppId(const char *value)
Definition: PutAppReplicationConfigurationRequest.h:77
Aws::SMS::Model::PutAppReplicationConfigurationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutAppReplicationConfigurationRequest.h:32
Aws::SMS::Model::PutAppReplicationConfigurationRequest::AddServerGroupReplicationConfigurations
PutAppReplicationConfigurationRequest & AddServerGroupReplicationConfigurations(ServerGroupReplicationConfiguration &&value)
Definition: PutAppReplicationConfigurationRequest.h:126
Aws::SMS::Model::PutAppReplicationConfigurationRequest::SetAppId
void SetAppId(const Aws::String &value)
Definition: PutAppReplicationConfigurationRequest.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::SMS::Model::PutAppReplicationConfigurationRequest::SetAppId
void SetAppId(const char *value)
Definition: PutAppReplicationConfigurationRequest.h:62
Aws::SMS::Model::PutAppReplicationConfigurationRequest::SetServerGroupReplicationConfigurations
void SetServerGroupReplicationConfigurations(const Aws::Vector< ServerGroupReplicationConfiguration > &value)
Definition: PutAppReplicationConfigurationRequest.h:96
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ServerGroupReplicationConfiguration.h
Aws::SMS::Model::PutAppReplicationConfigurationRequest::AppIdHasBeenSet
bool AppIdHasBeenSet() const
Definition: PutAppReplicationConfigurationRequest.h:47
AWS_SMS_API
#define AWS_SMS_API
Definition: SMS_EXPORTS.h:28
Aws::SMS::Model::PutAppReplicationConfigurationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SMS::Model::PutAppReplicationConfigurationRequest::GetServerGroupReplicationConfigurations
const Aws::Vector< ServerGroupReplicationConfiguration > & GetServerGroupReplicationConfigurations() const
Definition: PutAppReplicationConfigurationRequest.h:84
Aws::SMS::Model::PutAppReplicationConfigurationRequest::WithAppId
PutAppReplicationConfigurationRequest & WithAppId(Aws::String &&value)
Definition: PutAppReplicationConfigurationRequest.h:72
Aws::SMS::Model::PutAppReplicationConfigurationRequest::GetAppId
const Aws::String & GetAppId() const
Definition: PutAppReplicationConfigurationRequest.h:42