AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateRuleResult.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 CreateRuleResult() = default;
35
36
38
41 inline const RuleAction& GetAction() const { return m_action; }
42 template<typename ActionT = RuleAction>
43 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
44 template<typename ActionT = RuleAction>
45 CreateRuleResult& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
47
49
52 inline const Aws::String& GetArn() const { return m_arn; }
53 template<typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
55 template<typename ArnT = Aws::String>
56 CreateRuleResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
58
60
63 inline const Aws::String& GetId() const { return m_id; }
64 template<typename IdT = Aws::String>
65 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
66 template<typename IdT = Aws::String>
67 CreateRuleResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
69
71
76 inline const RuleMatch& GetMatch() const { return m_match; }
77 template<typename MatchT = RuleMatch>
78 void SetMatch(MatchT&& value) { m_matchHasBeenSet = true; m_match = std::forward<MatchT>(value); }
79 template<typename MatchT = RuleMatch>
80 CreateRuleResult& WithMatch(MatchT&& value) { SetMatch(std::forward<MatchT>(value)); return *this;}
82
84
87 inline const Aws::String& GetName() const { return m_name; }
88 template<typename NameT = Aws::String>
89 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
90 template<typename NameT = Aws::String>
91 CreateRuleResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
93
95
99 inline int GetPriority() const { return m_priority; }
100 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
101 inline CreateRuleResult& WithPriority(int value) { SetPriority(value); return *this;}
103
105
106 inline const Aws::String& GetRequestId() const { return m_requestId; }
107 template<typename RequestIdT = Aws::String>
108 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
109 template<typename RequestIdT = Aws::String>
110 CreateRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
112 private:
113
114 RuleAction m_action;
115 bool m_actionHasBeenSet = false;
116
117 Aws::String m_arn;
118 bool m_arnHasBeenSet = false;
119
120 Aws::String m_id;
121 bool m_idHasBeenSet = false;
122
123 RuleMatch m_match;
124 bool m_matchHasBeenSet = false;
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
129 int m_priority{0};
130 bool m_priorityHasBeenSet = false;
131
132 Aws::String m_requestId;
133 bool m_requestIdHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace VPCLattice
138} // namespace Aws
CreateRuleResult & WithId(IdT &&value)
CreateRuleResult & WithPriority(int value)
CreateRuleResult & WithArn(ArnT &&value)
CreateRuleResult & WithName(NameT &&value)
CreateRuleResult & WithRequestId(RequestIdT &&value)
CreateRuleResult & WithAction(ActionT &&value)
AWS_VPCLATTICE_API CreateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
AWS_VPCLATTICE_API CreateRuleResult()=default
CreateRuleResult & WithMatch(MatchT &&value)
AWS_VPCLATTICE_API CreateRuleResult & operator=(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