AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RetryCriteria.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/RetryableFailureType.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IOT_API RetryCriteria();
39
40
42
45 inline const RetryableFailureType& GetFailureType() const{ return m_failureType; }
46 inline bool FailureTypeHasBeenSet() const { return m_failureTypeHasBeenSet; }
47 inline void SetFailureType(const RetryableFailureType& value) { m_failureTypeHasBeenSet = true; m_failureType = value; }
48 inline void SetFailureType(RetryableFailureType&& value) { m_failureTypeHasBeenSet = true; m_failureType = std::move(value); }
49 inline RetryCriteria& WithFailureType(const RetryableFailureType& value) { SetFailureType(value); return *this;}
50 inline RetryCriteria& WithFailureType(RetryableFailureType&& value) { SetFailureType(std::move(value)); return *this;}
52
54
57 inline int GetNumberOfRetries() const{ return m_numberOfRetries; }
58 inline bool NumberOfRetriesHasBeenSet() const { return m_numberOfRetriesHasBeenSet; }
59 inline void SetNumberOfRetries(int value) { m_numberOfRetriesHasBeenSet = true; m_numberOfRetries = value; }
60 inline RetryCriteria& WithNumberOfRetries(int value) { SetNumberOfRetries(value); return *this;}
62 private:
63
64 RetryableFailureType m_failureType;
65 bool m_failureTypeHasBeenSet = false;
66
67 int m_numberOfRetries;
68 bool m_numberOfRetriesHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace IoT
73} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const RetryableFailureType & GetFailureType() const
AWS_IOT_API RetryCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API RetryCriteria(Aws::Utils::Json::JsonView jsonValue)
RetryCriteria & WithFailureType(const RetryableFailureType &value)
void SetFailureType(const RetryableFailureType &value)
RetryCriteria & WithFailureType(RetryableFailureType &&value)
RetryCriteria & WithNumberOfRetries(int value)
void SetFailureType(RetryableFailureType &&value)
Aws::Utils::Json::JsonValue JsonValue