AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 CreateRuleResult& WithAction(const RuleAction& value) { SetAction(value); return *this;}
45 inline CreateRuleResult& 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 CreateRuleResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
57 inline CreateRuleResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
58 inline CreateRuleResult& 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 CreateRuleResult& WithId(const Aws::String& value) { SetId(value); return *this;}
70 inline CreateRuleResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
71 inline CreateRuleResult& WithId(const char* value) { SetId(value); return *this;}
73
75
80 inline const RuleMatch& GetMatch() const{ return m_match; }
81 inline void SetMatch(const RuleMatch& value) { m_match = value; }
82 inline void SetMatch(RuleMatch&& value) { m_match = std::move(value); }
83 inline CreateRuleResult& WithMatch(const RuleMatch& value) { SetMatch(value); return *this;}
84 inline CreateRuleResult& WithMatch(RuleMatch&& value) { SetMatch(std::move(value)); return *this;}
86
88
91 inline const Aws::String& GetName() const{ return m_name; }
92 inline void SetName(const Aws::String& value) { m_name = value; }
93 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
94 inline void SetName(const char* value) { m_name.assign(value); }
95 inline CreateRuleResult& WithName(const Aws::String& value) { SetName(value); return *this;}
96 inline CreateRuleResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
97 inline CreateRuleResult& WithName(const char* value) { SetName(value); return *this;}
99
101
105 inline int GetPriority() const{ return m_priority; }
106 inline void SetPriority(int value) { m_priority = value; }
107 inline CreateRuleResult& WithPriority(int value) { SetPriority(value); return *this;}
109
111
112 inline const Aws::String& GetRequestId() const{ return m_requestId; }
113 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
114 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
115 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
116 inline CreateRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
117 inline CreateRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
118 inline CreateRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
120 private:
121
122 RuleAction m_action;
123
124 Aws::String m_arn;
125
126 Aws::String m_id;
127
128 RuleMatch m_match;
129
130 Aws::String m_name;
131
132 int m_priority;
133
134 Aws::String m_requestId;
135 };
136
137} // namespace Model
138} // namespace VPCLattice
139} // namespace Aws
CreateRuleResult & WithRequestId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
void SetMatch(const RuleMatch &value)
CreateRuleResult & WithRequestId(const Aws::String &value)
CreateRuleResult & WithId(const Aws::String &value)
CreateRuleResult & WithMatch(const RuleMatch &value)
CreateRuleResult & WithPriority(int value)
CreateRuleResult & WithArn(const Aws::String &value)
void SetId(const Aws::String &value)
CreateRuleResult & WithId(Aws::String &&value)
CreateRuleResult & WithAction(const RuleAction &value)
CreateRuleResult & WithName(const Aws::String &value)
CreateRuleResult & WithAction(RuleAction &&value)
void SetName(const Aws::String &value)
AWS_VPCLATTICE_API CreateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetArn(const Aws::String &value)
CreateRuleResult & WithMatch(RuleMatch &&value)
const Aws::String & GetRequestId() const
CreateRuleResult & WithRequestId(const char *value)
CreateRuleResult & WithName(const char *value)
CreateRuleResult & WithId(const char *value)
AWS_VPCLATTICE_API CreateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateRuleResult & WithArn(const char *value)
CreateRuleResult & WithName(Aws::String &&value)
CreateRuleResult & WithArn(Aws::String &&value)
void SetAction(const RuleAction &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue