AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
OtaTaskExecutionRetryConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
9#include <aws/iot-managed-integrations/model/RetryConfigCriteria.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTManagedIntegrations {
21namespace Model {
22
29 public:
30 AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionRetryConfig() = default;
31 AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionRetryConfig(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionRetryConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<RetryConfigCriteria>& GetRetryConfigCriteria() const { return m_retryConfigCriteria; }
40 inline bool RetryConfigCriteriaHasBeenSet() const { return m_retryConfigCriteriaHasBeenSet; }
41 template <typename RetryConfigCriteriaT = Aws::Vector<RetryConfigCriteria>>
42 void SetRetryConfigCriteria(RetryConfigCriteriaT&& value) {
43 m_retryConfigCriteriaHasBeenSet = true;
44 m_retryConfigCriteria = std::forward<RetryConfigCriteriaT>(value);
45 }
46 template <typename RetryConfigCriteriaT = Aws::Vector<RetryConfigCriteria>>
48 SetRetryConfigCriteria(std::forward<RetryConfigCriteriaT>(value));
49 return *this;
50 }
51 template <typename RetryConfigCriteriaT = RetryConfigCriteria>
52 OtaTaskExecutionRetryConfig& AddRetryConfigCriteria(RetryConfigCriteriaT&& value) {
53 m_retryConfigCriteriaHasBeenSet = true;
54 m_retryConfigCriteria.emplace_back(std::forward<RetryConfigCriteriaT>(value));
55 return *this;
56 }
58 private:
59 Aws::Vector<RetryConfigCriteria> m_retryConfigCriteria;
60 bool m_retryConfigCriteriaHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace IoTManagedIntegrations
65} // namespace Aws
const Aws::Vector< RetryConfigCriteria > & GetRetryConfigCriteria() const
AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionRetryConfig()=default
AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionRetryConfig(Aws::Utils::Json::JsonView jsonValue)
OtaTaskExecutionRetryConfig & AddRetryConfigCriteria(RetryConfigCriteriaT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionRetryConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
OtaTaskExecutionRetryConfig & WithRetryConfigCriteria(RetryConfigCriteriaT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue