AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
OnFailure.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/Lambda_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lambda {
20namespace Model {
21
29class OnFailure {
30 public:
31 AWS_LAMBDA_API OnFailure() = default;
32 AWS_LAMBDA_API OnFailure(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
66 inline const Aws::String& GetDestination() const { return m_destination; }
67 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
68 template <typename DestinationT = Aws::String>
69 void SetDestination(DestinationT&& value) {
70 m_destinationHasBeenSet = true;
71 m_destination = std::forward<DestinationT>(value);
72 }
73 template <typename DestinationT = Aws::String>
74 OnFailure& WithDestination(DestinationT&& value) {
75 SetDestination(std::forward<DestinationT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_destination;
81 bool m_destinationHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Lambda
86} // namespace Aws
void SetDestination(DestinationT &&value)
Definition OnFailure.h:69
AWS_LAMBDA_API OnFailure & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAMBDA_API OnFailure(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API OnFailure()=default
bool DestinationHasBeenSet() const
Definition OnFailure.h:67
const Aws::String & GetDestination() const
Definition OnFailure.h:66
OnFailure & WithDestination(DestinationT &&value)
Definition OnFailure.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue