AWS SDK for C++

AWS SDK for C++ Version 1.11.554

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
CreateResourceDataSyncRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm/model/ResourceDataSyncS3Destination.h>
11#include <aws/ssm/model/ResourceDataSyncSource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSM
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SSM_API CreateResourceDataSyncRequest() = default;
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 "CreateResourceDataSync"; }
33
34 AWS_SSM_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetSyncName() const { return m_syncName; }
44 inline bool SyncNameHasBeenSet() const { return m_syncNameHasBeenSet; }
45 template<typename SyncNameT = Aws::String>
46 void SetSyncName(SyncNameT&& value) { m_syncNameHasBeenSet = true; m_syncName = std::forward<SyncNameT>(value); }
47 template<typename SyncNameT = Aws::String>
48 CreateResourceDataSyncRequest& WithSyncName(SyncNameT&& value) { SetSyncName(std::forward<SyncNameT>(value)); return *this;}
50
52
56 inline const ResourceDataSyncS3Destination& GetS3Destination() const { return m_s3Destination; }
57 inline bool S3DestinationHasBeenSet() const { return m_s3DestinationHasBeenSet; }
58 template<typename S3DestinationT = ResourceDataSyncS3Destination>
59 void SetS3Destination(S3DestinationT&& value) { m_s3DestinationHasBeenSet = true; m_s3Destination = std::forward<S3DestinationT>(value); }
60 template<typename S3DestinationT = ResourceDataSyncS3Destination>
61 CreateResourceDataSyncRequest& WithS3Destination(S3DestinationT&& value) { SetS3Destination(std::forward<S3DestinationT>(value)); return *this;}
63
65
76 inline const Aws::String& GetSyncType() const { return m_syncType; }
77 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
78 template<typename SyncTypeT = Aws::String>
79 void SetSyncType(SyncTypeT&& value) { m_syncTypeHasBeenSet = true; m_syncType = std::forward<SyncTypeT>(value); }
80 template<typename SyncTypeT = Aws::String>
81 CreateResourceDataSyncRequest& WithSyncType(SyncTypeT&& value) { SetSyncType(std::forward<SyncTypeT>(value)); return *this;}
83
85
89 inline const ResourceDataSyncSource& GetSyncSource() const { return m_syncSource; }
90 inline bool SyncSourceHasBeenSet() const { return m_syncSourceHasBeenSet; }
91 template<typename SyncSourceT = ResourceDataSyncSource>
92 void SetSyncSource(SyncSourceT&& value) { m_syncSourceHasBeenSet = true; m_syncSource = std::forward<SyncSourceT>(value); }
93 template<typename SyncSourceT = ResourceDataSyncSource>
94 CreateResourceDataSyncRequest& WithSyncSource(SyncSourceT&& value) { SetSyncSource(std::forward<SyncSourceT>(value)); return *this;}
96 private:
97
98 Aws::String m_syncName;
99 bool m_syncNameHasBeenSet = false;
100
101 ResourceDataSyncS3Destination m_s3Destination;
102 bool m_s3DestinationHasBeenSet = false;
103
104 Aws::String m_syncType;
105 bool m_syncTypeHasBeenSet = false;
106
107 ResourceDataSyncSource m_syncSource;
108 bool m_syncSourceHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace SSM
113} // 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