AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/panorama/Panorama_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/panorama/model/ConflictExceptionErrorArgument.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Panorama
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_PANORAMA_API ConflictException() = default;
37 AWS_PANORAMA_API ConflictException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<ConflictExceptionErrorArgument>& GetErrorArguments() const { return m_errorArguments; }
47 inline bool ErrorArgumentsHasBeenSet() const { return m_errorArgumentsHasBeenSet; }
48 template<typename ErrorArgumentsT = Aws::Vector<ConflictExceptionErrorArgument>>
49 void SetErrorArguments(ErrorArgumentsT&& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments = std::forward<ErrorArgumentsT>(value); }
50 template<typename ErrorArgumentsT = Aws::Vector<ConflictExceptionErrorArgument>>
51 ConflictException& WithErrorArguments(ErrorArgumentsT&& value) { SetErrorArguments(std::forward<ErrorArgumentsT>(value)); return *this;}
52 template<typename ErrorArgumentsT = ConflictExceptionErrorArgument>
53 ConflictException& AddErrorArguments(ErrorArgumentsT&& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments.emplace_back(std::forward<ErrorArgumentsT>(value)); return *this; }
55
57
60 inline const Aws::String& GetErrorId() const { return m_errorId; }
61 inline bool ErrorIdHasBeenSet() const { return m_errorIdHasBeenSet; }
62 template<typename ErrorIdT = Aws::String>
63 void SetErrorId(ErrorIdT&& value) { m_errorIdHasBeenSet = true; m_errorId = std::forward<ErrorIdT>(value); }
64 template<typename ErrorIdT = Aws::String>
65 ConflictException& WithErrorId(ErrorIdT&& value) { SetErrorId(std::forward<ErrorIdT>(value)); return *this;}
67
69
70 inline const Aws::String& GetMessage() const { return m_message; }
71 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
72 template<typename MessageT = Aws::String>
73 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
74 template<typename MessageT = Aws::String>
75 ConflictException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
77
79
82 inline const Aws::String& GetResourceId() const { return m_resourceId; }
83 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
84 template<typename ResourceIdT = Aws::String>
85 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
86 template<typename ResourceIdT = Aws::String>
87 ConflictException& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
89
91
94 inline const Aws::String& GetResourceType() const { return m_resourceType; }
95 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
96 template<typename ResourceTypeT = Aws::String>
97 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
98 template<typename ResourceTypeT = Aws::String>
99 ConflictException& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
101 private:
102
104 bool m_errorArgumentsHasBeenSet = false;
105
106 Aws::String m_errorId;
107 bool m_errorIdHasBeenSet = false;
108
109 Aws::String m_message;
110 bool m_messageHasBeenSet = false;
111
112 Aws::String m_resourceId;
113 bool m_resourceIdHasBeenSet = false;
114
115 Aws::String m_resourceType;
116 bool m_resourceTypeHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace Panorama
121} // namespace Aws
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetResourceType() const
const Aws::String & GetMessage() const
ConflictException & WithErrorArguments(ErrorArgumentsT &&value)
void SetErrorArguments(ErrorArgumentsT &&value)
ConflictException & WithErrorId(ErrorIdT &&value)
ConflictException & AddErrorArguments(ErrorArgumentsT &&value)
AWS_PANORAMA_API ConflictException()=default
AWS_PANORAMA_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ConflictExceptionErrorArgument > & GetErrorArguments() const
ConflictException & WithResourceId(ResourceIdT &&value)
ConflictException & WithResourceType(ResourceTypeT &&value)
void SetResourceType(ResourceTypeT &&value)
const Aws::String & GetErrorId() const
const Aws::String & GetResourceId() const
ConflictException & WithMessage(MessageT &&value)
AWS_PANORAMA_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue