AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/verifiedpermissions/model/ResourceConflict.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 VerifiedPermissions
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_VERIFIEDPERMISSIONS_API ConflictException();
38 AWS_VERIFIEDPERMISSIONS_API ConflictException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_VERIFIEDPERMISSIONS_API ConflictException& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::String& GetMessage() const{ return m_message; }
46 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
47 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
48 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
49 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
50 inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
51 inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
52 inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;}
54
56
59 inline const Aws::Vector<ResourceConflict>& GetResources() const{ return m_resources; }
60 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
61 inline void SetResources(const Aws::Vector<ResourceConflict>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
62 inline void SetResources(Aws::Vector<ResourceConflict>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
63 inline ConflictException& WithResources(const Aws::Vector<ResourceConflict>& value) { SetResources(value); return *this;}
64 inline ConflictException& WithResources(Aws::Vector<ResourceConflict>&& value) { SetResources(std::move(value)); return *this;}
65 inline ConflictException& AddResources(const ResourceConflict& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
66 inline ConflictException& AddResources(ResourceConflict&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
68 private:
69
70 Aws::String m_message;
71 bool m_messageHasBeenSet = false;
72
74 bool m_resourcesHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace VerifiedPermissions
79} // namespace Aws
ConflictException & WithMessage(const char *value)
void SetResources(const Aws::Vector< ResourceConflict > &value)
AWS_VERIFIEDPERMISSIONS_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
void SetResources(Aws::Vector< ResourceConflict > &&value)
ConflictException & AddResources(ResourceConflict &&value)
AWS_VERIFIEDPERMISSIONS_API ConflictException()
ConflictException & AddResources(const ResourceConflict &value)
ConflictException & WithMessage(const Aws::String &value)
ConflictException & WithResources(const Aws::Vector< ResourceConflict > &value)
ConflictException & WithMessage(Aws::String &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ResourceConflict > & GetResources() const
AWS_VERIFIEDPERMISSIONS_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
ConflictException & WithResources(Aws::Vector< ResourceConflict > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue