AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ArchiveAction.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/ActionFailurePolicy.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MailManager
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MAILMANAGER_API ArchiveAction();
37 AWS_MAILMANAGER_API ArchiveAction(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MAILMANAGER_API ArchiveAction& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const ActionFailurePolicy& GetActionFailurePolicy() const{ return m_actionFailurePolicy; }
49 inline bool ActionFailurePolicyHasBeenSet() const { return m_actionFailurePolicyHasBeenSet; }
50 inline void SetActionFailurePolicy(const ActionFailurePolicy& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = value; }
51 inline void SetActionFailurePolicy(ActionFailurePolicy&& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = std::move(value); }
53 inline ArchiveAction& WithActionFailurePolicy(ActionFailurePolicy&& value) { SetActionFailurePolicy(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetTargetArchive() const{ return m_targetArchive; }
61 inline bool TargetArchiveHasBeenSet() const { return m_targetArchiveHasBeenSet; }
62 inline void SetTargetArchive(const Aws::String& value) { m_targetArchiveHasBeenSet = true; m_targetArchive = value; }
63 inline void SetTargetArchive(Aws::String&& value) { m_targetArchiveHasBeenSet = true; m_targetArchive = std::move(value); }
64 inline void SetTargetArchive(const char* value) { m_targetArchiveHasBeenSet = true; m_targetArchive.assign(value); }
65 inline ArchiveAction& WithTargetArchive(const Aws::String& value) { SetTargetArchive(value); return *this;}
66 inline ArchiveAction& WithTargetArchive(Aws::String&& value) { SetTargetArchive(std::move(value)); return *this;}
67 inline ArchiveAction& WithTargetArchive(const char* value) { SetTargetArchive(value); return *this;}
69 private:
70
71 ActionFailurePolicy m_actionFailurePolicy;
72 bool m_actionFailurePolicyHasBeenSet = false;
73
74 Aws::String m_targetArchive;
75 bool m_targetArchiveHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace MailManager
80} // namespace Aws
void SetActionFailurePolicy(const ActionFailurePolicy &value)
void SetTargetArchive(Aws::String &&value)
ArchiveAction & WithActionFailurePolicy(ActionFailurePolicy &&value)
AWS_MAILMANAGER_API ArchiveAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API ArchiveAction(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetActionFailurePolicy(ActionFailurePolicy &&value)
const ActionFailurePolicy & GetActionFailurePolicy() const
ArchiveAction & WithActionFailurePolicy(const ActionFailurePolicy &value)
ArchiveAction & WithTargetArchive(const Aws::String &value)
ArchiveAction & WithTargetArchive(Aws::String &&value)
void SetTargetArchive(const Aws::String &value)
ArchiveAction & WithTargetArchive(const char *value)
const Aws::String & GetTargetArchive() const
void SetTargetArchive(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue