AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ActionT = RuleAction>
49 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
50 template<typename ActionT = RuleAction>
51 RuleUpdateSuccess& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 template<typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
62 template<typename ArnT = Aws::String>
63 RuleUpdateSuccess& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
65
67
70 inline const Aws::String& GetId() const { return m_id; }
71 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
72 template<typename IdT = Aws::String>
73 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
74 template<typename IdT = Aws::String>
75 RuleUpdateSuccess& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
77
79
82 inline bool GetIsDefault() const { return m_isDefault; }
83 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
84 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
85 inline RuleUpdateSuccess& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
87
89
92 inline const RuleMatch& GetMatch() const { return m_match; }
93 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
94 template<typename MatchT = RuleMatch>
95 void SetMatch(MatchT&& value) { m_matchHasBeenSet = true; m_match = std::forward<MatchT>(value); }
96 template<typename MatchT = RuleMatch>
97 RuleUpdateSuccess& WithMatch(MatchT&& value) { SetMatch(std::forward<MatchT>(value)); return *this;}
99
101
104 inline const Aws::String& GetName() const { return m_name; }
105 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
106 template<typename NameT = Aws::String>
107 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
108 template<typename NameT = Aws::String>
109 RuleUpdateSuccess& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
111
113
116 inline int GetPriority() const { return m_priority; }
117 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
118 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
119 inline RuleUpdateSuccess& WithPriority(int value) { SetPriority(value); return *this;}
121 private:
122
123 RuleAction m_action;
124 bool m_actionHasBeenSet = false;
125
126 Aws::String m_arn;
127 bool m_arnHasBeenSet = false;
128
129 Aws::String m_id;
130 bool m_idHasBeenSet = false;
131
132 bool m_isDefault{false};
133 bool m_isDefaultHasBeenSet = false;
134
135 RuleMatch m_match;
136 bool m_matchHasBeenSet = false;
137
138 Aws::String m_name;
139 bool m_nameHasBeenSet = false;
140
141 int m_priority{0};
142 bool m_priorityHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace VPCLattice
147} // namespace Aws
AWS_VPCLATTICE_API RuleUpdateSuccess & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VPCLATTICE_API RuleUpdateSuccess()=default
RuleUpdateSuccess & WithArn(ArnT &&value)
RuleUpdateSuccess & WithPriority(int value)
RuleUpdateSuccess & WithAction(ActionT &&value)
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VPCLATTICE_API RuleUpdateSuccess(Aws::Utils::Json::JsonView jsonValue)
RuleUpdateSuccess & WithName(NameT &&value)
RuleUpdateSuccess & WithId(IdT &&value)
RuleUpdateSuccess & WithIsDefault(bool value)
RuleUpdateSuccess & WithMatch(MatchT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue