AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 template<typename SourceFileSystemIdT = Aws::String>
46 void SetSourceFileSystemId(SourceFileSystemIdT&& value) { m_sourceFileSystemIdHasBeenSet = true; m_sourceFileSystemId = std::forward<SourceFileSystemIdT>(value); }
47 template<typename SourceFileSystemIdT = Aws::String>
48 CreateReplicationConfigurationRequest& WithSourceFileSystemId(SourceFileSystemIdT&& value) { SetSourceFileSystemId(std::forward<SourceFileSystemIdT>(value)); return *this;}
50
52
56 inline const Aws::Vector<DestinationToCreate>& GetDestinations() const { return m_destinations; }
57 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
58 template<typename DestinationsT = Aws::Vector<DestinationToCreate>>
59 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
60 template<typename DestinationsT = Aws::Vector<DestinationToCreate>>
61 CreateReplicationConfigurationRequest& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
62 template<typename DestinationsT = DestinationToCreate>
63 CreateReplicationConfigurationRequest& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
65 private:
66
67 Aws::String m_sourceFileSystemId;
68 bool m_sourceFileSystemIdHasBeenSet = false;
69
71 bool m_destinationsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace EFS
76} // namespace Aws
const Aws::Vector< DestinationToCreate > & GetDestinations() const
CreateReplicationConfigurationRequest & WithDestinations(DestinationsT &&value)
AWS_EFS_API Aws::String SerializePayload() const override
CreateReplicationConfigurationRequest & WithSourceFileSystemId(SourceFileSystemIdT &&value)
CreateReplicationConfigurationRequest & AddDestinations(DestinationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector