AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AggregateConfiguration.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FSx
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_FSX_API AggregateConfiguration() = default;
40
41
43
56 inline const Aws::Vector<Aws::String>& GetAggregates() const { return m_aggregates; }
57 inline bool AggregatesHasBeenSet() const { return m_aggregatesHasBeenSet; }
58 template<typename AggregatesT = Aws::Vector<Aws::String>>
59 void SetAggregates(AggregatesT&& value) { m_aggregatesHasBeenSet = true; m_aggregates = std::forward<AggregatesT>(value); }
60 template<typename AggregatesT = Aws::Vector<Aws::String>>
61 AggregateConfiguration& WithAggregates(AggregatesT&& value) { SetAggregates(std::forward<AggregatesT>(value)); return *this;}
62 template<typename AggregatesT = Aws::String>
63 AggregateConfiguration& AddAggregates(AggregatesT&& value) { m_aggregatesHasBeenSet = true; m_aggregates.emplace_back(std::forward<AggregatesT>(value)); return *this; }
65
67
71 inline int GetTotalConstituents() const { return m_totalConstituents; }
72 inline bool TotalConstituentsHasBeenSet() const { return m_totalConstituentsHasBeenSet; }
73 inline void SetTotalConstituents(int value) { m_totalConstituentsHasBeenSet = true; m_totalConstituents = value; }
74 inline AggregateConfiguration& WithTotalConstituents(int value) { SetTotalConstituents(value); return *this;}
76 private:
77
78 Aws::Vector<Aws::String> m_aggregates;
79 bool m_aggregatesHasBeenSet = false;
80
81 int m_totalConstituents{0};
82 bool m_totalConstituentsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace FSx
87} // namespace Aws
AWS_FSX_API AggregateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregateConfiguration & WithTotalConstituents(int value)
AggregateConfiguration & AddAggregates(AggregatesT &&value)
const Aws::Vector< Aws::String > & GetAggregates() const
AWS_FSX_API AggregateConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
AggregateConfiguration & WithAggregates(AggregatesT &&value)
AWS_FSX_API AggregateConfiguration()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue