AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ClusterInformation.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector2/model/ClusterDetails.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 Inspector2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_INSPECTOR2_API ClusterInformation() = default;
37 AWS_INSPECTOR2_API ClusterInformation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
47 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
48 template<typename ClusterArnT = Aws::String>
49 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
50 template<typename ClusterArnT = Aws::String>
51 ClusterInformation& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
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) { m_clusterDetailsHasBeenSet = true; m_clusterDetails = std::forward<ClusterDetailsT>(value); }
62 template<typename ClusterDetailsT = Aws::Vector<ClusterDetails>>
63 ClusterInformation& WithClusterDetails(ClusterDetailsT&& value) { SetClusterDetails(std::forward<ClusterDetailsT>(value)); return *this;}
64 template<typename ClusterDetailsT = ClusterDetails>
65 ClusterInformation& AddClusterDetails(ClusterDetailsT&& value) { m_clusterDetailsHasBeenSet = true; m_clusterDetails.emplace_back(std::forward<ClusterDetailsT>(value)); return *this; }
67 private:
68
69 Aws::String m_clusterArn;
70 bool m_clusterArnHasBeenSet = false;
71
72 Aws::Vector<ClusterDetails> m_clusterDetails;
73 bool m_clusterDetailsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Inspector2
78} // 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