AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStages(const Aws::Vector<Stage>& value) { m_stagesHasBeenSet = true; m_stages = value; }
51 inline void SetStages(Aws::Vector<Stage>&& value) { m_stagesHasBeenSet = true; m_stages = std::move(value); }
52 inline Plan& WithStages(const Aws::Vector<Stage>& value) { SetStages(value); return *this;}
53 inline Plan& WithStages(Aws::Vector<Stage>&& value) { SetStages(std::move(value)); return *this;}
54 inline Plan& AddStages(const Stage& value) { m_stagesHasBeenSet = true; m_stages.push_back(value); return *this; }
55 inline Plan& AddStages(Stage&& value) { m_stagesHasBeenSet = true; m_stages.push_back(std::move(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 inline void SetRotationIds(const Aws::Vector<Aws::String>& value) { m_rotationIdsHasBeenSet = true; m_rotationIds = value; }
66 inline void SetRotationIds(Aws::Vector<Aws::String>&& value) { m_rotationIdsHasBeenSet = true; m_rotationIds = std::move(value); }
67 inline Plan& WithRotationIds(const Aws::Vector<Aws::String>& value) { SetRotationIds(value); return *this;}
68 inline Plan& WithRotationIds(Aws::Vector<Aws::String>&& value) { SetRotationIds(std::move(value)); return *this;}
69 inline Plan& AddRotationIds(const Aws::String& value) { m_rotationIdsHasBeenSet = true; m_rotationIds.push_back(value); return *this; }
70 inline Plan& AddRotationIds(Aws::String&& value) { m_rotationIdsHasBeenSet = true; m_rotationIds.push_back(std::move(value)); return *this; }
71 inline Plan& AddRotationIds(const char* value) { m_rotationIdsHasBeenSet = true; m_rotationIds.push_back(value); return *this; }
73 private:
74
75 Aws::Vector<Stage> m_stages;
76 bool m_stagesHasBeenSet = false;
77
78 Aws::Vector<Aws::String> m_rotationIds;
79 bool m_rotationIdsHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace SSMContacts
84} // namespace Aws
void SetRotationIds(const Aws::Vector< Aws::String > &value)
Definition Plan.h:65
AWS_SSMCONTACTS_API Plan & operator=(Aws::Utils::Json::JsonView jsonValue)
Plan & WithStages(Aws::Vector< Stage > &&value)
Definition Plan.h:53
void SetStages(const Aws::Vector< Stage > &value)
Definition Plan.h:50
const Aws::Vector< Stage > & GetStages() const
Definition Plan.h:48
Plan & AddRotationIds(Aws::String &&value)
Definition Plan.h:70
bool RotationIdsHasBeenSet() const
Definition Plan.h:64
Plan & AddRotationIds(const Aws::String &value)
Definition Plan.h:69
Plan & AddStages(const Stage &value)
Definition Plan.h:54
Plan & AddRotationIds(const char *value)
Definition Plan.h:71
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
Plan & WithRotationIds(const Aws::Vector< Aws::String > &value)
Definition Plan.h:67
Plan & AddStages(Stage &&value)
Definition Plan.h:55
void SetStages(Aws::Vector< Stage > &&value)
Definition Plan.h:51
Plan & WithStages(const Aws::Vector< Stage > &value)
Definition Plan.h:52
bool StagesHasBeenSet() const
Definition Plan.h:49
void SetRotationIds(Aws::Vector< Aws::String > &&value)
Definition Plan.h:66
Plan & WithRotationIds(Aws::Vector< Aws::String > &&value)
Definition Plan.h:68
AWS_SSMCONTACTS_API Plan(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetRotationIds() const
Definition Plan.h:63
AWS_SSMCONTACTS_API Plan()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue