AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
EnvironmentDeploymentDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/EnvironmentError.h>
12#include <aws/datazone/model/OverallDeploymentStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataZone {
24namespace Model {
25
32 public:
33 AWS_DATAZONE_API EnvironmentDeploymentDetails() = default;
36 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 return m_environmentFailureReasons;
44 }
45 inline bool EnvironmentFailureReasonsHasBeenSet() const { return m_environmentFailureReasonsHasBeenSet; }
46 template <typename EnvironmentFailureReasonsT = Aws::Map<Aws::String, Aws::Vector<EnvironmentError>>>
47 void SetEnvironmentFailureReasons(EnvironmentFailureReasonsT&& value) {
48 m_environmentFailureReasonsHasBeenSet = true;
49 m_environmentFailureReasons = std::forward<EnvironmentFailureReasonsT>(value);
50 }
51 template <typename EnvironmentFailureReasonsT = Aws::Map<Aws::String, Aws::Vector<EnvironmentError>>>
52 EnvironmentDeploymentDetails& WithEnvironmentFailureReasons(EnvironmentFailureReasonsT&& value) {
53 SetEnvironmentFailureReasons(std::forward<EnvironmentFailureReasonsT>(value));
54 return *this;
55 }
56 template <typename EnvironmentFailureReasonsKeyT = Aws::String, typename EnvironmentFailureReasonsValueT = Aws::Vector<EnvironmentError>>
57 EnvironmentDeploymentDetails& AddEnvironmentFailureReasons(EnvironmentFailureReasonsKeyT&& key, EnvironmentFailureReasonsValueT&& value) {
58 m_environmentFailureReasonsHasBeenSet = true;
59 m_environmentFailureReasons.emplace(std::forward<EnvironmentFailureReasonsKeyT>(key),
60 std::forward<EnvironmentFailureReasonsValueT>(value));
61 return *this;
62 }
64
66
69 inline OverallDeploymentStatus GetOverallDeploymentStatus() const { return m_overallDeploymentStatus; }
70 inline bool OverallDeploymentStatusHasBeenSet() const { return m_overallDeploymentStatusHasBeenSet; }
72 m_overallDeploymentStatusHasBeenSet = true;
73 m_overallDeploymentStatus = value;
74 }
77 return *this;
78 }
80 private:
81 Aws::Map<Aws::String, Aws::Vector<EnvironmentError>> m_environmentFailureReasons;
82 bool m_environmentFailureReasonsHasBeenSet = false;
83
85 bool m_overallDeploymentStatusHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace DataZone
90} // namespace Aws
EnvironmentDeploymentDetails & AddEnvironmentFailureReasons(EnvironmentFailureReasonsKeyT &&key, EnvironmentFailureReasonsValueT &&value)
const Aws::Map< Aws::String, Aws::Vector< EnvironmentError > > & GetEnvironmentFailureReasons() const
AWS_DATAZONE_API EnvironmentDeploymentDetails()=default
void SetEnvironmentFailureReasons(EnvironmentFailureReasonsT &&value)
EnvironmentDeploymentDetails & WithOverallDeploymentStatus(OverallDeploymentStatus value)
AWS_DATAZONE_API EnvironmentDeploymentDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API EnvironmentDeploymentDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
EnvironmentDeploymentDetails & WithEnvironmentFailureReasons(EnvironmentFailureReasonsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue