7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/TimeUnit.h>
21namespace OpenSearchService
46 inline long long GetValue()
const{
return m_value; }
48 inline void SetValue(
long long value) { m_valueHasBeenSet =
true; m_value = value; }
58 inline void SetUnit(
const TimeUnit& value) { m_unitHasBeenSet =
true; m_unit = value; }
59 inline void SetUnit(
TimeUnit&& value) { m_unitHasBeenSet =
true; m_unit = std::move(value); }
66 bool m_valueHasBeenSet =
false;
69 bool m_unitHasBeenSet =
false;
const TimeUnit & GetUnit() const
long long GetValue() const
AWS_OPENSEARCHSERVICE_API Duration()
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Duration & WithUnit(const TimeUnit &value)
Duration & WithUnit(TimeUnit &&value)
AWS_OPENSEARCHSERVICE_API Duration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(TimeUnit &&value)
bool UnitHasBeenSet() const
void SetValue(long long value)
bool ValueHasBeenSet() const
Duration & WithValue(long long value)
void SetUnit(const TimeUnit &value)
AWS_OPENSEARCHSERVICE_API Duration(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue