AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateResourceDataSyncRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/ResourceDataSyncS3Destination.h>
11#include <aws/ssm/model/ResourceDataSyncSource.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SSM {
17namespace Model {
18
22 public:
23 AWS_SSM_API CreateResourceDataSyncRequest() = default;
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 "CreateResourceDataSync"; }
30
31 AWS_SSM_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetSyncName() const { return m_syncName; }
40 inline bool SyncNameHasBeenSet() const { return m_syncNameHasBeenSet; }
41 template <typename SyncNameT = Aws::String>
42 void SetSyncName(SyncNameT&& value) {
43 m_syncNameHasBeenSet = true;
44 m_syncName = std::forward<SyncNameT>(value);
45 }
46 template <typename SyncNameT = Aws::String>
48 SetSyncName(std::forward<SyncNameT>(value));
49 return *this;
50 }
52
54
58 inline const ResourceDataSyncS3Destination& GetS3Destination() const { return m_s3Destination; }
59 inline bool S3DestinationHasBeenSet() const { return m_s3DestinationHasBeenSet; }
60 template <typename S3DestinationT = ResourceDataSyncS3Destination>
61 void SetS3Destination(S3DestinationT&& value) {
62 m_s3DestinationHasBeenSet = true;
63 m_s3Destination = std::forward<S3DestinationT>(value);
64 }
65 template <typename S3DestinationT = ResourceDataSyncS3Destination>
67 SetS3Destination(std::forward<S3DestinationT>(value));
68 return *this;
69 }
71
73
84 inline const Aws::String& GetSyncType() const { return m_syncType; }
85 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
86 template <typename SyncTypeT = Aws::String>
87 void SetSyncType(SyncTypeT&& value) {
88 m_syncTypeHasBeenSet = true;
89 m_syncType = std::forward<SyncTypeT>(value);
90 }
91 template <typename SyncTypeT = Aws::String>
93 SetSyncType(std::forward<SyncTypeT>(value));
94 return *this;
95 }
97
99
103 inline const ResourceDataSyncSource& GetSyncSource() const { return m_syncSource; }
104 inline bool SyncSourceHasBeenSet() const { return m_syncSourceHasBeenSet; }
105 template <typename SyncSourceT = ResourceDataSyncSource>
106 void SetSyncSource(SyncSourceT&& value) {
107 m_syncSourceHasBeenSet = true;
108 m_syncSource = std::forward<SyncSourceT>(value);
109 }
110 template <typename SyncSourceT = ResourceDataSyncSource>
112 SetSyncSource(std::forward<SyncSourceT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_syncName;
118
119 ResourceDataSyncS3Destination m_s3Destination;
120
121 Aws::String m_syncType;
122
123 ResourceDataSyncSource m_syncSource;
124 bool m_syncNameHasBeenSet = false;
125 bool m_s3DestinationHasBeenSet = false;
126 bool m_syncTypeHasBeenSet = false;
127 bool m_syncSourceHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace SSM
132} // namespace Aws
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateResourceDataSyncRequest & WithS3Destination(S3DestinationT &&value)
const ResourceDataSyncS3Destination & GetS3Destination() const
CreateResourceDataSyncRequest & WithSyncType(SyncTypeT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
CreateResourceDataSyncRequest & WithSyncName(SyncNameT &&value)
CreateResourceDataSyncRequest & WithSyncSource(SyncSourceT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String