AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ResourceNotFoundException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/monitoring/CloudWatch_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudWatch {
20namespace Model {
21
28 public:
29 AWS_CLOUDWATCH_API ResourceNotFoundException() = default;
30 AWS_CLOUDWATCH_API ResourceNotFoundException(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_CLOUDWATCH_API ResourceNotFoundException& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
36 inline const Aws::String& GetResourceType() const { return m_resourceType; }
37 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
38 template <typename ResourceTypeT = Aws::String>
39 void SetResourceType(ResourceTypeT&& value) {
40 m_resourceTypeHasBeenSet = true;
41 m_resourceType = std::forward<ResourceTypeT>(value);
42 }
43 template <typename ResourceTypeT = Aws::String>
45 SetResourceType(std::forward<ResourceTypeT>(value));
46 return *this;
47 }
49
51
52 inline const Aws::String& GetResourceId() const { return m_resourceId; }
53 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
54 template <typename ResourceIdT = Aws::String>
55 void SetResourceId(ResourceIdT&& value) {
56 m_resourceIdHasBeenSet = true;
57 m_resourceId = std::forward<ResourceIdT>(value);
58 }
59 template <typename ResourceIdT = Aws::String>
61 SetResourceId(std::forward<ResourceIdT>(value));
62 return *this;
63 }
65 private:
66 Aws::String m_resourceType;
67
68 Aws::String m_resourceId;
69 bool m_resourceTypeHasBeenSet = false;
70 bool m_resourceIdHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace CloudWatch
75} // namespace Aws
ResourceNotFoundException & WithResourceType(ResourceTypeT &&value)
ResourceNotFoundException & WithResourceId(ResourceIdT &&value)
AWS_CLOUDWATCH_API ResourceNotFoundException()=default
AWS_CLOUDWATCH_API ResourceNotFoundException & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCH_API ResourceNotFoundException(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String