7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/model/TimeUnit.h>
21namespace ElasticsearchService
50 inline long long GetValue()
const{
return m_value; }
52 inline void SetValue(
long long value) { m_valueHasBeenSet =
true; m_value = value; }
65 inline void SetUnit(
const TimeUnit& value) { m_unitHasBeenSet =
true; m_unit = value; }
66 inline void SetUnit(
TimeUnit&& value) { m_unitHasBeenSet =
true; m_unit = std::move(value); }
73 bool m_valueHasBeenSet =
false;
76 bool m_unitHasBeenSet =
false;
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API Duration()
const TimeUnit & GetUnit() const
bool UnitHasBeenSet() const
void SetValue(long long value)
AWS_ELASTICSEARCHSERVICE_API Duration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(const TimeUnit &value)
AWS_ELASTICSEARCHSERVICE_API Duration(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(TimeUnit &&value)
Duration & WithUnit(const TimeUnit &value)
bool ValueHasBeenSet() const
long long GetValue() const
Duration & WithValue(long long value)
Duration & WithUnit(TimeUnit &&value)
Aws::Utils::Json::JsonValue JsonValue