AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline UpdateCampaignRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline UpdateCampaignRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline UpdateCampaignRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline UpdateCampaignRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline UpdateCampaignRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline UpdateCampaignRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
72 inline const Aws::Vector<Aws::String>& GetDataExtraDimensions() const{ return m_dataExtraDimensions; }
73 inline bool DataExtraDimensionsHasBeenSet() const { return m_dataExtraDimensionsHasBeenSet; }
74 inline void SetDataExtraDimensions(const Aws::Vector<Aws::String>& value) { m_dataExtraDimensionsHasBeenSet = true; m_dataExtraDimensions = value; }
75 inline void SetDataExtraDimensions(Aws::Vector<Aws::String>&& value) { m_dataExtraDimensionsHasBeenSet = true; m_dataExtraDimensions = std::move(value); }
78 inline UpdateCampaignRequest& AddDataExtraDimensions(const Aws::String& value) { m_dataExtraDimensionsHasBeenSet = true; m_dataExtraDimensions.push_back(value); return *this; }
79 inline UpdateCampaignRequest& AddDataExtraDimensions(Aws::String&& value) { m_dataExtraDimensionsHasBeenSet = true; m_dataExtraDimensions.push_back(std::move(value)); return *this; }
80 inline UpdateCampaignRequest& AddDataExtraDimensions(const char* value) { m_dataExtraDimensionsHasBeenSet = true; m_dataExtraDimensions.push_back(value); return *this; }
82
84
95 inline const UpdateCampaignAction& GetAction() const{ return m_action; }
96 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
97 inline void SetAction(const UpdateCampaignAction& value) { m_actionHasBeenSet = true; m_action = value; }
98 inline void SetAction(UpdateCampaignAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
99 inline UpdateCampaignRequest& WithAction(const UpdateCampaignAction& value) { SetAction(value); return *this;}
100 inline UpdateCampaignRequest& WithAction(UpdateCampaignAction&& value) { SetAction(std::move(value)); return *this;}
102 private:
103
104 Aws::String m_name;
105 bool m_nameHasBeenSet = false;
106
107 Aws::String m_description;
108 bool m_descriptionHasBeenSet = false;
109
110 Aws::Vector<Aws::String> m_dataExtraDimensions;
111 bool m_dataExtraDimensionsHasBeenSet = false;
112
113 UpdateCampaignAction m_action;
114 bool m_actionHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace IoTFleetWise
119} // namespace Aws
const UpdateCampaignAction & GetAction() const
AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override
UpdateCampaignRequest & AddDataExtraDimensions(const Aws::String &value)
UpdateCampaignRequest & AddDataExtraDimensions(Aws::String &&value)
UpdateCampaignRequest & WithDescription(Aws::String &&value)
UpdateCampaignRequest & WithDataExtraDimensions(const Aws::Vector< Aws::String > &value)
void SetDataExtraDimensions(const Aws::Vector< Aws::String > &value)
UpdateCampaignRequest & WithAction(UpdateCampaignAction &&value)
virtual const char * GetServiceRequestName() const override
UpdateCampaignRequest & WithName(const char *value)
UpdateCampaignRequest & WithAction(const UpdateCampaignAction &value)
UpdateCampaignRequest & WithDescription(const Aws::String &value)
void SetAction(const UpdateCampaignAction &value)
const Aws::Vector< Aws::String > & GetDataExtraDimensions() const
UpdateCampaignRequest & AddDataExtraDimensions(const char *value)
void SetDataExtraDimensions(Aws::Vector< Aws::String > &&value)
UpdateCampaignRequest & WithDataExtraDimensions(Aws::Vector< Aws::String > &&value)
AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateCampaignRequest & WithDescription(const char *value)
UpdateCampaignRequest & WithName(Aws::String &&value)
UpdateCampaignRequest & WithName(const Aws::String &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