AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateCampaignRequest.h
1
6#pragma once
7#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
8#include <aws/iotfleetwise/IoTFleetWiseRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotfleetwise/model/UpdateCampaignAction.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoTFleetWise
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTFLEETWISE_API UpdateCampaignRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateCampaign"; }
33
34 AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override;
35
36 AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 UpdateCampaignRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template<typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
59 template<typename DescriptionT = Aws::String>
60 UpdateCampaignRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
62
64
68 inline const Aws::Vector<Aws::String>& GetDataExtraDimensions() const { return m_dataExtraDimensions; }
69 inline bool DataExtraDimensionsHasBeenSet() const { return m_dataExtraDimensionsHasBeenSet; }
70 template<typename DataExtraDimensionsT = Aws::Vector<Aws::String>>
71 void SetDataExtraDimensions(DataExtraDimensionsT&& value) { m_dataExtraDimensionsHasBeenSet = true; m_dataExtraDimensions = std::forward<DataExtraDimensionsT>(value); }
72 template<typename DataExtraDimensionsT = Aws::Vector<Aws::String>>
73 UpdateCampaignRequest& WithDataExtraDimensions(DataExtraDimensionsT&& value) { SetDataExtraDimensions(std::forward<DataExtraDimensionsT>(value)); return *this;}
74 template<typename DataExtraDimensionsT = Aws::String>
75 UpdateCampaignRequest& AddDataExtraDimensions(DataExtraDimensionsT&& value) { m_dataExtraDimensionsHasBeenSet = true; m_dataExtraDimensions.emplace_back(std::forward<DataExtraDimensionsT>(value)); return *this; }
77
79
90 inline UpdateCampaignAction GetAction() const { return m_action; }
91 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
92 inline void SetAction(UpdateCampaignAction value) { m_actionHasBeenSet = true; m_action = value; }
93 inline UpdateCampaignRequest& WithAction(UpdateCampaignAction value) { SetAction(value); return *this;}
95 private:
96
97 Aws::String m_name;
98 bool m_nameHasBeenSet = false;
99
100 Aws::String m_description;
101 bool m_descriptionHasBeenSet = false;
102
103 Aws::Vector<Aws::String> m_dataExtraDimensions;
104 bool m_dataExtraDimensionsHasBeenSet = false;
105
107 bool m_actionHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace IoTFleetWise
112} // 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