AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrafficPolicy.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/AcceptAction.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 TrafficPolicy();
37 AWS_MAILMANAGER_API TrafficPolicy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MAILMANAGER_API TrafficPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const AcceptAction& GetDefaultAction() const{ return m_defaultAction; }
49 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
50 inline void SetDefaultAction(const AcceptAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
51 inline void SetDefaultAction(AcceptAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
52 inline TrafficPolicy& WithDefaultAction(const AcceptAction& value) { SetDefaultAction(value); return *this;}
53 inline TrafficPolicy& WithDefaultAction(AcceptAction&& value) { SetDefaultAction(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; }
61 inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; }
62 inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; }
63 inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); }
64 inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); }
65 inline TrafficPolicy& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;}
66 inline TrafficPolicy& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;}
67 inline TrafficPolicy& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;}
69
71
74 inline const Aws::String& GetTrafficPolicyName() const{ return m_trafficPolicyName; }
75 inline bool TrafficPolicyNameHasBeenSet() const { return m_trafficPolicyNameHasBeenSet; }
76 inline void SetTrafficPolicyName(const Aws::String& value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName = value; }
77 inline void SetTrafficPolicyName(Aws::String&& value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName = std::move(value); }
78 inline void SetTrafficPolicyName(const char* value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName.assign(value); }
79 inline TrafficPolicy& WithTrafficPolicyName(const Aws::String& value) { SetTrafficPolicyName(value); return *this;}
80 inline TrafficPolicy& WithTrafficPolicyName(Aws::String&& value) { SetTrafficPolicyName(std::move(value)); return *this;}
81 inline TrafficPolicy& WithTrafficPolicyName(const char* value) { SetTrafficPolicyName(value); return *this;}
83 private:
84
85 AcceptAction m_defaultAction;
86 bool m_defaultActionHasBeenSet = false;
87
88 Aws::String m_trafficPolicyId;
89 bool m_trafficPolicyIdHasBeenSet = false;
90
91 Aws::String m_trafficPolicyName;
92 bool m_trafficPolicyNameHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace MailManager
97} // namespace Aws
const Aws::String & GetTrafficPolicyId() const
void SetTrafficPolicyId(Aws::String &&value)
const AcceptAction & GetDefaultAction() const
TrafficPolicy & WithTrafficPolicyId(const Aws::String &value)
void SetDefaultAction(const AcceptAction &value)
TrafficPolicy & WithTrafficPolicyId(Aws::String &&value)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTrafficPolicyName() const
void SetDefaultAction(AcceptAction &&value)
TrafficPolicy & WithTrafficPolicyId(const char *value)
TrafficPolicy & WithTrafficPolicyName(const Aws::String &value)
TrafficPolicy & WithTrafficPolicyName(const char *value)
void SetTrafficPolicyName(const char *value)
void SetTrafficPolicyId(const Aws::String &value)
void SetTrafficPolicyName(const Aws::String &value)
TrafficPolicy & WithDefaultAction(const AcceptAction &value)
AWS_MAILMANAGER_API TrafficPolicy(Aws::Utils::Json::JsonView jsonValue)
void SetTrafficPolicyId(const char *value)
void SetTrafficPolicyName(Aws::String &&value)
TrafficPolicy & WithTrafficPolicyName(Aws::String &&value)
AWS_MAILMANAGER_API TrafficPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
TrafficPolicy & WithDefaultAction(AcceptAction &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue