AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Plan.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm-contacts/model/Stage.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSMContacts
24{
25namespace Model
26{
27
34 class Plan
35 {
36 public:
37 AWS_SSMCONTACTS_API Plan() = default;
38 AWS_SSMCONTACTS_API Plan(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSMCONTACTS_API Plan& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<Stage>& GetStages() const { return m_stages; }
49 inline bool StagesHasBeenSet() const { return m_stagesHasBeenSet; }
50 template<typename StagesT = Aws::Vector<Stage>>
51 void SetStages(StagesT&& value) { m_stagesHasBeenSet = true; m_stages = std::forward<StagesT>(value); }
52 template<typename StagesT = Aws::Vector<Stage>>
53 Plan& WithStages(StagesT&& value) { SetStages(std::forward<StagesT>(value)); return *this;}
54 template<typename StagesT = Stage>
55 Plan& AddStages(StagesT&& value) { m_stagesHasBeenSet = true; m_stages.emplace_back(std::forward<StagesT>(value)); return *this; }
57
59
63 inline const Aws::Vector<Aws::String>& GetRotationIds() const { return m_rotationIds; }
64 inline bool RotationIdsHasBeenSet() const { return m_rotationIdsHasBeenSet; }
65 template<typename RotationIdsT = Aws::Vector<Aws::String>>
66 void SetRotationIds(RotationIdsT&& value) { m_rotationIdsHasBeenSet = true; m_rotationIds = std::forward<RotationIdsT>(value); }
67 template<typename RotationIdsT = Aws::Vector<Aws::String>>
68 Plan& WithRotationIds(RotationIdsT&& value) { SetRotationIds(std::forward<RotationIdsT>(value)); return *this;}
69 template<typename RotationIdsT = Aws::String>
70 Plan& AddRotationIds(RotationIdsT&& value) { m_rotationIdsHasBeenSet = true; m_rotationIds.emplace_back(std::forward<RotationIdsT>(value)); return *this; }
72 private:
73
74 Aws::Vector<Stage> m_stages;
75 bool m_stagesHasBeenSet = false;
76
77 Aws::Vector<Aws::String> m_rotationIds;
78 bool m_rotationIdsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace SSMContacts
83} // namespace Aws
AWS_SSMCONTACTS_API Plan & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Stage > & GetStages() const
Definition Plan.h:48
bool RotationIdsHasBeenSet() const
Definition Plan.h:64
Plan & WithRotationIds(RotationIdsT &&value)
Definition Plan.h:68
Plan & AddRotationIds(RotationIdsT &&value)
Definition Plan.h:70
AWS_SSMCONTACTS_API Plan()=default
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
Plan & WithStages(StagesT &&value)
Definition Plan.h:53
Plan & AddStages(StagesT &&value)
Definition Plan.h:55
void SetRotationIds(RotationIdsT &&value)
Definition Plan.h:66
bool StagesHasBeenSet() const
Definition Plan.h:49
void SetStages(StagesT &&value)
Definition Plan.h:51
AWS_SSMCONTACTS_API Plan(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetRotationIds() const
Definition Plan.h:63
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue