AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateServerConfigRequest.h
1
6#pragma once
7#include <aws/migrationhubstrategy/MigrationHubStrategyRecommendations_EXPORTS.h>
8#include <aws/migrationhubstrategy/MigrationHubStrategyRecommendationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/migrationhubstrategy/model/StrategyOption.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MigrationHubStrategyRecommendations
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API UpdateServerConfigRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateServerConfig"; }
32
33 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetServerId() const{ return m_serverId; }
41 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
42 inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
43 inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
44 inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
45 inline UpdateServerConfigRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
46 inline UpdateServerConfigRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
47 inline UpdateServerConfigRequest& WithServerId(const char* value) { SetServerId(value); return *this;}
49
51
55 inline const StrategyOption& GetStrategyOption() const{ return m_strategyOption; }
56 inline bool StrategyOptionHasBeenSet() const { return m_strategyOptionHasBeenSet; }
57 inline void SetStrategyOption(const StrategyOption& value) { m_strategyOptionHasBeenSet = true; m_strategyOption = value; }
58 inline void SetStrategyOption(StrategyOption&& value) { m_strategyOptionHasBeenSet = true; m_strategyOption = std::move(value); }
60 inline UpdateServerConfigRequest& WithStrategyOption(StrategyOption&& value) { SetStrategyOption(std::move(value)); return *this;}
62 private:
63
64 Aws::String m_serverId;
65 bool m_serverIdHasBeenSet = false;
66
67 StrategyOption m_strategyOption;
68 bool m_strategyOptionHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace MigrationHubStrategyRecommendations
73} // namespace Aws
UpdateServerConfigRequest & WithStrategyOption(const StrategyOption &value)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API UpdateServerConfigRequest()
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String