AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
EbsVolume.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/compute-optimizer-automation/model/EbsVolumeConfiguration.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace ComputeOptimizerAutomation {
20namespace Model {
21
28class EbsVolume {
29 public:
30 AWS_COMPUTEOPTIMIZERAUTOMATION_API EbsVolume() = default;
31 AWS_COMPUTEOPTIMIZERAUTOMATION_API EbsVolume(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_COMPUTEOPTIMIZERAUTOMATION_API EbsVolume& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPUTEOPTIMIZERAUTOMATION_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
40 inline const EbsVolumeConfiguration& GetConfiguration() const { return m_configuration; }
41 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
42 template <typename ConfigurationT = EbsVolumeConfiguration>
43 void SetConfiguration(ConfigurationT&& value) {
44 m_configurationHasBeenSet = true;
45 m_configuration = std::forward<ConfigurationT>(value);
46 }
47 template <typename ConfigurationT = EbsVolumeConfiguration>
48 EbsVolume& WithConfiguration(ConfigurationT&& value) {
49 SetConfiguration(std::forward<ConfigurationT>(value));
50 return *this;
51 }
53 private:
54 EbsVolumeConfiguration m_configuration;
55 bool m_configurationHasBeenSet = false;
56};
57
58} // namespace Model
59} // namespace ComputeOptimizerAutomation
60} // namespace Aws
const EbsVolumeConfiguration & GetConfiguration() const
Definition EbsVolume.h:40
AWS_COMPUTEOPTIMIZERAUTOMATION_API EbsVolume()=default
AWS_COMPUTEOPTIMIZERAUTOMATION_API EbsVolume(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetConfiguration(ConfigurationT &&value)
Definition EbsVolume.h:43
EbsVolume & WithConfiguration(ConfigurationT &&value)
Definition EbsVolume.h:48
AWS_COMPUTEOPTIMIZERAUTOMATION_API EbsVolume & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZERAUTOMATION_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const