AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ActionCallDetail.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Assurance {
20namespace Model {
21
29 public:
30 AWS_ASSURANCE_API ActionCallDetail() = default;
31 AWS_ASSURANCE_API ActionCallDetail(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_ASSURANCE_API ActionCallDetail& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
40 inline const Aws::String& GetService() const { return m_service; }
41 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
42 template <typename ServiceT = Aws::String>
43 void SetService(ServiceT&& value) {
44 m_serviceHasBeenSet = true;
45 m_service = std::forward<ServiceT>(value);
46 }
47 template <typename ServiceT = Aws::String>
48 ActionCallDetail& WithService(ServiceT&& value) {
49 SetService(std::forward<ServiceT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetApi() const { return m_api; }
59 inline bool ApiHasBeenSet() const { return m_apiHasBeenSet; }
60 template <typename ApiT = Aws::String>
61 void SetApi(ApiT&& value) {
62 m_apiHasBeenSet = true;
63 m_api = std::forward<ApiT>(value);
64 }
65 template <typename ApiT = Aws::String>
66 ActionCallDetail& WithApi(ApiT&& value) {
67 SetApi(std::forward<ApiT>(value));
68 return *this;
69 }
71
73
76 inline int64_t GetSuccessCount() const { return m_successCount; }
77 inline bool SuccessCountHasBeenSet() const { return m_successCountHasBeenSet; }
78 inline void SetSuccessCount(int64_t value) {
79 m_successCountHasBeenSet = true;
80 m_successCount = value;
81 }
82 inline ActionCallDetail& WithSuccessCount(int64_t value) {
83 SetSuccessCount(value);
84 return *this;
85 }
87
89
92 inline int64_t GetFailureCount() const { return m_failureCount; }
93 inline bool FailureCountHasBeenSet() const { return m_failureCountHasBeenSet; }
94 inline void SetFailureCount(int64_t value) {
95 m_failureCountHasBeenSet = true;
96 m_failureCount = value;
97 }
98 inline ActionCallDetail& WithFailureCount(int64_t value) {
99 SetFailureCount(value);
100 return *this;
101 }
103 private:
104 Aws::String m_service;
105
106 Aws::String m_api;
107
108 int64_t m_successCount{0};
109
110 int64_t m_failureCount{0};
111 bool m_serviceHasBeenSet = false;
112 bool m_apiHasBeenSet = false;
113 bool m_successCountHasBeenSet = false;
114 bool m_failureCountHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Assurance
119} // namespace Aws
ActionCallDetail & WithFailureCount(int64_t value)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_ASSURANCE_API ActionCallDetail()=default
ActionCallDetail & WithApi(ApiT &&value)
const Aws::String & GetService() const
AWS_ASSURANCE_API ActionCallDetail(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ActionCallDetail & WithSuccessCount(int64_t value)
ActionCallDetail & WithService(ServiceT &&value)
AWS_ASSURANCE_API ActionCallDetail & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String