AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EbsVolumeConfiguration.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/cost-optimization-hub/model/StorageConfiguration.h>
9#include <aws/cost-optimization-hub/model/BlockStoragePerformanceConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.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 CostOptimizationHub
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_COSTOPTIMIZATIONHUB_API EbsVolumeConfiguration();
38 AWS_COSTOPTIMIZATIONHUB_API EbsVolumeConfiguration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COSTOPTIMIZATIONHUB_API EbsVolumeConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const StorageConfiguration& GetStorage() const{ return m_storage; }
48 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
49 inline void SetStorage(const StorageConfiguration& value) { m_storageHasBeenSet = true; m_storage = value; }
50 inline void SetStorage(StorageConfiguration&& value) { m_storageHasBeenSet = true; m_storage = std::move(value); }
51 inline EbsVolumeConfiguration& WithStorage(const StorageConfiguration& value) { SetStorage(value); return *this;}
52 inline EbsVolumeConfiguration& WithStorage(StorageConfiguration&& value) { SetStorage(std::move(value)); return *this;}
54
56
59 inline const BlockStoragePerformanceConfiguration& GetPerformance() const{ return m_performance; }
60 inline bool PerformanceHasBeenSet() const { return m_performanceHasBeenSet; }
61 inline void SetPerformance(const BlockStoragePerformanceConfiguration& value) { m_performanceHasBeenSet = true; m_performance = value; }
62 inline void SetPerformance(BlockStoragePerformanceConfiguration&& value) { m_performanceHasBeenSet = true; m_performance = std::move(value); }
66
68
71 inline const Aws::String& GetAttachmentState() const{ return m_attachmentState; }
72 inline bool AttachmentStateHasBeenSet() const { return m_attachmentStateHasBeenSet; }
73 inline void SetAttachmentState(const Aws::String& value) { m_attachmentStateHasBeenSet = true; m_attachmentState = value; }
74 inline void SetAttachmentState(Aws::String&& value) { m_attachmentStateHasBeenSet = true; m_attachmentState = std::move(value); }
75 inline void SetAttachmentState(const char* value) { m_attachmentStateHasBeenSet = true; m_attachmentState.assign(value); }
76 inline EbsVolumeConfiguration& WithAttachmentState(const Aws::String& value) { SetAttachmentState(value); return *this;}
77 inline EbsVolumeConfiguration& WithAttachmentState(Aws::String&& value) { SetAttachmentState(std::move(value)); return *this;}
78 inline EbsVolumeConfiguration& WithAttachmentState(const char* value) { SetAttachmentState(value); return *this;}
80 private:
81
82 StorageConfiguration m_storage;
83 bool m_storageHasBeenSet = false;
84
86 bool m_performanceHasBeenSet = false;
87
88 Aws::String m_attachmentState;
89 bool m_attachmentStateHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace CostOptimizationHub
94} // namespace Aws
void SetPerformance(BlockStoragePerformanceConfiguration &&value)
EbsVolumeConfiguration & WithPerformance(const BlockStoragePerformanceConfiguration &value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
EbsVolumeConfiguration & WithAttachmentState(const char *value)
EbsVolumeConfiguration & WithAttachmentState(Aws::String &&value)
AWS_COSTOPTIMIZATIONHUB_API EbsVolumeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
EbsVolumeConfiguration & WithAttachmentState(const Aws::String &value)
EbsVolumeConfiguration & WithStorage(StorageConfiguration &&value)
void SetPerformance(const BlockStoragePerformanceConfiguration &value)
EbsVolumeConfiguration & WithStorage(const StorageConfiguration &value)
AWS_COSTOPTIMIZATIONHUB_API EbsVolumeConfiguration(Aws::Utils::Json::JsonView jsonValue)
EbsVolumeConfiguration & WithPerformance(BlockStoragePerformanceConfiguration &&value)
const BlockStoragePerformanceConfiguration & GetPerformance() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue