AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateStorageSystemRequest.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datasync/model/DiscoveryServerConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/datasync/model/Credentials.h>
13#include <utility>
14
15namespace Aws
16{
17namespace DataSync
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DATASYNC_API UpdateStorageSystemRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateStorageSystem"; }
34
35 AWS_DATASYNC_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetStorageSystemArn() const{ return m_storageSystemArn; }
46 inline bool StorageSystemArnHasBeenSet() const { return m_storageSystemArnHasBeenSet; }
47 inline void SetStorageSystemArn(const Aws::String& value) { m_storageSystemArnHasBeenSet = true; m_storageSystemArn = value; }
48 inline void SetStorageSystemArn(Aws::String&& value) { m_storageSystemArnHasBeenSet = true; m_storageSystemArn = std::move(value); }
49 inline void SetStorageSystemArn(const char* value) { m_storageSystemArnHasBeenSet = true; m_storageSystemArn.assign(value); }
51 inline UpdateStorageSystemRequest& WithStorageSystemArn(Aws::String&& value) { SetStorageSystemArn(std::move(value)); return *this;}
52 inline UpdateStorageSystemRequest& WithStorageSystemArn(const char* value) { SetStorageSystemArn(value); return *this;}
54
56
60 inline const DiscoveryServerConfiguration& GetServerConfiguration() const{ return m_serverConfiguration; }
61 inline bool ServerConfigurationHasBeenSet() const { return m_serverConfigurationHasBeenSet; }
62 inline void SetServerConfiguration(const DiscoveryServerConfiguration& value) { m_serverConfigurationHasBeenSet = true; m_serverConfiguration = value; }
63 inline void SetServerConfiguration(DiscoveryServerConfiguration&& value) { m_serverConfigurationHasBeenSet = true; m_serverConfiguration = std::move(value); }
67
69
73 inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
74 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
75 inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; }
76 inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); }
78 inline UpdateStorageSystemRequest& WithAgentArns(Aws::Vector<Aws::String>&& value) { SetAgentArns(std::move(value)); return *this;}
79 inline UpdateStorageSystemRequest& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
80 inline UpdateStorageSystemRequest& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; }
81 inline UpdateStorageSystemRequest& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
83
85
88 inline const Aws::String& GetName() const{ return m_name; }
89 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
91 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
92 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
93 inline UpdateStorageSystemRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
94 inline UpdateStorageSystemRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
95 inline UpdateStorageSystemRequest& WithName(const char* value) { SetName(value); return *this;}
97
99
103 inline const Aws::String& GetCloudWatchLogGroupArn() const{ return m_cloudWatchLogGroupArn; }
104 inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
105 inline void SetCloudWatchLogGroupArn(const Aws::String& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = value; }
106 inline void SetCloudWatchLogGroupArn(Aws::String&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::move(value); }
107 inline void SetCloudWatchLogGroupArn(const char* value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn.assign(value); }
110 inline UpdateStorageSystemRequest& WithCloudWatchLogGroupArn(const char* value) { SetCloudWatchLogGroupArn(value); return *this;}
112
114
118 inline const Credentials& GetCredentials() const{ return m_credentials; }
119 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
120 inline void SetCredentials(const Credentials& value) { m_credentialsHasBeenSet = true; m_credentials = value; }
121 inline void SetCredentials(Credentials&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); }
122 inline UpdateStorageSystemRequest& WithCredentials(const Credentials& value) { SetCredentials(value); return *this;}
123 inline UpdateStorageSystemRequest& WithCredentials(Credentials&& value) { SetCredentials(std::move(value)); return *this;}
125 private:
126
127 Aws::String m_storageSystemArn;
128 bool m_storageSystemArnHasBeenSet = false;
129
130 DiscoveryServerConfiguration m_serverConfiguration;
131 bool m_serverConfigurationHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_agentArns;
134 bool m_agentArnsHasBeenSet = false;
135
136 Aws::String m_name;
137 bool m_nameHasBeenSet = false;
138
139 Aws::String m_cloudWatchLogGroupArn;
140 bool m_cloudWatchLogGroupArnHasBeenSet = false;
141
142 Credentials m_credentials;
143 bool m_credentialsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace DataSync
148} // namespace Aws
UpdateStorageSystemRequest & WithServerConfiguration(const DiscoveryServerConfiguration &value)
UpdateStorageSystemRequest & WithName(Aws::String &&value)
UpdateStorageSystemRequest & WithServerConfiguration(DiscoveryServerConfiguration &&value)
const DiscoveryServerConfiguration & GetServerConfiguration() const
void SetServerConfiguration(const DiscoveryServerConfiguration &value)
UpdateStorageSystemRequest & WithStorageSystemArn(const char *value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
UpdateStorageSystemRequest & WithStorageSystemArn(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAgentArns() const
UpdateStorageSystemRequest & AddAgentArns(const char *value)
UpdateStorageSystemRequest & WithCloudWatchLogGroupArn(const Aws::String &value)
UpdateStorageSystemRequest & AddAgentArns(const Aws::String &value)
void SetAgentArns(Aws::Vector< Aws::String > &&value)
UpdateStorageSystemRequest & WithName(const char *value)
UpdateStorageSystemRequest & WithAgentArns(Aws::Vector< Aws::String > &&value)
UpdateStorageSystemRequest & WithCredentials(Credentials &&value)
virtual const char * GetServiceRequestName() const override
UpdateStorageSystemRequest & WithAgentArns(const Aws::Vector< Aws::String > &value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateStorageSystemRequest & AddAgentArns(Aws::String &&value)
void SetServerConfiguration(DiscoveryServerConfiguration &&value)
UpdateStorageSystemRequest & WithName(const Aws::String &value)
void SetAgentArns(const Aws::Vector< Aws::String > &value)
UpdateStorageSystemRequest & WithCredentials(const Credentials &value)
UpdateStorageSystemRequest & WithCloudWatchLogGroupArn(const char *value)
UpdateStorageSystemRequest & WithStorageSystemArn(Aws::String &&value)
UpdateStorageSystemRequest & WithCloudWatchLogGroupArn(Aws::String &&value)
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