AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ClusterInformation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/ClusterDetails.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
30 public:
31 AWS_INSPECTOR2_API ClusterInformation() = default;
32 AWS_INSPECTOR2_API ClusterInformation(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
41 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
42 template <typename ClusterArnT = Aws::String>
43 void SetClusterArn(ClusterArnT&& value) {
44 m_clusterArnHasBeenSet = true;
45 m_clusterArn = std::forward<ClusterArnT>(value);
46 }
47 template <typename ClusterArnT = Aws::String>
48 ClusterInformation& WithClusterArn(ClusterArnT&& value) {
49 SetClusterArn(std::forward<ClusterArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<ClusterDetails>& GetClusterDetails() const { return m_clusterDetails; }
59 inline bool ClusterDetailsHasBeenSet() const { return m_clusterDetailsHasBeenSet; }
60 template <typename ClusterDetailsT = Aws::Vector<ClusterDetails>>
61 void SetClusterDetails(ClusterDetailsT&& value) {
62 m_clusterDetailsHasBeenSet = true;
63 m_clusterDetails = std::forward<ClusterDetailsT>(value);
64 }
65 template <typename ClusterDetailsT = Aws::Vector<ClusterDetails>>
66 ClusterInformation& WithClusterDetails(ClusterDetailsT&& value) {
67 SetClusterDetails(std::forward<ClusterDetailsT>(value));
68 return *this;
69 }
70 template <typename ClusterDetailsT = ClusterDetails>
71 ClusterInformation& AddClusterDetails(ClusterDetailsT&& value) {
72 m_clusterDetailsHasBeenSet = true;
73 m_clusterDetails.emplace_back(std::forward<ClusterDetailsT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_clusterArn;
79
80 Aws::Vector<ClusterDetails> m_clusterDetails;
81 bool m_clusterArnHasBeenSet = false;
82 bool m_clusterDetailsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Inspector2
87} // namespace Aws
ClusterInformation & AddClusterDetails(ClusterDetailsT &&value)
ClusterInformation & WithClusterArn(ClusterArnT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ClusterDetails > & GetClusterDetails() const
AWS_INSPECTOR2_API ClusterInformation()=default
AWS_INSPECTOR2_API ClusterInformation & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterInformation & WithClusterDetails(ClusterDetailsT &&value)
AWS_INSPECTOR2_API ClusterInformation(Aws::Utils::Json::JsonView jsonValue)
void SetClusterDetails(ClusterDetailsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue