AWS SDK for C++  1.9.160
AWS SDK for C++
InvalidKMSResourceException.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Firehose
22 {
23 namespace Model
24 {
25 
37  {
38  public:
43 
44 
45 
46  inline const Aws::String& GetCode() const{ return m_code; }
47 
48 
49  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 
51 
52  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
53 
54 
55  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
56 
57 
58  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
59 
60 
61  inline InvalidKMSResourceException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
62 
63 
64  inline InvalidKMSResourceException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
65 
66 
67  inline InvalidKMSResourceException& WithCode(const char* value) { SetCode(value); return *this;}
68 
69 
70 
71  inline const Aws::String& GetMessage() const{ return m_message; }
72 
73 
74  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
75 
76 
77  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
78 
79 
80  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
81 
82 
83  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
84 
85 
86  inline InvalidKMSResourceException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
87 
88 
89  inline InvalidKMSResourceException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
90 
91 
92  inline InvalidKMSResourceException& WithMessage(const char* value) { SetMessage(value); return *this;}
93 
94  private:
95 
96  Aws::String m_code;
97  bool m_codeHasBeenSet;
98 
99  Aws::String m_message;
100  bool m_messageHasBeenSet;
101  };
102 
103 } // namespace Model
104 } // namespace Firehose
105 } // namespace Aws
Aws::Firehose::Model::InvalidKMSResourceException::operator=
InvalidKMSResourceException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Firehose::Model::InvalidKMSResourceException::SetCode
void SetCode(const char *value)
Definition: InvalidKMSResourceException.h:58
Aws::Firehose::Model::InvalidKMSResourceException::WithCode
InvalidKMSResourceException & WithCode(const char *value)
Definition: InvalidKMSResourceException.h:67
Aws::Firehose::Model::InvalidKMSResourceException::SetMessage
void SetMessage(const Aws::String &value)
Definition: InvalidKMSResourceException.h:77
Aws::Firehose::Model::InvalidKMSResourceException::WithCode
InvalidKMSResourceException & WithCode(Aws::String &&value)
Definition: InvalidKMSResourceException.h:64
Aws::Firehose::Model::InvalidKMSResourceException
Definition: InvalidKMSResourceException.h:37
Aws::Firehose::Model::InvalidKMSResourceException::SetMessage
void SetMessage(Aws::String &&value)
Definition: InvalidKMSResourceException.h:80
Aws::Firehose::Model::InvalidKMSResourceException::WithMessage
InvalidKMSResourceException & WithMessage(const char *value)
Definition: InvalidKMSResourceException.h:92
Aws::Firehose::Model::InvalidKMSResourceException::InvalidKMSResourceException
InvalidKMSResourceException(Aws::Utils::Json::JsonView jsonValue)
Aws::Firehose::Model::InvalidKMSResourceException::WithCode
InvalidKMSResourceException & WithCode(const Aws::String &value)
Definition: InvalidKMSResourceException.h:61
Aws::Firehose::Model::InvalidKMSResourceException::InvalidKMSResourceException
InvalidKMSResourceException()
Aws::Firehose::Model::InvalidKMSResourceException::SetCode
void SetCode(const Aws::String &value)
Definition: InvalidKMSResourceException.h:52
Aws::Firehose::Model::InvalidKMSResourceException::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: InvalidKMSResourceException.h:49
Aws::Firehose::Model::InvalidKMSResourceException::WithMessage
InvalidKMSResourceException & WithMessage(const Aws::String &value)
Definition: InvalidKMSResourceException.h:86
Aws::Firehose::Model::InvalidKMSResourceException::GetMessage
const Aws::String & GetMessage() const
Definition: InvalidKMSResourceException.h:71
AWS_FIREHOSE_API
#define AWS_FIREHOSE_API
Definition: Firehose_EXPORTS.h:28
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Firehose_EXPORTS.h
Aws::Firehose::Model::InvalidKMSResourceException::SetMessage
void SetMessage(const char *value)
Definition: InvalidKMSResourceException.h:83
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Firehose::Model::InvalidKMSResourceException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InvalidKMSResourceException.h:74
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Firehose::Model::InvalidKMSResourceException::WithMessage
InvalidKMSResourceException & WithMessage(Aws::String &&value)
Definition: InvalidKMSResourceException.h:89
Aws::Firehose::Model::InvalidKMSResourceException::GetCode
const Aws::String & GetCode() const
Definition: InvalidKMSResourceException.h:46
Aws::Firehose::Model::InvalidKMSResourceException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Firehose::Model::InvalidKMSResourceException::SetCode
void SetCode(Aws::String &&value)
Definition: InvalidKMSResourceException.h:55