AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AutomationExecutionPreview.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/model/ImpactType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ssm/model/TargetPreview.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SSM
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SSM_API AutomationExecutionPreview() = default;
43
44
46
61 inline const Aws::Map<ImpactType, int>& GetStepPreviews() const { return m_stepPreviews; }
62 inline bool StepPreviewsHasBeenSet() const { return m_stepPreviewsHasBeenSet; }
63 template<typename StepPreviewsT = Aws::Map<ImpactType, int>>
64 void SetStepPreviews(StepPreviewsT&& value) { m_stepPreviewsHasBeenSet = true; m_stepPreviews = std::forward<StepPreviewsT>(value); }
65 template<typename StepPreviewsT = Aws::Map<ImpactType, int>>
66 AutomationExecutionPreview& WithStepPreviews(StepPreviewsT&& value) { SetStepPreviews(std::forward<StepPreviewsT>(value)); return *this;}
68 m_stepPreviewsHasBeenSet = true; m_stepPreviews.emplace(key, value); return *this;
69 }
71
73
77 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
78 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
79 template<typename RegionsT = Aws::Vector<Aws::String>>
80 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
81 template<typename RegionsT = Aws::Vector<Aws::String>>
82 AutomationExecutionPreview& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
83 template<typename RegionsT = Aws::String>
84 AutomationExecutionPreview& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
86
88
92 inline const Aws::Vector<TargetPreview>& GetTargetPreviews() const { return m_targetPreviews; }
93 inline bool TargetPreviewsHasBeenSet() const { return m_targetPreviewsHasBeenSet; }
94 template<typename TargetPreviewsT = Aws::Vector<TargetPreview>>
95 void SetTargetPreviews(TargetPreviewsT&& value) { m_targetPreviewsHasBeenSet = true; m_targetPreviews = std::forward<TargetPreviewsT>(value); }
96 template<typename TargetPreviewsT = Aws::Vector<TargetPreview>>
97 AutomationExecutionPreview& WithTargetPreviews(TargetPreviewsT&& value) { SetTargetPreviews(std::forward<TargetPreviewsT>(value)); return *this;}
98 template<typename TargetPreviewsT = TargetPreview>
99 AutomationExecutionPreview& AddTargetPreviews(TargetPreviewsT&& value) { m_targetPreviewsHasBeenSet = true; m_targetPreviews.emplace_back(std::forward<TargetPreviewsT>(value)); return *this; }
101
103
107 inline int GetTotalAccounts() const { return m_totalAccounts; }
108 inline bool TotalAccountsHasBeenSet() const { return m_totalAccountsHasBeenSet; }
109 inline void SetTotalAccounts(int value) { m_totalAccountsHasBeenSet = true; m_totalAccounts = value; }
110 inline AutomationExecutionPreview& WithTotalAccounts(int value) { SetTotalAccounts(value); return *this;}
112 private:
113
114 Aws::Map<ImpactType, int> m_stepPreviews;
115 bool m_stepPreviewsHasBeenSet = false;
116
117 Aws::Vector<Aws::String> m_regions;
118 bool m_regionsHasBeenSet = false;
119
120 Aws::Vector<TargetPreview> m_targetPreviews;
121 bool m_targetPreviewsHasBeenSet = false;
122
123 int m_totalAccounts{0};
124 bool m_totalAccountsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace SSM
129} // namespace Aws
AutomationExecutionPreview & AddTargetPreviews(TargetPreviewsT &&value)
AutomationExecutionPreview & WithTotalAccounts(int value)
AutomationExecutionPreview & WithRegions(RegionsT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< TargetPreview > & GetTargetPreviews() const
AWS_SSM_API AutomationExecutionPreview(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< ImpactType, int > & GetStepPreviews() const
AWS_SSM_API AutomationExecutionPreview()=default
AWS_SSM_API AutomationExecutionPreview & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomationExecutionPreview & WithStepPreviews(StepPreviewsT &&value)
const Aws::Vector< Aws::String > & GetRegions() const
AutomationExecutionPreview & AddStepPreviews(ImpactType key, int value)
AutomationExecutionPreview & WithTargetPreviews(TargetPreviewsT &&value)
AutomationExecutionPreview & AddRegions(RegionsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue