AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
TrafficPattern.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/Phase.h>
10#include <aws/sagemaker/model/Stairs.h>
11#include <aws/sagemaker/model/TrafficType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
31 public:
32 AWS_SAGEMAKER_API TrafficPattern() = default;
33 AWS_SAGEMAKER_API TrafficPattern(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline TrafficType GetTrafficType() const { return m_trafficType; }
43 inline bool TrafficTypeHasBeenSet() const { return m_trafficTypeHasBeenSet; }
44 inline void SetTrafficType(TrafficType value) {
45 m_trafficTypeHasBeenSet = true;
46 m_trafficType = value;
47 }
49 SetTrafficType(value);
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Phase>& GetPhases() const { return m_phases; }
59 inline bool PhasesHasBeenSet() const { return m_phasesHasBeenSet; }
60 template <typename PhasesT = Aws::Vector<Phase>>
61 void SetPhases(PhasesT&& value) {
62 m_phasesHasBeenSet = true;
63 m_phases = std::forward<PhasesT>(value);
64 }
65 template <typename PhasesT = Aws::Vector<Phase>>
66 TrafficPattern& WithPhases(PhasesT&& value) {
67 SetPhases(std::forward<PhasesT>(value));
68 return *this;
69 }
70 template <typename PhasesT = Phase>
71 TrafficPattern& AddPhases(PhasesT&& value) {
72 m_phasesHasBeenSet = true;
73 m_phases.emplace_back(std::forward<PhasesT>(value));
74 return *this;
75 }
77
79
82 inline const Stairs& GetStairs() const { return m_stairs; }
83 inline bool StairsHasBeenSet() const { return m_stairsHasBeenSet; }
84 template <typename StairsT = Stairs>
85 void SetStairs(StairsT&& value) {
86 m_stairsHasBeenSet = true;
87 m_stairs = std::forward<StairsT>(value);
88 }
89 template <typename StairsT = Stairs>
90 TrafficPattern& WithStairs(StairsT&& value) {
91 SetStairs(std::forward<StairsT>(value));
92 return *this;
93 }
95 private:
96 TrafficType m_trafficType{TrafficType::NOT_SET};
97
98 Aws::Vector<Phase> m_phases;
99
100 Stairs m_stairs;
101 bool m_trafficTypeHasBeenSet = false;
102 bool m_phasesHasBeenSet = false;
103 bool m_stairsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace SageMaker
108} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTrafficType(TrafficType value)
TrafficPattern & AddPhases(PhasesT &&value)
AWS_SAGEMAKER_API TrafficPattern(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Phase > & GetPhases() const
AWS_SAGEMAKER_API TrafficPattern & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API TrafficPattern()=default
TrafficPattern & WithTrafficType(TrafficType value)
TrafficPattern & WithPhases(PhasesT &&value)
TrafficPattern & WithStairs(StairsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue