AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ListenerIdentifierT = Aws::String>
44 void SetListenerIdentifier(ListenerIdentifierT&& value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier = std::forward<ListenerIdentifierT>(value); }
45 template<typename ListenerIdentifierT = Aws::String>
46 BatchUpdateRuleRequest& WithListenerIdentifier(ListenerIdentifierT&& value) { SetListenerIdentifier(std::forward<ListenerIdentifierT>(value)); return *this;}
48
50
53 inline const Aws::Vector<RuleUpdate>& GetRules() const { return m_rules; }
54 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
55 template<typename RulesT = Aws::Vector<RuleUpdate>>
56 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
57 template<typename RulesT = Aws::Vector<RuleUpdate>>
58 BatchUpdateRuleRequest& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
59 template<typename RulesT = RuleUpdate>
60 BatchUpdateRuleRequest& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
62
64
67 inline const Aws::String& GetServiceIdentifier() const { return m_serviceIdentifier; }
68 inline bool ServiceIdentifierHasBeenSet() const { return m_serviceIdentifierHasBeenSet; }
69 template<typename ServiceIdentifierT = Aws::String>
70 void SetServiceIdentifier(ServiceIdentifierT&& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = std::forward<ServiceIdentifierT>(value); }
71 template<typename ServiceIdentifierT = Aws::String>
72 BatchUpdateRuleRequest& WithServiceIdentifier(ServiceIdentifierT&& value) { SetServiceIdentifier(std::forward<ServiceIdentifierT>(value)); return *this;}
74 private:
75
76 Aws::String m_listenerIdentifier;
77 bool m_listenerIdentifierHasBeenSet = false;
78
80 bool m_rulesHasBeenSet = false;
81
82 Aws::String m_serviceIdentifier;
83 bool m_serviceIdentifierHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace VPCLattice
88} // namespace Aws
void SetServiceIdentifier(ServiceIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
AWS_VPCLATTICE_API BatchUpdateRuleRequest()=default
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
BatchUpdateRuleRequest & WithServiceIdentifier(ServiceIdentifierT &&value)
const Aws::Vector< RuleUpdate > & GetRules() const
void SetListenerIdentifier(ListenerIdentifierT &&value)
BatchUpdateRuleRequest & WithRules(RulesT &&value)
BatchUpdateRuleRequest & AddRules(RulesT &&value)
BatchUpdateRuleRequest & WithListenerIdentifier(ListenerIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector