AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchUpdateRuleRequest.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/VPCLatticeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/vpc-lattice/model/RuleUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace VPCLattice
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_VPCLATTICE_API BatchUpdateRuleRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "BatchUpdateRule"; }
33
34 AWS_VPCLATTICE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetListenerIdentifier() const{ return m_listenerIdentifier; }
42 inline bool ListenerIdentifierHasBeenSet() const { return m_listenerIdentifierHasBeenSet; }
43 inline void SetListenerIdentifier(const Aws::String& value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier = value; }
44 inline void SetListenerIdentifier(Aws::String&& value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier = std::move(value); }
45 inline void SetListenerIdentifier(const char* value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier.assign(value); }
47 inline BatchUpdateRuleRequest& WithListenerIdentifier(Aws::String&& value) { SetListenerIdentifier(std::move(value)); return *this;}
48 inline BatchUpdateRuleRequest& WithListenerIdentifier(const char* value) { SetListenerIdentifier(value); return *this;}
50
52
55 inline const Aws::Vector<RuleUpdate>& GetRules() const{ return m_rules; }
56 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
57 inline void SetRules(const Aws::Vector<RuleUpdate>& value) { m_rulesHasBeenSet = true; m_rules = value; }
58 inline void SetRules(Aws::Vector<RuleUpdate>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
59 inline BatchUpdateRuleRequest& WithRules(const Aws::Vector<RuleUpdate>& value) { SetRules(value); return *this;}
60 inline BatchUpdateRuleRequest& WithRules(Aws::Vector<RuleUpdate>&& value) { SetRules(std::move(value)); return *this;}
61 inline BatchUpdateRuleRequest& AddRules(const RuleUpdate& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
62 inline BatchUpdateRuleRequest& AddRules(RuleUpdate&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
64
66
69 inline const Aws::String& GetServiceIdentifier() const{ return m_serviceIdentifier; }
70 inline bool ServiceIdentifierHasBeenSet() const { return m_serviceIdentifierHasBeenSet; }
71 inline void SetServiceIdentifier(const Aws::String& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = value; }
72 inline void SetServiceIdentifier(Aws::String&& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = std::move(value); }
73 inline void SetServiceIdentifier(const char* value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier.assign(value); }
75 inline BatchUpdateRuleRequest& WithServiceIdentifier(Aws::String&& value) { SetServiceIdentifier(std::move(value)); return *this;}
76 inline BatchUpdateRuleRequest& WithServiceIdentifier(const char* value) { SetServiceIdentifier(value); return *this;}
78 private:
79
80 Aws::String m_listenerIdentifier;
81 bool m_listenerIdentifierHasBeenSet = false;
82
84 bool m_rulesHasBeenSet = false;
85
86 Aws::String m_serviceIdentifier;
87 bool m_serviceIdentifierHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace VPCLattice
92} // namespace Aws
BatchUpdateRuleRequest & AddRules(RuleUpdate &&value)
BatchUpdateRuleRequest & WithListenerIdentifier(const Aws::String &value)
void SetRules(Aws::Vector< RuleUpdate > &&value)
virtual const char * GetServiceRequestName() const override
BatchUpdateRuleRequest & WithListenerIdentifier(const char *value)
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
BatchUpdateRuleRequest & AddRules(const RuleUpdate &value)
const Aws::Vector< RuleUpdate > & GetRules() const
BatchUpdateRuleRequest & WithServiceIdentifier(const char *value)
BatchUpdateRuleRequest & WithServiceIdentifier(const Aws::String &value)
BatchUpdateRuleRequest & WithListenerIdentifier(Aws::String &&value)
BatchUpdateRuleRequest & WithRules(Aws::Vector< RuleUpdate > &&value)
BatchUpdateRuleRequest & WithServiceIdentifier(Aws::String &&value)
BatchUpdateRuleRequest & WithRules(const Aws::Vector< RuleUpdate > &value)
void SetRules(const Aws::Vector< RuleUpdate > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector