AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvalidRequestException.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DLM
23{
24namespace Model
25{
26
34 {
35 public:
40
41
43
44 inline const Aws::String& GetMessage() const{ return m_message; }
45 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
47 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
48 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
49 inline InvalidRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
50 inline InvalidRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
51 inline InvalidRequestException& WithMessage(const char* value) { SetMessage(value); return *this;}
53
55
56 inline const Aws::String& GetCode() const{ return m_code; }
57 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
58 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
59 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
60 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
61 inline InvalidRequestException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
62 inline InvalidRequestException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
63 inline InvalidRequestException& WithCode(const char* value) { SetCode(value); return *this;}
65
67
70 inline const Aws::Vector<Aws::String>& GetRequiredParameters() const{ return m_requiredParameters; }
71 inline bool RequiredParametersHasBeenSet() const { return m_requiredParametersHasBeenSet; }
72 inline void SetRequiredParameters(const Aws::Vector<Aws::String>& value) { m_requiredParametersHasBeenSet = true; m_requiredParameters = value; }
73 inline void SetRequiredParameters(Aws::Vector<Aws::String>&& value) { m_requiredParametersHasBeenSet = true; m_requiredParameters = std::move(value); }
76 inline InvalidRequestException& AddRequiredParameters(const Aws::String& value) { m_requiredParametersHasBeenSet = true; m_requiredParameters.push_back(value); return *this; }
77 inline InvalidRequestException& AddRequiredParameters(Aws::String&& value) { m_requiredParametersHasBeenSet = true; m_requiredParameters.push_back(std::move(value)); return *this; }
78 inline InvalidRequestException& AddRequiredParameters(const char* value) { m_requiredParametersHasBeenSet = true; m_requiredParameters.push_back(value); return *this; }
80
82
85 inline const Aws::Vector<Aws::String>& GetMutuallyExclusiveParameters() const{ return m_mutuallyExclusiveParameters; }
86 inline bool MutuallyExclusiveParametersHasBeenSet() const { return m_mutuallyExclusiveParametersHasBeenSet; }
87 inline void SetMutuallyExclusiveParameters(const Aws::Vector<Aws::String>& value) { m_mutuallyExclusiveParametersHasBeenSet = true; m_mutuallyExclusiveParameters = value; }
88 inline void SetMutuallyExclusiveParameters(Aws::Vector<Aws::String>&& value) { m_mutuallyExclusiveParametersHasBeenSet = true; m_mutuallyExclusiveParameters = std::move(value); }
91 inline InvalidRequestException& AddMutuallyExclusiveParameters(const Aws::String& value) { m_mutuallyExclusiveParametersHasBeenSet = true; m_mutuallyExclusiveParameters.push_back(value); return *this; }
92 inline InvalidRequestException& AddMutuallyExclusiveParameters(Aws::String&& value) { m_mutuallyExclusiveParametersHasBeenSet = true; m_mutuallyExclusiveParameters.push_back(std::move(value)); return *this; }
93 inline InvalidRequestException& AddMutuallyExclusiveParameters(const char* value) { m_mutuallyExclusiveParametersHasBeenSet = true; m_mutuallyExclusiveParameters.push_back(value); return *this; }
95 private:
96
97 Aws::String m_message;
98 bool m_messageHasBeenSet = false;
99
100 Aws::String m_code;
101 bool m_codeHasBeenSet = false;
102
103 Aws::Vector<Aws::String> m_requiredParameters;
104 bool m_requiredParametersHasBeenSet = false;
105
106 Aws::Vector<Aws::String> m_mutuallyExclusiveParameters;
107 bool m_mutuallyExclusiveParametersHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace DLM
112} // namespace Aws
InvalidRequestException & WithMessage(const char *value)
InvalidRequestException & AddRequiredParameters(const char *value)
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
InvalidRequestException & AddRequiredParameters(const Aws::String &value)
InvalidRequestException & WithRequiredParameters(const Aws::Vector< Aws::String > &value)
InvalidRequestException & WithMutuallyExclusiveParameters(Aws::Vector< Aws::String > &&value)
AWS_DLM_API InvalidRequestException & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRequiredParameters(Aws::Vector< Aws::String > &&value)
void SetRequiredParameters(const Aws::Vector< Aws::String > &value)
InvalidRequestException & WithRequiredParameters(Aws::Vector< Aws::String > &&value)
InvalidRequestException & WithMutuallyExclusiveParameters(const Aws::Vector< Aws::String > &value)
AWS_DLM_API InvalidRequestException(Aws::Utils::Json::JsonView jsonValue)
void SetMutuallyExclusiveParameters(Aws::Vector< Aws::String > &&value)
InvalidRequestException & WithCode(Aws::String &&value)
void SetMutuallyExclusiveParameters(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetMutuallyExclusiveParameters() const
InvalidRequestException & WithCode(const char *value)
InvalidRequestException & AddMutuallyExclusiveParameters(Aws::String &&value)
InvalidRequestException & WithMessage(Aws::String &&value)
InvalidRequestException & AddMutuallyExclusiveParameters(const Aws::String &value)
InvalidRequestException & WithCode(const Aws::String &value)
InvalidRequestException & AddMutuallyExclusiveParameters(const char *value)
InvalidRequestException & WithMessage(const Aws::String &value)
const Aws::Vector< Aws::String > & GetRequiredParameters() const
InvalidRequestException & AddRequiredParameters(Aws::String &&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