AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRuleResult.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{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace VPCLattice
26{
27namespace Model
28{
30 {
31 public:
32 AWS_VPCLATTICE_API UpdateRuleResult();
35
36
38
41 inline const RuleAction& GetAction() const{ return m_action; }
42 inline void SetAction(const RuleAction& value) { m_action = value; }
43 inline void SetAction(RuleAction&& value) { m_action = std::move(value); }
44 inline UpdateRuleResult& WithAction(const RuleAction& value) { SetAction(value); return *this;}
45 inline UpdateRuleResult& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;}
47
49
52 inline const Aws::String& GetArn() const{ return m_arn; }
53 inline void SetArn(const Aws::String& value) { m_arn = value; }
54 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
55 inline void SetArn(const char* value) { m_arn.assign(value); }
56 inline UpdateRuleResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
57 inline UpdateRuleResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
58 inline UpdateRuleResult& WithArn(const char* value) { SetArn(value); return *this;}
60
62
65 inline const Aws::String& GetId() const{ return m_id; }
66 inline void SetId(const Aws::String& value) { m_id = value; }
67 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
68 inline void SetId(const char* value) { m_id.assign(value); }
69 inline UpdateRuleResult& WithId(const Aws::String& value) { SetId(value); return *this;}
70 inline UpdateRuleResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
71 inline UpdateRuleResult& WithId(const char* value) { SetId(value); return *this;}
73
75
78 inline bool GetIsDefault() const{ return m_isDefault; }
79 inline void SetIsDefault(bool value) { m_isDefault = value; }
80 inline UpdateRuleResult& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
82
84
87 inline const RuleMatch& GetMatch() const{ return m_match; }
88 inline void SetMatch(const RuleMatch& value) { m_match = value; }
89 inline void SetMatch(RuleMatch&& value) { m_match = std::move(value); }
90 inline UpdateRuleResult& WithMatch(const RuleMatch& value) { SetMatch(value); return *this;}
91 inline UpdateRuleResult& WithMatch(RuleMatch&& value) { SetMatch(std::move(value)); return *this;}
93
95
98 inline const Aws::String& GetName() const{ return m_name; }
99 inline void SetName(const Aws::String& value) { m_name = value; }
100 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
101 inline void SetName(const char* value) { m_name.assign(value); }
102 inline UpdateRuleResult& WithName(const Aws::String& value) { SetName(value); return *this;}
103 inline UpdateRuleResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
104 inline UpdateRuleResult& WithName(const char* value) { SetName(value); return *this;}
106
108
111 inline int GetPriority() const{ return m_priority; }
112 inline void SetPriority(int value) { m_priority = value; }
113 inline UpdateRuleResult& WithPriority(int value) { SetPriority(value); return *this;}
115
117
118 inline const Aws::String& GetRequestId() const{ return m_requestId; }
119 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
120 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
121 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
122 inline UpdateRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
123 inline UpdateRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
124 inline UpdateRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
126 private:
127
128 RuleAction m_action;
129
130 Aws::String m_arn;
131
132 Aws::String m_id;
133
134 bool m_isDefault;
135
136 RuleMatch m_match;
137
138 Aws::String m_name;
139
140 int m_priority;
141
142 Aws::String m_requestId;
143 };
144
145} // namespace Model
146} // namespace VPCLattice
147} // namespace Aws
UpdateRuleResult & WithPriority(int value)
UpdateRuleResult & WithMatch(RuleMatch &&value)
UpdateRuleResult & WithId(const Aws::String &value)
UpdateRuleResult & WithArn(const char *value)
UpdateRuleResult & WithMatch(const RuleMatch &value)
UpdateRuleResult & WithArn(Aws::String &&value)
UpdateRuleResult & WithId(Aws::String &&value)
AWS_VPCLATTICE_API UpdateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateRuleResult & WithName(Aws::String &&value)
UpdateRuleResult & WithName(const Aws::String &value)
void SetId(const Aws::String &value)
UpdateRuleResult & WithAction(RuleAction &&value)
void SetMatch(const RuleMatch &value)
void SetArn(const Aws::String &value)
void SetAction(const RuleAction &value)
UpdateRuleResult & WithArn(const Aws::String &value)
UpdateRuleResult & WithName(const char *value)
UpdateRuleResult & WithRequestId(const Aws::String &value)
void SetName(const Aws::String &value)
const Aws::String & GetRequestId() const
UpdateRuleResult & WithRequestId(const char *value)
UpdateRuleResult & WithIsDefault(bool value)
UpdateRuleResult & WithId(const char *value)
UpdateRuleResult & WithRequestId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
UpdateRuleResult & WithAction(const RuleAction &value)
AWS_VPCLATTICE_API UpdateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue