AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchUpdateRuleResult.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/vpc-lattice/model/RuleUpdateSuccess.h>
11#include <aws/vpc-lattice/model/RuleUpdateFailure.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace VPCLattice
27{
28namespace Model
29{
31 {
32 public:
33 AWS_VPCLATTICE_API BatchUpdateRuleResult();
36
37
39
42 inline const Aws::Vector<RuleUpdateSuccess>& GetSuccessful() const{ return m_successful; }
43 inline void SetSuccessful(const Aws::Vector<RuleUpdateSuccess>& value) { m_successful = value; }
44 inline void SetSuccessful(Aws::Vector<RuleUpdateSuccess>&& value) { m_successful = std::move(value); }
46 inline BatchUpdateRuleResult& WithSuccessful(Aws::Vector<RuleUpdateSuccess>&& value) { SetSuccessful(std::move(value)); return *this;}
47 inline BatchUpdateRuleResult& AddSuccessful(const RuleUpdateSuccess& value) { m_successful.push_back(value); return *this; }
48 inline BatchUpdateRuleResult& AddSuccessful(RuleUpdateSuccess&& value) { m_successful.push_back(std::move(value)); return *this; }
50
52
55 inline const Aws::Vector<RuleUpdateFailure>& GetUnsuccessful() const{ return m_unsuccessful; }
56 inline void SetUnsuccessful(const Aws::Vector<RuleUpdateFailure>& value) { m_unsuccessful = value; }
57 inline void SetUnsuccessful(Aws::Vector<RuleUpdateFailure>&& value) { m_unsuccessful = std::move(value); }
59 inline BatchUpdateRuleResult& WithUnsuccessful(Aws::Vector<RuleUpdateFailure>&& value) { SetUnsuccessful(std::move(value)); return *this;}
60 inline BatchUpdateRuleResult& AddUnsuccessful(const RuleUpdateFailure& value) { m_unsuccessful.push_back(value); return *this; }
61 inline BatchUpdateRuleResult& AddUnsuccessful(RuleUpdateFailure&& value) { m_unsuccessful.push_back(std::move(value)); return *this; }
63
65
66 inline const Aws::String& GetRequestId() const{ return m_requestId; }
67 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
68 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
69 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
70 inline BatchUpdateRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
71 inline BatchUpdateRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
72 inline BatchUpdateRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
74 private:
75
77
78 Aws::Vector<RuleUpdateFailure> m_unsuccessful;
79
80 Aws::String m_requestId;
81 };
82
83} // namespace Model
84} // namespace VPCLattice
85} // namespace Aws
void SetSuccessful(Aws::Vector< RuleUpdateSuccess > &&value)
AWS_VPCLATTICE_API BatchUpdateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchUpdateRuleResult & AddUnsuccessful(RuleUpdateFailure &&value)
BatchUpdateRuleResult & WithRequestId(const char *value)
BatchUpdateRuleResult & WithRequestId(const Aws::String &value)
BatchUpdateRuleResult & WithSuccessful(const Aws::Vector< RuleUpdateSuccess > &value)
BatchUpdateRuleResult & WithSuccessful(Aws::Vector< RuleUpdateSuccess > &&value)
BatchUpdateRuleResult & WithRequestId(Aws::String &&value)
BatchUpdateRuleResult & WithUnsuccessful(Aws::Vector< RuleUpdateFailure > &&value)
const Aws::Vector< RuleUpdateFailure > & GetUnsuccessful() const
const Aws::Vector< RuleUpdateSuccess > & GetSuccessful() const
BatchUpdateRuleResult & AddUnsuccessful(const RuleUpdateFailure &value)
BatchUpdateRuleResult & AddSuccessful(RuleUpdateSuccess &&value)
BatchUpdateRuleResult & AddSuccessful(const RuleUpdateSuccess &value)
AWS_VPCLATTICE_API BatchUpdateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetUnsuccessful(Aws::Vector< RuleUpdateFailure > &&value)
BatchUpdateRuleResult & WithUnsuccessful(const Aws::Vector< RuleUpdateFailure > &value)
void SetSuccessful(const Aws::Vector< RuleUpdateSuccess > &value)
void SetUnsuccessful(const Aws::Vector< RuleUpdateFailure > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue