AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
GetCampaignRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-marketing/PartnerCentralMarketingRequest.h>
9#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
10#include <aws/partnercentral-marketing/model/Catalog.h>
11
12#include <utility>
13
14namespace Aws {
15namespace PartnerCentralMarketing {
16namespace Model {
17
24 public:
25 AWS_PARTNERCENTRALMARKETING_API GetCampaignRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetCampaign"; }
32
33 AWS_PARTNERCENTRALMARKETING_API Aws::String SerializePayload() const override;
34
35 AWS_PARTNERCENTRALMARKETING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline Catalog GetCatalog() const { return m_catalog; }
42 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
43 inline void SetCatalog(Catalog value) {
44 m_catalogHasBeenSet = true;
45 m_catalog = value;
46 }
48 SetCatalog(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCampaignIdentifier() const { return m_campaignIdentifier; }
58 inline bool CampaignIdentifierHasBeenSet() const { return m_campaignIdentifierHasBeenSet; }
59 template <typename CampaignIdentifierT = Aws::String>
60 void SetCampaignIdentifier(CampaignIdentifierT&& value) {
61 m_campaignIdentifierHasBeenSet = true;
62 m_campaignIdentifier = std::forward<CampaignIdentifierT>(value);
63 }
64 template <typename CampaignIdentifierT = Aws::String>
65 GetCampaignRequest& WithCampaignIdentifier(CampaignIdentifierT&& value) {
66 SetCampaignIdentifier(std::forward<CampaignIdentifierT>(value));
67 return *this;
68 }
70 private:
71 Catalog m_catalog{Catalog::NOT_SET};
72
73 Aws::String m_campaignIdentifier;
74 bool m_catalogHasBeenSet = false;
75 bool m_campaignIdentifierHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace PartnerCentralMarketing
80} // namespace Aws
AWS_PARTNERCENTRALMARKETING_API GetCampaignRequest()=default
virtual const char * GetServiceRequestName() const override
GetCampaignRequest & WithCampaignIdentifier(CampaignIdentifierT &&value)
AWS_PARTNERCENTRALMARKETING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PARTNERCENTRALMARKETING_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String