AWS SDK for C++  1.9.71
AWS SDK for C++
PutReplicationConfigurationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
8 #include <aws/ecr/ECRRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ECR
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "PutReplicationConfiguration"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const ReplicationConfiguration& GetReplicationConfiguration() const{ return m_replicationConfiguration; }
41 
45  inline bool ReplicationConfigurationHasBeenSet() const { return m_replicationConfigurationHasBeenSet; }
46 
50  inline void SetReplicationConfiguration(const ReplicationConfiguration& value) { m_replicationConfigurationHasBeenSet = true; m_replicationConfiguration = value; }
51 
55  inline void SetReplicationConfiguration(ReplicationConfiguration&& value) { m_replicationConfigurationHasBeenSet = true; m_replicationConfiguration = std::move(value); }
56 
60  inline PutReplicationConfigurationRequest& WithReplicationConfiguration(const ReplicationConfiguration& value) { SetReplicationConfiguration(value); return *this;}
61 
65  inline PutReplicationConfigurationRequest& WithReplicationConfiguration(ReplicationConfiguration&& value) { SetReplicationConfiguration(std::move(value)); return *this;}
66 
67  private:
68 
69  ReplicationConfiguration m_replicationConfiguration;
70  bool m_replicationConfigurationHasBeenSet;
71  };
72 
73 } // namespace Model
74 } // namespace ECR
75 } // namespace Aws
Aws::ECR::Model::PutReplicationConfigurationRequest::GetReplicationConfiguration
const ReplicationConfiguration & GetReplicationConfiguration() const
Definition: PutReplicationConfigurationRequest.h:40
Aws::ECR::Model::PutReplicationConfigurationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutReplicationConfigurationRequest.h:30
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::PutReplicationConfigurationRequest::PutReplicationConfigurationRequest
PutReplicationConfigurationRequest()
ReplicationConfiguration.h
Aws::ECR::Model::PutReplicationConfigurationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::PutReplicationConfigurationRequest::WithReplicationConfiguration
PutReplicationConfigurationRequest & WithReplicationConfiguration(const ReplicationConfiguration &value)
Definition: PutReplicationConfigurationRequest.h:60
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::PutReplicationConfigurationRequest::SetReplicationConfiguration
void SetReplicationConfiguration(const ReplicationConfiguration &value)
Definition: PutReplicationConfigurationRequest.h:50
Aws::ECR::Model::PutReplicationConfigurationRequest
Definition: PutReplicationConfigurationRequest.h:22
ECR_EXPORTS.h
Aws::ECR::Model::PutReplicationConfigurationRequest::WithReplicationConfiguration
PutReplicationConfigurationRequest & WithReplicationConfiguration(ReplicationConfiguration &&value)
Definition: PutReplicationConfigurationRequest.h:65
Aws::ECR::Model::PutReplicationConfigurationRequest::SetReplicationConfiguration
void SetReplicationConfiguration(ReplicationConfiguration &&value)
Definition: PutReplicationConfigurationRequest.h:55
Aws::ECR::Model::PutReplicationConfigurationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECR::Model::ReplicationConfiguration
Definition: ReplicationConfiguration.h:33
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::PutReplicationConfigurationRequest::ReplicationConfigurationHasBeenSet
bool ReplicationConfigurationHasBeenSet() const
Definition: PutReplicationConfigurationRequest.h:45
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17