AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
EmailAttachment.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Connect {
20namespace Model {
21
28 public:
29 AWS_CONNECT_API EmailAttachment() = default;
30 AWS_CONNECT_API EmailAttachment(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetFileName() const { return m_fileName; }
39 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
40 template <typename FileNameT = Aws::String>
41 void SetFileName(FileNameT&& value) {
42 m_fileNameHasBeenSet = true;
43 m_fileName = std::forward<FileNameT>(value);
44 }
45 template <typename FileNameT = Aws::String>
46 EmailAttachment& WithFileName(FileNameT&& value) {
47 SetFileName(std::forward<FileNameT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetS3Url() const { return m_s3Url; }
58 inline bool S3UrlHasBeenSet() const { return m_s3UrlHasBeenSet; }
59 template <typename S3UrlT = Aws::String>
60 void SetS3Url(S3UrlT&& value) {
61 m_s3UrlHasBeenSet = true;
62 m_s3Url = std::forward<S3UrlT>(value);
63 }
64 template <typename S3UrlT = Aws::String>
65 EmailAttachment& WithS3Url(S3UrlT&& value) {
66 SetS3Url(std::forward<S3UrlT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_fileName;
72
73 Aws::String m_s3Url;
74 bool m_fileNameHasBeenSet = false;
75 bool m_s3UrlHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Connect
80} // namespace Aws
EmailAttachment & WithFileName(FileNameT &&value)
const Aws::String & GetS3Url() const
EmailAttachment & WithS3Url(S3UrlT &&value)
void SetFileName(FileNameT &&value)
AWS_CONNECT_API EmailAttachment()=default
const Aws::String & GetFileName() const
AWS_CONNECT_API EmailAttachment(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API EmailAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue