AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
UpdateInstanceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/supplychain/SupplyChainRequest.h>
9#include <aws/supplychain/SupplyChain_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SupplyChain {
15namespace Model {
16
23 public:
24 AWS_SUPPLYCHAIN_API UpdateInstanceRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateInstance"; }
31
32 AWS_SUPPLYCHAIN_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
39 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
40 template <typename InstanceIdT = Aws::String>
41 void SetInstanceId(InstanceIdT&& value) {
42 m_instanceIdHasBeenSet = true;
43 m_instanceId = std::forward<InstanceIdT>(value);
44 }
45 template <typename InstanceIdT = Aws::String>
46 UpdateInstanceRequest& WithInstanceId(InstanceIdT&& value) {
47 SetInstanceId(std::forward<InstanceIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetInstanceName() const { return m_instanceName; }
57 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
58 template <typename InstanceNameT = Aws::String>
59 void SetInstanceName(InstanceNameT&& value) {
60 m_instanceNameHasBeenSet = true;
61 m_instanceName = std::forward<InstanceNameT>(value);
62 }
63 template <typename InstanceNameT = Aws::String>
64 UpdateInstanceRequest& WithInstanceName(InstanceNameT&& value) {
65 SetInstanceName(std::forward<InstanceNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetInstanceDescription() const { return m_instanceDescription; }
75 inline bool InstanceDescriptionHasBeenSet() const { return m_instanceDescriptionHasBeenSet; }
76 template <typename InstanceDescriptionT = Aws::String>
77 void SetInstanceDescription(InstanceDescriptionT&& value) {
78 m_instanceDescriptionHasBeenSet = true;
79 m_instanceDescription = std::forward<InstanceDescriptionT>(value);
80 }
81 template <typename InstanceDescriptionT = Aws::String>
82 UpdateInstanceRequest& WithInstanceDescription(InstanceDescriptionT&& value) {
83 SetInstanceDescription(std::forward<InstanceDescriptionT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_instanceId;
89
90 Aws::String m_instanceName;
91
92 Aws::String m_instanceDescription;
93 bool m_instanceIdHasBeenSet = false;
94 bool m_instanceNameHasBeenSet = false;
95 bool m_instanceDescriptionHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace SupplyChain
100} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_SUPPLYCHAIN_API UpdateInstanceRequest()=default
UpdateInstanceRequest & WithInstanceDescription(InstanceDescriptionT &&value)
AWS_SUPPLYCHAIN_API Aws::String SerializePayload() const override
UpdateInstanceRequest & WithInstanceId(InstanceIdT &&value)
UpdateInstanceRequest & WithInstanceName(InstanceNameT &&value)
void SetInstanceDescription(InstanceDescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String