AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
DurationParameterConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eks/EKS_EXPORTS.h>
9#include <aws/eks/model/DurationConstraints.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EKS {
21namespace Model {
22
30 public:
31 AWS_EKS_API DurationParameterConfig() = default;
35
37
40 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
41 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
42 template <typename DefaultValueT = Aws::String>
43 void SetDefaultValue(DefaultValueT&& value) {
44 m_defaultValueHasBeenSet = true;
45 m_defaultValue = std::forward<DefaultValueT>(value);
46 }
47 template <typename DefaultValueT = Aws::String>
48 DurationParameterConfig& WithDefaultValue(DefaultValueT&& value) {
49 SetDefaultValue(std::forward<DefaultValueT>(value));
50 return *this;
51 }
53
55
58 inline const DurationConstraints& GetConstraints() const { return m_constraints; }
59 inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; }
60 template <typename ConstraintsT = DurationConstraints>
61 void SetConstraints(ConstraintsT&& value) {
62 m_constraintsHasBeenSet = true;
63 m_constraints = std::forward<ConstraintsT>(value);
64 }
65 template <typename ConstraintsT = DurationConstraints>
67 SetConstraints(std::forward<ConstraintsT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_defaultValue;
73
74 DurationConstraints m_constraints;
75 bool m_defaultValueHasBeenSet = false;
76 bool m_constraintsHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EKS
81} // namespace Aws
DurationParameterConfig & WithDefaultValue(DefaultValueT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EKS_API DurationParameterConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const DurationConstraints & GetConstraints() const
AWS_EKS_API DurationParameterConfig()=default
AWS_EKS_API DurationParameterConfig(Aws::Utils::Json::JsonView jsonValue)
DurationParameterConfig & WithConstraints(ConstraintsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue