AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateReplicationConfigurationRequest.h
1
6#pragma once
7#include <aws/elasticfilesystem/EFS_EXPORTS.h>
8#include <aws/elasticfilesystem/EFSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticfilesystem/model/DestinationToCreate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EFS
17{
18namespace 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 "CreateReplicationConfiguration"; }
33
34 AWS_EFS_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetSourceFileSystemId() const{ return m_sourceFileSystemId; }
44 inline bool SourceFileSystemIdHasBeenSet() const { return m_sourceFileSystemIdHasBeenSet; }
45 inline void SetSourceFileSystemId(const Aws::String& value) { m_sourceFileSystemIdHasBeenSet = true; m_sourceFileSystemId = value; }
46 inline void SetSourceFileSystemId(Aws::String&& value) { m_sourceFileSystemIdHasBeenSet = true; m_sourceFileSystemId = std::move(value); }
47 inline void SetSourceFileSystemId(const char* value) { m_sourceFileSystemIdHasBeenSet = true; m_sourceFileSystemId.assign(value); }
52
54
58 inline const Aws::Vector<DestinationToCreate>& GetDestinations() const{ return m_destinations; }
59 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
60 inline void SetDestinations(const Aws::Vector<DestinationToCreate>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
61 inline void SetDestinations(Aws::Vector<DestinationToCreate>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
64 inline CreateReplicationConfigurationRequest& AddDestinations(const DestinationToCreate& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
65 inline CreateReplicationConfigurationRequest& AddDestinations(DestinationToCreate&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
67 private:
68
69 Aws::String m_sourceFileSystemId;
70 bool m_sourceFileSystemIdHasBeenSet = false;
71
73 bool m_destinationsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace EFS
78} // namespace Aws
const Aws::Vector< DestinationToCreate > & GetDestinations() const
void SetDestinations(const Aws::Vector< DestinationToCreate > &value)
CreateReplicationConfigurationRequest & AddDestinations(DestinationToCreate &&value)
CreateReplicationConfigurationRequest & WithDestinations(Aws::Vector< DestinationToCreate > &&value)
CreateReplicationConfigurationRequest & AddDestinations(const DestinationToCreate &value)
AWS_EFS_API Aws::String SerializePayload() const override
CreateReplicationConfigurationRequest & WithSourceFileSystemId(const char *value)
CreateReplicationConfigurationRequest & WithSourceFileSystemId(const Aws::String &value)
CreateReplicationConfigurationRequest & WithDestinations(const Aws::Vector< DestinationToCreate > &value)
CreateReplicationConfigurationRequest & WithSourceFileSystemId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector