AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleUpdateSuccess.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/model/RuleAction.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/vpc-lattice/model/RuleMatch.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace VPCLattice
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_VPCLATTICE_API RuleUpdateSuccess();
37 AWS_VPCLATTICE_API RuleUpdateSuccess(Aws::Utils::Json::JsonView jsonValue);
39 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const RuleAction& GetAction() const{ return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 inline void SetAction(const RuleAction& value) { m_actionHasBeenSet = true; m_action = value; }
49 inline void SetAction(RuleAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
50 inline RuleUpdateSuccess& WithAction(const RuleAction& value) { SetAction(value); return *this;}
51 inline RuleUpdateSuccess& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetArn() const{ return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
61 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
62 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
63 inline RuleUpdateSuccess& WithArn(const Aws::String& value) { SetArn(value); return *this;}
64 inline RuleUpdateSuccess& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
65 inline RuleUpdateSuccess& WithArn(const char* value) { SetArn(value); return *this;}
67
69
72 inline const Aws::String& GetId() const{ return m_id; }
73 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
74 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
75 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
76 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
77 inline RuleUpdateSuccess& WithId(const Aws::String& value) { SetId(value); return *this;}
78 inline RuleUpdateSuccess& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
79 inline RuleUpdateSuccess& WithId(const char* value) { SetId(value); return *this;}
81
83
86 inline bool GetIsDefault() const{ return m_isDefault; }
87 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
88 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
89 inline RuleUpdateSuccess& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
91
93
96 inline const RuleMatch& GetMatch() const{ return m_match; }
97 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
98 inline void SetMatch(const RuleMatch& value) { m_matchHasBeenSet = true; m_match = value; }
99 inline void SetMatch(RuleMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
100 inline RuleUpdateSuccess& WithMatch(const RuleMatch& value) { SetMatch(value); return *this;}
101 inline RuleUpdateSuccess& WithMatch(RuleMatch&& value) { SetMatch(std::move(value)); return *this;}
103
105
108 inline const Aws::String& GetName() const{ return m_name; }
109 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
110 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
111 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
112 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
113 inline RuleUpdateSuccess& WithName(const Aws::String& value) { SetName(value); return *this;}
114 inline RuleUpdateSuccess& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
115 inline RuleUpdateSuccess& WithName(const char* value) { SetName(value); return *this;}
117
119
122 inline int GetPriority() const{ return m_priority; }
123 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
124 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
125 inline RuleUpdateSuccess& WithPriority(int value) { SetPriority(value); return *this;}
127 private:
128
129 RuleAction m_action;
130 bool m_actionHasBeenSet = false;
131
132 Aws::String m_arn;
133 bool m_arnHasBeenSet = false;
134
135 Aws::String m_id;
136 bool m_idHasBeenSet = false;
137
138 bool m_isDefault;
139 bool m_isDefaultHasBeenSet = false;
140
141 RuleMatch m_match;
142 bool m_matchHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 int m_priority;
148 bool m_priorityHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace VPCLattice
153} // namespace Aws
void SetArn(const Aws::String &value)
AWS_VPCLATTICE_API RuleUpdateSuccess & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleUpdateSuccess & WithAction(const RuleAction &value)
RuleUpdateSuccess & WithId(Aws::String &&value)
void SetId(const Aws::String &value)
RuleUpdateSuccess & WithMatch(RuleMatch &&value)
RuleUpdateSuccess & WithPriority(int value)
RuleUpdateSuccess & WithMatch(const RuleMatch &value)
RuleUpdateSuccess & WithId(const Aws::String &value)
RuleUpdateSuccess & WithName(const char *value)
RuleUpdateSuccess & WithName(const Aws::String &value)
void SetAction(const RuleAction &value)
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VPCLATTICE_API RuleUpdateSuccess(Aws::Utils::Json::JsonView jsonValue)
RuleUpdateSuccess & WithId(const char *value)
RuleUpdateSuccess & WithArn(const Aws::String &value)
RuleUpdateSuccess & WithArn(const char *value)
RuleUpdateSuccess & WithName(Aws::String &&value)
void SetName(const Aws::String &value)
RuleUpdateSuccess & WithAction(RuleAction &&value)
RuleUpdateSuccess & WithArn(Aws::String &&value)
RuleUpdateSuccess & WithIsDefault(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue