AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDeliverabilityTestReportRequest.h
1
6#pragma once
7#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/pinpoint-email/PinpointEmailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pinpoint-email/model/EmailContent.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/pinpoint-email/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace PinpointEmail
18{
19namespace Model
20{
21
36 {
37 public:
38 AWS_PINPOINTEMAIL_API CreateDeliverabilityTestReportRequest() = default;
39
40 // Service request name is the Operation name which will send this request out,
41 // each operation should has unique request name, so that we can get operation's name from this request.
42 // Note: this is not true for response, multiple operations may have the same response name,
43 // so we can not get operation's name from response.
44 inline virtual const char* GetServiceRequestName() const override { return "CreateDeliverabilityTestReport"; }
45
46 AWS_PINPOINTEMAIL_API Aws::String SerializePayload() const override;
47
48
50
54 inline const Aws::String& GetReportName() const { return m_reportName; }
55 inline bool ReportNameHasBeenSet() const { return m_reportNameHasBeenSet; }
56 template<typename ReportNameT = Aws::String>
57 void SetReportName(ReportNameT&& value) { m_reportNameHasBeenSet = true; m_reportName = std::forward<ReportNameT>(value); }
58 template<typename ReportNameT = Aws::String>
59 CreateDeliverabilityTestReportRequest& WithReportName(ReportNameT&& value) { SetReportName(std::forward<ReportNameT>(value)); return *this;}
61
63
67 inline const Aws::String& GetFromEmailAddress() const { return m_fromEmailAddress; }
68 inline bool FromEmailAddressHasBeenSet() const { return m_fromEmailAddressHasBeenSet; }
69 template<typename FromEmailAddressT = Aws::String>
70 void SetFromEmailAddress(FromEmailAddressT&& value) { m_fromEmailAddressHasBeenSet = true; m_fromEmailAddress = std::forward<FromEmailAddressT>(value); }
71 template<typename FromEmailAddressT = Aws::String>
72 CreateDeliverabilityTestReportRequest& WithFromEmailAddress(FromEmailAddressT&& value) { SetFromEmailAddress(std::forward<FromEmailAddressT>(value)); return *this;}
74
76
80 inline const EmailContent& GetContent() const { return m_content; }
81 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
82 template<typename ContentT = EmailContent>
83 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
84 template<typename ContentT = EmailContent>
85 CreateDeliverabilityTestReportRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
87
89
93 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template<typename TagsT = Aws::Vector<Tag>>
96 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
97 template<typename TagsT = Aws::Vector<Tag>>
98 CreateDeliverabilityTestReportRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
99 template<typename TagsT = Tag>
100 CreateDeliverabilityTestReportRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
102 private:
103
104 Aws::String m_reportName;
105 bool m_reportNameHasBeenSet = false;
106
107 Aws::String m_fromEmailAddress;
108 bool m_fromEmailAddressHasBeenSet = false;
109
110 EmailContent m_content;
111 bool m_contentHasBeenSet = false;
112
113 Aws::Vector<Tag> m_tags;
114 bool m_tagsHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace PinpointEmail
119} // namespace Aws
AWS_PINPOINTEMAIL_API Aws::String SerializePayload() const override
CreateDeliverabilityTestReportRequest & WithReportName(ReportNameT &&value)
CreateDeliverabilityTestReportRequest & WithFromEmailAddress(FromEmailAddressT &&value)
AWS_PINPOINTEMAIL_API CreateDeliverabilityTestReportRequest()=default
CreateDeliverabilityTestReportRequest & WithContent(ContentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector