AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
PutIndexPolicyResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10#include <aws/logs/model/IndexPolicy.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CloudWatchLogs {
24namespace Model {
26 public:
27 AWS_CLOUDWATCHLOGS_API PutIndexPolicyResult() = default;
30
32
35 inline const IndexPolicy& GetIndexPolicy() const { return m_indexPolicy; }
36 template <typename IndexPolicyT = IndexPolicy>
37 void SetIndexPolicy(IndexPolicyT&& value) {
38 m_indexPolicyHasBeenSet = true;
39 m_indexPolicy = std::forward<IndexPolicyT>(value);
40 }
41 template <typename IndexPolicyT = IndexPolicy>
42 PutIndexPolicyResult& WithIndexPolicy(IndexPolicyT&& value) {
43 SetIndexPolicy(std::forward<IndexPolicyT>(value));
44 return *this;
45 }
47
49
50 inline const Aws::String& GetRequestId() const { return m_requestId; }
51 template <typename RequestIdT = Aws::String>
52 void SetRequestId(RequestIdT&& value) {
53 m_requestIdHasBeenSet = true;
54 m_requestId = std::forward<RequestIdT>(value);
55 }
56 template <typename RequestIdT = Aws::String>
57 PutIndexPolicyResult& WithRequestId(RequestIdT&& value) {
58 SetRequestId(std::forward<RequestIdT>(value));
59 return *this;
60 }
62 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
63
64 private:
65 IndexPolicy m_indexPolicy;
66
67 Aws::String m_requestId;
68 Aws::Http::HttpResponseCode m_HttpResponseCode;
69 bool m_indexPolicyHasBeenSet = false;
70 bool m_requestIdHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace CloudWatchLogs
75} // namespace Aws
AWS_CLOUDWATCHLOGS_API PutIndexPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDWATCHLOGS_API PutIndexPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutIndexPolicyResult & WithRequestId(RequestIdT &&value)
PutIndexPolicyResult & WithIndexPolicy(IndexPolicyT &&value)
AWS_CLOUDWATCHLOGS_API PutIndexPolicyResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue