AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const TrafficType& GetTrafficType() const{ return m_trafficType; }
49 inline bool TrafficTypeHasBeenSet() const { return m_trafficTypeHasBeenSet; }
50 inline void SetTrafficType(const TrafficType& value) { m_trafficTypeHasBeenSet = true; m_trafficType = value; }
51 inline void SetTrafficType(TrafficType&& value) { m_trafficTypeHasBeenSet = true; m_trafficType = std::move(value); }
52 inline TrafficPattern& WithTrafficType(const TrafficType& value) { SetTrafficType(value); return *this;}
53 inline TrafficPattern& WithTrafficType(TrafficType&& value) { SetTrafficType(std::move(value)); return *this;}
55
57
60 inline const Aws::Vector<Phase>& GetPhases() const{ return m_phases; }
61 inline bool PhasesHasBeenSet() const { return m_phasesHasBeenSet; }
62 inline void SetPhases(const Aws::Vector<Phase>& value) { m_phasesHasBeenSet = true; m_phases = value; }
63 inline void SetPhases(Aws::Vector<Phase>&& value) { m_phasesHasBeenSet = true; m_phases = std::move(value); }
64 inline TrafficPattern& WithPhases(const Aws::Vector<Phase>& value) { SetPhases(value); return *this;}
65 inline TrafficPattern& WithPhases(Aws::Vector<Phase>&& value) { SetPhases(std::move(value)); return *this;}
66 inline TrafficPattern& AddPhases(const Phase& value) { m_phasesHasBeenSet = true; m_phases.push_back(value); return *this; }
67 inline TrafficPattern& AddPhases(Phase&& value) { m_phasesHasBeenSet = true; m_phases.push_back(std::move(value)); return *this; }
69
71
74 inline const Stairs& GetStairs() const{ return m_stairs; }
75 inline bool StairsHasBeenSet() const { return m_stairsHasBeenSet; }
76 inline void SetStairs(const Stairs& value) { m_stairsHasBeenSet = true; m_stairs = value; }
77 inline void SetStairs(Stairs&& value) { m_stairsHasBeenSet = true; m_stairs = std::move(value); }
78 inline TrafficPattern& WithStairs(const Stairs& value) { SetStairs(value); return *this;}
79 inline TrafficPattern& WithStairs(Stairs&& value) { SetStairs(std::move(value)); return *this;}
81 private:
82
83 TrafficType m_trafficType;
84 bool m_trafficTypeHasBeenSet = false;
85
86 Aws::Vector<Phase> m_phases;
87 bool m_phasesHasBeenSet = false;
88
89 Stairs m_stairs;
90 bool m_stairsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace SageMaker
95} // namespace Aws
TrafficPattern & AddPhases(const Phase &value)
void SetStairs(const Stairs &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API TrafficPattern(Aws::Utils::Json::JsonView jsonValue)
TrafficPattern & WithPhases(const Aws::Vector< Phase > &value)
const Aws::Vector< Phase > & GetPhases() const
AWS_SAGEMAKER_API TrafficPattern & operator=(Aws::Utils::Json::JsonView jsonValue)
TrafficPattern & WithTrafficType(TrafficType &&value)
void SetPhases(const Aws::Vector< Phase > &value)
void SetPhases(Aws::Vector< Phase > &&value)
const TrafficType & GetTrafficType() const
void SetTrafficType(TrafficType &&value)
TrafficPattern & WithPhases(Aws::Vector< Phase > &&value)
TrafficPattern & WithStairs(const Stairs &value)
TrafficPattern & WithTrafficType(const TrafficType &value)
void SetTrafficType(const TrafficType &value)
TrafficPattern & AddPhases(Phase &&value)
TrafficPattern & WithStairs(Stairs &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue