AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PutDeliverabilityDashboardOptionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/sesv2/SESV2_EXPORTS.h>
10#include <aws/sesv2/model/DomainDeliverabilityTrackingOption.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SESV2 {
16namespace Model {
17
33 public:
34 AWS_SESV2_API PutDeliverabilityDashboardOptionRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "PutDeliverabilityDashboardOption"; }
41
42 AWS_SESV2_API Aws::String SerializePayload() const override;
43
45
49 inline bool GetDashboardEnabled() const { return m_dashboardEnabled; }
50 inline bool DashboardEnabledHasBeenSet() const { return m_dashboardEnabledHasBeenSet; }
51 inline void SetDashboardEnabled(bool value) {
52 m_dashboardEnabledHasBeenSet = true;
53 m_dashboardEnabled = value;
54 }
57 return *this;
58 }
60
62
66 inline const Aws::Vector<DomainDeliverabilityTrackingOption>& GetSubscribedDomains() const { return m_subscribedDomains; }
67 inline bool SubscribedDomainsHasBeenSet() const { return m_subscribedDomainsHasBeenSet; }
68 template <typename SubscribedDomainsT = Aws::Vector<DomainDeliverabilityTrackingOption>>
69 void SetSubscribedDomains(SubscribedDomainsT&& value) {
70 m_subscribedDomainsHasBeenSet = true;
71 m_subscribedDomains = std::forward<SubscribedDomainsT>(value);
72 }
73 template <typename SubscribedDomainsT = Aws::Vector<DomainDeliverabilityTrackingOption>>
75 SetSubscribedDomains(std::forward<SubscribedDomainsT>(value));
76 return *this;
77 }
78 template <typename SubscribedDomainsT = DomainDeliverabilityTrackingOption>
80 m_subscribedDomainsHasBeenSet = true;
81 m_subscribedDomains.emplace_back(std::forward<SubscribedDomainsT>(value));
82 return *this;
83 }
85 private:
86 bool m_dashboardEnabled{false};
87
89 bool m_dashboardEnabledHasBeenSet = false;
90 bool m_subscribedDomainsHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace SESV2
95} // namespace Aws
PutDeliverabilityDashboardOptionRequest & AddSubscribedDomains(SubscribedDomainsT &&value)
PutDeliverabilityDashboardOptionRequest & WithSubscribedDomains(SubscribedDomainsT &&value)
AWS_SESV2_API Aws::String SerializePayload() const override
const Aws::Vector< DomainDeliverabilityTrackingOption > & GetSubscribedDomains() const
PutDeliverabilityDashboardOptionRequest & WithDashboardEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector