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/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-incidents/model/ResourceType.h>
10#include <aws/core/utils/DateTime.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 SSMIncidents
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SSMINCIDENTS_API ConflictException();
38 AWS_SSMINCIDENTS_API ConflictException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSMINCIDENTS_API ConflictException& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSMINCIDENTS_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::String& GetResourceIdentifier() const{ return m_resourceIdentifier; }
60 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
61 inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; }
62 inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); }
63 inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); }
64 inline ConflictException& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;}
65 inline ConflictException& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;}
66 inline ConflictException& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;}
68
70
73 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
74 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
75 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
76 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
77 inline ConflictException& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
78 inline ConflictException& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetRetryAfter() const{ return m_retryAfter; }
86 inline bool RetryAfterHasBeenSet() const { return m_retryAfterHasBeenSet; }
87 inline void SetRetryAfter(const Aws::Utils::DateTime& value) { m_retryAfterHasBeenSet = true; m_retryAfter = value; }
88 inline void SetRetryAfter(Aws::Utils::DateTime&& value) { m_retryAfterHasBeenSet = true; m_retryAfter = std::move(value); }
89 inline ConflictException& WithRetryAfter(const Aws::Utils::DateTime& value) { SetRetryAfter(value); return *this;}
90 inline ConflictException& WithRetryAfter(Aws::Utils::DateTime&& value) { SetRetryAfter(std::move(value)); return *this;}
92 private:
93
94 Aws::String m_message;
95 bool m_messageHasBeenSet = false;
96
97 Aws::String m_resourceIdentifier;
98 bool m_resourceIdentifierHasBeenSet = false;
99
100 ResourceType m_resourceType;
101 bool m_resourceTypeHasBeenSet = false;
102
103 Aws::Utils::DateTime m_retryAfter;
104 bool m_retryAfterHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace SSMIncidents
109} // namespace Aws
ConflictException & WithResourceIdentifier(const char *value)
void SetRetryAfter(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetRetryAfter() const
const ResourceType & GetResourceType() const
ConflictException & WithMessage(Aws::String &&value)
ConflictException & WithRetryAfter(Aws::Utils::DateTime &&value)
ConflictException & WithRetryAfter(const Aws::Utils::DateTime &value)
void SetRetryAfter(Aws::Utils::DateTime &&value)
void SetResourceIdentifier(const Aws::String &value)
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceType(const ResourceType &value)
ConflictException & WithMessage(const char *value)
AWS_SSMINCIDENTS_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSMINCIDENTS_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
ConflictException & WithResourceType(ResourceType &&value)
ConflictException & WithResourceIdentifier(const Aws::String &value)
ConflictException & WithResourceIdentifier(Aws::String &&value)
ConflictException & WithMessage(const Aws::String &value)
ConflictException & WithResourceType(const ResourceType &value)
void SetMessage(const Aws::String &value)
const Aws::String & GetResourceIdentifier() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue