AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchGetLifecyclePolicyResult.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearchserverless/model/LifecyclePolicyDetail.h>
11#include <aws/opensearchserverless/model/LifecyclePolicyErrorDetail.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 OpenSearchServerless
27{
28namespace Model
29{
31 {
32 public:
33 AWS_OPENSEARCHSERVERLESS_API BatchGetLifecyclePolicyResult();
36
37
39
43 inline const Aws::Vector<LifecyclePolicyDetail>& GetLifecyclePolicyDetails() const{ return m_lifecyclePolicyDetails; }
44 inline void SetLifecyclePolicyDetails(const Aws::Vector<LifecyclePolicyDetail>& value) { m_lifecyclePolicyDetails = value; }
45 inline void SetLifecyclePolicyDetails(Aws::Vector<LifecyclePolicyDetail>&& value) { m_lifecyclePolicyDetails = std::move(value); }
48 inline BatchGetLifecyclePolicyResult& AddLifecyclePolicyDetails(const LifecyclePolicyDetail& value) { m_lifecyclePolicyDetails.push_back(value); return *this; }
49 inline BatchGetLifecyclePolicyResult& AddLifecyclePolicyDetails(LifecyclePolicyDetail&& value) { m_lifecyclePolicyDetails.push_back(std::move(value)); return *this; }
51
53
57 inline const Aws::Vector<LifecyclePolicyErrorDetail>& GetLifecyclePolicyErrorDetails() const{ return m_lifecyclePolicyErrorDetails; }
58 inline void SetLifecyclePolicyErrorDetails(const Aws::Vector<LifecyclePolicyErrorDetail>& value) { m_lifecyclePolicyErrorDetails = value; }
59 inline void SetLifecyclePolicyErrorDetails(Aws::Vector<LifecyclePolicyErrorDetail>&& value) { m_lifecyclePolicyErrorDetails = std::move(value); }
62 inline BatchGetLifecyclePolicyResult& AddLifecyclePolicyErrorDetails(const LifecyclePolicyErrorDetail& value) { m_lifecyclePolicyErrorDetails.push_back(value); return *this; }
63 inline BatchGetLifecyclePolicyResult& AddLifecyclePolicyErrorDetails(LifecyclePolicyErrorDetail&& value) { m_lifecyclePolicyErrorDetails.push_back(std::move(value)); return *this; }
65
67
68 inline const Aws::String& GetRequestId() const{ return m_requestId; }
69 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
70 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
71 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
72 inline BatchGetLifecyclePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
73 inline BatchGetLifecyclePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
74 inline BatchGetLifecyclePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
76 private:
77
78 Aws::Vector<LifecyclePolicyDetail> m_lifecyclePolicyDetails;
79
80 Aws::Vector<LifecyclePolicyErrorDetail> m_lifecyclePolicyErrorDetails;
81
82 Aws::String m_requestId;
83 };
84
85} // namespace Model
86} // namespace OpenSearchServerless
87} // namespace Aws
BatchGetLifecyclePolicyResult & AddLifecyclePolicyDetails(const LifecyclePolicyDetail &value)
BatchGetLifecyclePolicyResult & AddLifecyclePolicyErrorDetails(LifecyclePolicyErrorDetail &&value)
BatchGetLifecyclePolicyResult & WithRequestId(Aws::String &&value)
const Aws::Vector< LifecyclePolicyErrorDetail > & GetLifecyclePolicyErrorDetails() const
BatchGetLifecyclePolicyResult & WithLifecyclePolicyErrorDetails(Aws::Vector< LifecyclePolicyErrorDetail > &&value)
const Aws::Vector< LifecyclePolicyDetail > & GetLifecyclePolicyDetails() const
BatchGetLifecyclePolicyResult & AddLifecyclePolicyErrorDetails(const LifecyclePolicyErrorDetail &value)
BatchGetLifecyclePolicyResult & WithLifecyclePolicyErrorDetails(const Aws::Vector< LifecyclePolicyErrorDetail > &value)
BatchGetLifecyclePolicyResult & AddLifecyclePolicyDetails(LifecyclePolicyDetail &&value)
AWS_OPENSEARCHSERVERLESS_API BatchGetLifecyclePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLifecyclePolicyErrorDetails(const Aws::Vector< LifecyclePolicyErrorDetail > &value)
void SetLifecyclePolicyErrorDetails(Aws::Vector< LifecyclePolicyErrorDetail > &&value)
void SetLifecyclePolicyDetails(const Aws::Vector< LifecyclePolicyDetail > &value)
BatchGetLifecyclePolicyResult & WithRequestId(const Aws::String &value)
void SetLifecyclePolicyDetails(Aws::Vector< LifecyclePolicyDetail > &&value)
BatchGetLifecyclePolicyResult & WithRequestId(const char *value)
AWS_OPENSEARCHSERVERLESS_API BatchGetLifecyclePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetLifecyclePolicyResult & WithLifecyclePolicyDetails(Aws::Vector< LifecyclePolicyDetail > &&value)
BatchGetLifecyclePolicyResult & WithLifecyclePolicyDetails(const Aws::Vector< LifecyclePolicyDetail > &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