AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm-contacts/model/DependentEntity.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 SSMContacts
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SSMCONTACTS_API ConflictException() = default;
38 AWS_SSMCONTACTS_API ConflictException(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSMCONTACTS_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 template<typename MessageT = Aws::String>
48 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
49 template<typename MessageT = Aws::String>
50 ConflictException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
52
54
57 inline const Aws::String& GetResourceId() const { return m_resourceId; }
58 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
59 template<typename ResourceIdT = Aws::String>
60 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
61 template<typename ResourceIdT = Aws::String>
62 ConflictException& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetResourceType() const { return m_resourceType; }
70 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
71 template<typename ResourceTypeT = Aws::String>
72 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
73 template<typename ResourceTypeT = Aws::String>
74 ConflictException& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
76
78
82 inline const Aws::Vector<DependentEntity>& GetDependentEntities() const { return m_dependentEntities; }
83 inline bool DependentEntitiesHasBeenSet() const { return m_dependentEntitiesHasBeenSet; }
84 template<typename DependentEntitiesT = Aws::Vector<DependentEntity>>
85 void SetDependentEntities(DependentEntitiesT&& value) { m_dependentEntitiesHasBeenSet = true; m_dependentEntities = std::forward<DependentEntitiesT>(value); }
86 template<typename DependentEntitiesT = Aws::Vector<DependentEntity>>
87 ConflictException& WithDependentEntities(DependentEntitiesT&& value) { SetDependentEntities(std::forward<DependentEntitiesT>(value)); return *this;}
88 template<typename DependentEntitiesT = DependentEntity>
89 ConflictException& AddDependentEntities(DependentEntitiesT&& value) { m_dependentEntitiesHasBeenSet = true; m_dependentEntities.emplace_back(std::forward<DependentEntitiesT>(value)); return *this; }
91 private:
92
93 Aws::String m_message;
94 bool m_messageHasBeenSet = false;
95
96 Aws::String m_resourceId;
97 bool m_resourceIdHasBeenSet = false;
98
99 Aws::String m_resourceType;
100 bool m_resourceTypeHasBeenSet = false;
101
102 Aws::Vector<DependentEntity> m_dependentEntities;
103 bool m_dependentEntitiesHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace SSMContacts
108} // namespace Aws
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
ConflictException & WithMessage(MessageT &&value)
ConflictException & AddDependentEntities(DependentEntitiesT &&value)
void SetDependentEntities(DependentEntitiesT &&value)
ConflictException & WithResourceType(ResourceTypeT &&value)
AWS_SSMCONTACTS_API ConflictException()=default
const Aws::String & GetResourceType() const
ConflictException & WithResourceId(ResourceIdT &&value)
AWS_SSMCONTACTS_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSMCONTACTS_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
void SetResourceType(ResourceTypeT &&value)
ConflictException & WithDependentEntities(DependentEntitiesT &&value)
const Aws::Vector< DependentEntity > & GetDependentEntities() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue