AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ResourceCallDetail.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/ResourceAccessType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Assurance {
21namespace Model {
22
30 public:
31 AWS_ASSURANCE_API ResourceCallDetail() = default;
32 AWS_ASSURANCE_API ResourceCallDetail(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_ASSURANCE_API ResourceCallDetail& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
42 inline const Aws::String& GetResourceType() const { return m_resourceType; }
43 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
44 template <typename ResourceTypeT = Aws::String>
45 void SetResourceType(ResourceTypeT&& value) {
46 m_resourceTypeHasBeenSet = true;
47 m_resourceType = std::forward<ResourceTypeT>(value);
48 }
49 template <typename ResourceTypeT = Aws::String>
50 ResourceCallDetail& WithResourceType(ResourceTypeT&& value) {
51 SetResourceType(std::forward<ResourceTypeT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
68 ResourceCallDetail& WithArn(ArnT&& value) {
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
81 inline ResourceAccessType GetAccessType() const { return m_accessType; }
82 inline bool AccessTypeHasBeenSet() const { return m_accessTypeHasBeenSet; }
83 inline void SetAccessType(ResourceAccessType value) {
84 m_accessTypeHasBeenSet = true;
85 m_accessType = value;
86 }
88 SetAccessType(value);
89 return *this;
90 }
92
94
97 inline int64_t GetSuccessCount() const { return m_successCount; }
98 inline bool SuccessCountHasBeenSet() const { return m_successCountHasBeenSet; }
99 inline void SetSuccessCount(int64_t value) {
100 m_successCountHasBeenSet = true;
101 m_successCount = value;
102 }
103 inline ResourceCallDetail& WithSuccessCount(int64_t value) {
104 SetSuccessCount(value);
105 return *this;
106 }
108
110
113 inline int64_t GetFailureCount() const { return m_failureCount; }
114 inline bool FailureCountHasBeenSet() const { return m_failureCountHasBeenSet; }
115 inline void SetFailureCount(int64_t value) {
116 m_failureCountHasBeenSet = true;
117 m_failureCount = value;
118 }
119 inline ResourceCallDetail& WithFailureCount(int64_t value) {
120 SetFailureCount(value);
121 return *this;
122 }
124 private:
125 Aws::String m_resourceType;
126
127 Aws::String m_arn;
128
130
131 int64_t m_successCount{0};
132
133 int64_t m_failureCount{0};
134 bool m_resourceTypeHasBeenSet = false;
135 bool m_arnHasBeenSet = false;
136 bool m_accessTypeHasBeenSet = false;
137 bool m_successCountHasBeenSet = false;
138 bool m_failureCountHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace Assurance
143} // namespace Aws
AWS_ASSURANCE_API ResourceCallDetail(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetResourceType() const
ResourceCallDetail & WithSuccessCount(int64_t value)
void SetResourceType(ResourceTypeT &&value)
void SetAccessType(ResourceAccessType value)
AWS_ASSURANCE_API ResourceCallDetail()=default
ResourceCallDetail & WithArn(ArnT &&value)
ResourceCallDetail & WithResourceType(ResourceTypeT &&value)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ResourceCallDetail & WithAccessType(ResourceAccessType value)
AWS_ASSURANCE_API ResourceCallDetail & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ResourceCallDetail & WithFailureCount(int64_t value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String