AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TrafficPattern.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/TrafficType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/model/Stairs.h>
11#include <aws/sagemaker/model/Phase.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_SAGEMAKER_API TrafficPattern() = default;
38 AWS_SAGEMAKER_API TrafficPattern(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline TrafficType GetTrafficType() const { return m_trafficType; }
49 inline bool TrafficTypeHasBeenSet() const { return m_trafficTypeHasBeenSet; }
50 inline void SetTrafficType(TrafficType value) { m_trafficTypeHasBeenSet = true; m_trafficType = value; }
51 inline TrafficPattern& WithTrafficType(TrafficType value) { SetTrafficType(value); return *this;}
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) { m_phasesHasBeenSet = true; m_phases = std::forward<PhasesT>(value); }
62 template<typename PhasesT = Aws::Vector<Phase>>
63 TrafficPattern& WithPhases(PhasesT&& value) { SetPhases(std::forward<PhasesT>(value)); return *this;}
64 template<typename PhasesT = Phase>
65 TrafficPattern& AddPhases(PhasesT&& value) { m_phasesHasBeenSet = true; m_phases.emplace_back(std::forward<PhasesT>(value)); return *this; }
67
69
72 inline const Stairs& GetStairs() const { return m_stairs; }
73 inline bool StairsHasBeenSet() const { return m_stairsHasBeenSet; }
74 template<typename StairsT = Stairs>
75 void SetStairs(StairsT&& value) { m_stairsHasBeenSet = true; m_stairs = std::forward<StairsT>(value); }
76 template<typename StairsT = Stairs>
77 TrafficPattern& WithStairs(StairsT&& value) { SetStairs(std::forward<StairsT>(value)); return *this;}
79 private:
80
81 TrafficType m_trafficType{TrafficType::NOT_SET};
82 bool m_trafficTypeHasBeenSet = false;
83
84 Aws::Vector<Phase> m_phases;
85 bool m_phasesHasBeenSet = false;
86
87 Stairs m_stairs;
88 bool m_stairsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace SageMaker
93} // 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