AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateReplicationConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticfilesystem/EFSRequest.h>
10#include <aws/elasticfilesystem/EFS_EXPORTS.h>
11#include <aws/elasticfilesystem/model/DestinationToCreate.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EFS {
17namespace Model {
18
22 public:
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateReplicationConfiguration"; }
30
31 AWS_EFS_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetSourceFileSystemId() const { return m_sourceFileSystemId; }
40 inline bool SourceFileSystemIdHasBeenSet() const { return m_sourceFileSystemIdHasBeenSet; }
41 template <typename SourceFileSystemIdT = Aws::String>
42 void SetSourceFileSystemId(SourceFileSystemIdT&& value) {
43 m_sourceFileSystemIdHasBeenSet = true;
44 m_sourceFileSystemId = std::forward<SourceFileSystemIdT>(value);
45 }
46 template <typename SourceFileSystemIdT = Aws::String>
48 SetSourceFileSystemId(std::forward<SourceFileSystemIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::Vector<DestinationToCreate>& GetDestinations() const { return m_destinations; }
59 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
60 template <typename DestinationsT = Aws::Vector<DestinationToCreate>>
61 void SetDestinations(DestinationsT&& value) {
62 m_destinationsHasBeenSet = true;
63 m_destinations = std::forward<DestinationsT>(value);
64 }
65 template <typename DestinationsT = Aws::Vector<DestinationToCreate>>
67 SetDestinations(std::forward<DestinationsT>(value));
68 return *this;
69 }
70 template <typename DestinationsT = DestinationToCreate>
72 m_destinationsHasBeenSet = true;
73 m_destinations.emplace_back(std::forward<DestinationsT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_sourceFileSystemId;
79
81 bool m_sourceFileSystemIdHasBeenSet = false;
82 bool m_destinationsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace EFS
87} // 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