AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
UpdateCommandRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace IoT {
15namespace Model {
16
20 public:
21 AWS_IOT_API UpdateCommandRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateCommand"; }
28
29 AWS_IOT_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetCommandId() const { return m_commandId; }
36 inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
37 template <typename CommandIdT = Aws::String>
38 void SetCommandId(CommandIdT&& value) {
39 m_commandIdHasBeenSet = true;
40 m_commandId = std::forward<CommandIdT>(value);
41 }
42 template <typename CommandIdT = Aws::String>
43 UpdateCommandRequest& WithCommandId(CommandIdT&& value) {
44 SetCommandId(std::forward<CommandIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetDisplayName() const { return m_displayName; }
54 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
55 template <typename DisplayNameT = Aws::String>
56 void SetDisplayName(DisplayNameT&& value) {
57 m_displayNameHasBeenSet = true;
58 m_displayName = std::forward<DisplayNameT>(value);
59 }
60 template <typename DisplayNameT = Aws::String>
61 UpdateCommandRequest& WithDisplayName(DisplayNameT&& value) {
62 SetDisplayName(std::forward<DisplayNameT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template <typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) {
75 m_descriptionHasBeenSet = true;
76 m_description = std::forward<DescriptionT>(value);
77 }
78 template <typename DescriptionT = Aws::String>
79 UpdateCommandRequest& WithDescription(DescriptionT&& value) {
80 SetDescription(std::forward<DescriptionT>(value));
81 return *this;
82 }
84
86
89 inline bool GetDeprecated() const { return m_deprecated; }
90 inline bool DeprecatedHasBeenSet() const { return m_deprecatedHasBeenSet; }
91 inline void SetDeprecated(bool value) {
92 m_deprecatedHasBeenSet = true;
93 m_deprecated = value;
94 }
96 SetDeprecated(value);
97 return *this;
98 }
100 private:
101 Aws::String m_commandId;
102 bool m_commandIdHasBeenSet = false;
103
104 Aws::String m_displayName;
105 bool m_displayNameHasBeenSet = false;
106
107 Aws::String m_description;
108 bool m_descriptionHasBeenSet = false;
109
110 bool m_deprecated{false};
111 bool m_deprecatedHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace IoT
116} // namespace Aws
AWS_IOT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateCommandRequest & WithDisplayName(DisplayNameT &&value)
UpdateCommandRequest & WithDescription(DescriptionT &&value)
UpdateCommandRequest & WithCommandId(CommandIdT &&value)
const Aws::String & GetDescription() const
AWS_IOT_API UpdateCommandRequest()=default
UpdateCommandRequest & WithDeprecated(bool value)
const Aws::String & GetCommandId() const
void SetDescription(DescriptionT &&value)
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetDisplayName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String