AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
SavedAddress.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/MailManager_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MailManager {
21namespace Model {
22
29 public:
30 AWS_MAILMANAGER_API SavedAddress() = default;
31 AWS_MAILMANAGER_API SavedAddress(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MAILMANAGER_API SavedAddress& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAddress() const { return m_address; }
40 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
41 template <typename AddressT = Aws::String>
42 void SetAddress(AddressT&& value) {
43 m_addressHasBeenSet = true;
44 m_address = std::forward<AddressT>(value);
45 }
46 template <typename AddressT = Aws::String>
47 SavedAddress& WithAddress(AddressT&& value) {
48 SetAddress(std::forward<AddressT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
58 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
59 template <typename CreatedTimestampT = Aws::Utils::DateTime>
60 void SetCreatedTimestamp(CreatedTimestampT&& value) {
61 m_createdTimestampHasBeenSet = true;
62 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
63 }
64 template <typename CreatedTimestampT = Aws::Utils::DateTime>
65 SavedAddress& WithCreatedTimestamp(CreatedTimestampT&& value) {
66 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_address;
72
73 Aws::Utils::DateTime m_createdTimestamp{};
74 bool m_addressHasBeenSet = false;
75 bool m_createdTimestampHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace MailManager
80} // namespace Aws
const Aws::String & GetAddress() const
void SetCreatedTimestamp(CreatedTimestampT &&value)
SavedAddress & WithAddress(AddressT &&value)
AWS_MAILMANAGER_API SavedAddress & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
AWS_MAILMANAGER_API SavedAddress()=default
AWS_MAILMANAGER_API SavedAddress(Aws::Utils::Json::JsonView jsonValue)
void SetAddress(AddressT &&value)
SavedAddress & WithCreatedTimestamp(CreatedTimestampT &&value)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue