AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
UpdateCampaignRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotfleetwise/IoTFleetWiseRequest.h>
10#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
11#include <aws/iotfleetwise/model/UpdateCampaignAction.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IoTFleetWise {
17namespace Model {
18
22 public:
23 AWS_IOTFLEETWISE_API UpdateCampaignRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateCampaign"; }
30
31 AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override;
32
33 AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 UpdateCampaignRequest& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::Vector<Aws::String>& GetDataExtraDimensions() const { return m_dataExtraDimensions; }
77 inline bool DataExtraDimensionsHasBeenSet() const { return m_dataExtraDimensionsHasBeenSet; }
78 template <typename DataExtraDimensionsT = Aws::Vector<Aws::String>>
79 void SetDataExtraDimensions(DataExtraDimensionsT&& value) {
80 m_dataExtraDimensionsHasBeenSet = true;
81 m_dataExtraDimensions = std::forward<DataExtraDimensionsT>(value);
82 }
83 template <typename DataExtraDimensionsT = Aws::Vector<Aws::String>>
84 UpdateCampaignRequest& WithDataExtraDimensions(DataExtraDimensionsT&& value) {
85 SetDataExtraDimensions(std::forward<DataExtraDimensionsT>(value));
86 return *this;
87 }
88 template <typename DataExtraDimensionsT = Aws::String>
89 UpdateCampaignRequest& AddDataExtraDimensions(DataExtraDimensionsT&& value) {
90 m_dataExtraDimensionsHasBeenSet = true;
91 m_dataExtraDimensions.emplace_back(std::forward<DataExtraDimensionsT>(value));
92 return *this;
93 }
95
97
108 inline UpdateCampaignAction GetAction() const { return m_action; }
109 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
110 inline void SetAction(UpdateCampaignAction value) {
111 m_actionHasBeenSet = true;
112 m_action = value;
113 }
115 SetAction(value);
116 return *this;
117 }
119 private:
120 Aws::String m_name;
121
122 Aws::String m_description;
123
124 Aws::Vector<Aws::String> m_dataExtraDimensions;
125
127 bool m_nameHasBeenSet = false;
128 bool m_descriptionHasBeenSet = false;
129 bool m_dataExtraDimensionsHasBeenSet = false;
130 bool m_actionHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace IoTFleetWise
135} // namespace Aws
AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override
UpdateCampaignRequest & WithAction(UpdateCampaignAction value)
void SetDataExtraDimensions(DataExtraDimensionsT &&value)
UpdateCampaignRequest & WithDataExtraDimensions(DataExtraDimensionsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IOTFLEETWISE_API UpdateCampaignRequest()=default
const Aws::Vector< Aws::String > & GetDataExtraDimensions() const
UpdateCampaignRequest & AddDataExtraDimensions(DataExtraDimensionsT &&value)
UpdateCampaignRequest & WithDescription(DescriptionT &&value)
AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateCampaignRequest & WithName(NameT &&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