AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KmsInvalidStateException.h
1
6#pragma once
7#include <aws/states/SFN_EXPORTS.h>
8#include <aws/states/model/KmsKeyState.h>
9#include <aws/core/utils/memory/stl/AWSString.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 SFN
23{
24namespace Model
25{
26
34 {
35 public:
40
41
43
48 inline const KmsKeyState& GetKmsKeyState() const{ return m_kmsKeyState; }
49 inline bool KmsKeyStateHasBeenSet() const { return m_kmsKeyStateHasBeenSet; }
50 inline void SetKmsKeyState(const KmsKeyState& value) { m_kmsKeyStateHasBeenSet = true; m_kmsKeyState = value; }
51 inline void SetKmsKeyState(KmsKeyState&& value) { m_kmsKeyStateHasBeenSet = true; m_kmsKeyState = std::move(value); }
52 inline KmsInvalidStateException& WithKmsKeyState(const KmsKeyState& value) { SetKmsKeyState(value); return *this;}
53 inline KmsInvalidStateException& WithKmsKeyState(KmsKeyState&& value) { SetKmsKeyState(std::move(value)); return *this;}
55
57
58 inline const Aws::String& GetMessage() const{ return m_message; }
59 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
60 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
61 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
62 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
63 inline KmsInvalidStateException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
64 inline KmsInvalidStateException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
65 inline KmsInvalidStateException& WithMessage(const char* value) { SetMessage(value); return *this;}
67 private:
68
69 KmsKeyState m_kmsKeyState;
70 bool m_kmsKeyStateHasBeenSet = false;
71
72 Aws::String m_message;
73 bool m_messageHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace SFN
78} // namespace Aws
KmsInvalidStateException & WithMessage(const char *value)
AWS_SFN_API Aws::Utils::Json::JsonValue Jsonize() const
KmsInvalidStateException & WithMessage(const Aws::String &value)
KmsInvalidStateException & WithMessage(Aws::String &&value)
AWS_SFN_API KmsInvalidStateException & operator=(Aws::Utils::Json::JsonView jsonValue)
KmsInvalidStateException & WithKmsKeyState(KmsKeyState &&value)
AWS_SFN_API KmsInvalidStateException(Aws::Utils::Json::JsonView jsonValue)
KmsInvalidStateException & WithKmsKeyState(const KmsKeyState &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue