AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DestinationConfig.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/model/OnSuccess.h>
9#include <aws/lambda/model/OnFailure.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 Lambda
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LAMBDA_API DestinationConfig();
39 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const OnSuccess& GetOnSuccess() const{ return m_onSuccess; }
47 inline bool OnSuccessHasBeenSet() const { return m_onSuccessHasBeenSet; }
48 inline void SetOnSuccess(const OnSuccess& value) { m_onSuccessHasBeenSet = true; m_onSuccess = value; }
49 inline void SetOnSuccess(OnSuccess&& value) { m_onSuccessHasBeenSet = true; m_onSuccess = std::move(value); }
50 inline DestinationConfig& WithOnSuccess(const OnSuccess& value) { SetOnSuccess(value); return *this;}
51 inline DestinationConfig& WithOnSuccess(OnSuccess&& value) { SetOnSuccess(std::move(value)); return *this;}
53
55
58 inline const OnFailure& GetOnFailure() const{ return m_onFailure; }
59 inline bool OnFailureHasBeenSet() const { return m_onFailureHasBeenSet; }
60 inline void SetOnFailure(const OnFailure& value) { m_onFailureHasBeenSet = true; m_onFailure = value; }
61 inline void SetOnFailure(OnFailure&& value) { m_onFailureHasBeenSet = true; m_onFailure = std::move(value); }
62 inline DestinationConfig& WithOnFailure(const OnFailure& value) { SetOnFailure(value); return *this;}
63 inline DestinationConfig& WithOnFailure(OnFailure&& value) { SetOnFailure(std::move(value)); return *this;}
65 private:
66
67 OnSuccess m_onSuccess;
68 bool m_onSuccessHasBeenSet = false;
69
70 OnFailure m_onFailure;
71 bool m_onFailureHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Lambda
76} // namespace Aws
void SetOnFailure(const OnFailure &value)
DestinationConfig & WithOnSuccess(OnSuccess &&value)
const OnFailure & GetOnFailure() const
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
DestinationConfig & WithOnSuccess(const OnSuccess &value)
void SetOnSuccess(const OnSuccess &value)
const OnSuccess & GetOnSuccess() const
DestinationConfig & WithOnFailure(const OnFailure &value)
AWS_LAMBDA_API DestinationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API DestinationConfig(Aws::Utils::Json::JsonView jsonValue)
DestinationConfig & WithOnFailure(OnFailure &&value)
Aws::Utils::Json::JsonValue JsonValue