AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoTFleetWise {
20namespace Model {
21
30 public:
31 AWS_IOTFLEETWISE_API ConflictException() = default;
32 AWS_IOTFLEETWISE_API ConflictException(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTFLEETWISE_API ConflictException& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetMessage() const { return m_message; }
39 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
40 template <typename MessageT = Aws::String>
41 void SetMessage(MessageT&& value) {
42 m_messageHasBeenSet = true;
43 m_message = std::forward<MessageT>(value);
44 }
45 template <typename MessageT = Aws::String>
46 ConflictException& WithMessage(MessageT&& value) {
47 SetMessage(std::forward<MessageT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetResource() const { return m_resource; }
57 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
58 template <typename ResourceT = Aws::String>
59 void SetResource(ResourceT&& value) {
60 m_resourceHasBeenSet = true;
61 m_resource = std::forward<ResourceT>(value);
62 }
63 template <typename ResourceT = Aws::String>
64 ConflictException& WithResource(ResourceT&& value) {
65 SetResource(std::forward<ResourceT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetResourceType() const { return m_resourceType; }
75 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
76 template <typename ResourceTypeT = Aws::String>
77 void SetResourceType(ResourceTypeT&& value) {
78 m_resourceTypeHasBeenSet = true;
79 m_resourceType = std::forward<ResourceTypeT>(value);
80 }
81 template <typename ResourceTypeT = Aws::String>
82 ConflictException& WithResourceType(ResourceTypeT&& value) {
83 SetResourceType(std::forward<ResourceTypeT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_message;
89
90 Aws::String m_resource;
91
92 Aws::String m_resourceType;
93 bool m_messageHasBeenSet = false;
94 bool m_resourceHasBeenSet = false;
95 bool m_resourceTypeHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace IoTFleetWise
100} // namespace Aws
AWS_IOTFLEETWISE_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
ConflictException & WithMessage(MessageT &&value)
ConflictException & WithResourceType(ResourceTypeT &&value)
AWS_IOTFLEETWISE_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTFLEETWISE_API ConflictException()=default
ConflictException & WithResource(ResourceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue