AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddStorageSystemRequest.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/datasync/model/DiscoveryServerConfiguration.h>
10#include <aws/datasync/model/DiscoverySystemType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/datasync/model/Credentials.h>
14#include <aws/datasync/model/TagListEntry.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace DataSync
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_DATASYNC_API AddStorageSystemRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "AddStorageSystem"; }
37
38 AWS_DATASYNC_API Aws::String SerializePayload() const override;
39
41
42
44
48 inline const DiscoveryServerConfiguration& GetServerConfiguration() const{ return m_serverConfiguration; }
49 inline bool ServerConfigurationHasBeenSet() const { return m_serverConfigurationHasBeenSet; }
50 inline void SetServerConfiguration(const DiscoveryServerConfiguration& value) { m_serverConfigurationHasBeenSet = true; m_serverConfiguration = value; }
51 inline void SetServerConfiguration(DiscoveryServerConfiguration&& value) { m_serverConfigurationHasBeenSet = true; m_serverConfiguration = std::move(value); }
55
57
63 inline const DiscoverySystemType& GetSystemType() const{ return m_systemType; }
64 inline bool SystemTypeHasBeenSet() const { return m_systemTypeHasBeenSet; }
65 inline void SetSystemType(const DiscoverySystemType& value) { m_systemTypeHasBeenSet = true; m_systemType = value; }
66 inline void SetSystemType(DiscoverySystemType&& value) { m_systemTypeHasBeenSet = true; m_systemType = std::move(value); }
67 inline AddStorageSystemRequest& WithSystemType(const DiscoverySystemType& value) { SetSystemType(value); return *this;}
68 inline AddStorageSystemRequest& WithSystemType(DiscoverySystemType&& value) { SetSystemType(std::move(value)); return *this;}
70
72
77 inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
78 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
79 inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; }
80 inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); }
81 inline AddStorageSystemRequest& WithAgentArns(const Aws::Vector<Aws::String>& value) { SetAgentArns(value); return *this;}
82 inline AddStorageSystemRequest& WithAgentArns(Aws::Vector<Aws::String>&& value) { SetAgentArns(std::move(value)); return *this;}
83 inline AddStorageSystemRequest& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
84 inline AddStorageSystemRequest& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; }
85 inline AddStorageSystemRequest& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
87
89
93 inline const Aws::String& GetCloudWatchLogGroupArn() const{ return m_cloudWatchLogGroupArn; }
94 inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
95 inline void SetCloudWatchLogGroupArn(const Aws::String& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = value; }
96 inline void SetCloudWatchLogGroupArn(Aws::String&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::move(value); }
97 inline void SetCloudWatchLogGroupArn(const char* value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn.assign(value); }
100 inline AddStorageSystemRequest& WithCloudWatchLogGroupArn(const char* value) { SetCloudWatchLogGroupArn(value); return *this;}
102
104
109 inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
112 inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
113 inline AddStorageSystemRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
114 inline AddStorageSystemRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
115 inline AddStorageSystemRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
116 inline AddStorageSystemRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
118
120
123 inline const Aws::String& GetName() const{ return m_name; }
124 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
125 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
126 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
127 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
128 inline AddStorageSystemRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
129 inline AddStorageSystemRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
130 inline AddStorageSystemRequest& WithName(const char* value) { SetName(value); return *this;}
132
134
139 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
140 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
141 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
142 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
143 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
144 inline AddStorageSystemRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
145 inline AddStorageSystemRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
146 inline AddStorageSystemRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
148
150
154 inline const Credentials& GetCredentials() const{ return m_credentials; }
155 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
156 inline void SetCredentials(const Credentials& value) { m_credentialsHasBeenSet = true; m_credentials = value; }
157 inline void SetCredentials(Credentials&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); }
158 inline AddStorageSystemRequest& WithCredentials(const Credentials& value) { SetCredentials(value); return *this;}
159 inline AddStorageSystemRequest& WithCredentials(Credentials&& value) { SetCredentials(std::move(value)); return *this;}
161 private:
162
163 DiscoveryServerConfiguration m_serverConfiguration;
164 bool m_serverConfigurationHasBeenSet = false;
165
166 DiscoverySystemType m_systemType;
167 bool m_systemTypeHasBeenSet = false;
168
169 Aws::Vector<Aws::String> m_agentArns;
170 bool m_agentArnsHasBeenSet = false;
171
172 Aws::String m_cloudWatchLogGroupArn;
173 bool m_cloudWatchLogGroupArnHasBeenSet = false;
174
176 bool m_tagsHasBeenSet = false;
177
178 Aws::String m_name;
179 bool m_nameHasBeenSet = false;
180
181 Aws::String m_clientToken;
182 bool m_clientTokenHasBeenSet = false;
183
184 Credentials m_credentials;
185 bool m_credentialsHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace DataSync
190} // namespace Aws
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetAgentArns() const
AddStorageSystemRequest & WithCredentials(Credentials &&value)
AddStorageSystemRequest & AddAgentArns(Aws::String &&value)
const Aws::Vector< TagListEntry > & GetTags() const
AddStorageSystemRequest & WithName(Aws::String &&value)
void SetAgentArns(const Aws::Vector< Aws::String > &value)
const DiscoverySystemType & GetSystemType() const
AddStorageSystemRequest & WithClientToken(Aws::String &&value)
AddStorageSystemRequest & AddAgentArns(const char *value)
AddStorageSystemRequest & AddTags(const TagListEntry &value)
void SetSystemType(const DiscoverySystemType &value)
AddStorageSystemRequest & WithAgentArns(const Aws::Vector< Aws::String > &value)
void SetServerConfiguration(const DiscoveryServerConfiguration &value)
void SetAgentArns(Aws::Vector< Aws::String > &&value)
AddStorageSystemRequest & AddAgentArns(const Aws::String &value)
void SetTags(Aws::Vector< TagListEntry > &&value)
AddStorageSystemRequest & WithName(const Aws::String &value)
AddStorageSystemRequest & WithSystemType(DiscoverySystemType &&value)
AddStorageSystemRequest & WithServerConfiguration(const DiscoveryServerConfiguration &value)
AddStorageSystemRequest & WithCloudWatchLogGroupArn(const Aws::String &value)
void SetServerConfiguration(DiscoveryServerConfiguration &&value)
AddStorageSystemRequest & WithCredentials(const Credentials &value)
void SetTags(const Aws::Vector< TagListEntry > &value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
AddStorageSystemRequest & AddTags(TagListEntry &&value)
AddStorageSystemRequest & WithName(const char *value)
AddStorageSystemRequest & WithCloudWatchLogGroupArn(const char *value)
AddStorageSystemRequest & WithCloudWatchLogGroupArn(Aws::String &&value)
void SetCloudWatchLogGroupArn(const Aws::String &value)
AddStorageSystemRequest & WithServerConfiguration(DiscoveryServerConfiguration &&value)
AddStorageSystemRequest & WithAgentArns(Aws::Vector< Aws::String > &&value)
AddStorageSystemRequest & WithTags(Aws::Vector< TagListEntry > &&value)
AddStorageSystemRequest & WithSystemType(const DiscoverySystemType &value)
AddStorageSystemRequest & WithTags(const Aws::Vector< TagListEntry > &value)
AddStorageSystemRequest & WithClientToken(const char *value)
AddStorageSystemRequest & WithClientToken(const Aws::String &value)
const DiscoveryServerConfiguration & GetServerConfiguration() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector