AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceMetrics.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/datasync/model/P95Metrics.h>
10#include <aws/datasync/model/Capacity.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/datasync/model/DiscoveryResourceType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DataSync
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_DATASYNC_API ResourceMetrics();
41 AWS_DATASYNC_API ResourceMetrics(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
52 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
53 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
54 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
55 inline ResourceMetrics& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
56 inline ResourceMetrics& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
58
60
64 inline const P95Metrics& GetP95Metrics() const{ return m_p95Metrics; }
65 inline bool P95MetricsHasBeenSet() const { return m_p95MetricsHasBeenSet; }
66 inline void SetP95Metrics(const P95Metrics& value) { m_p95MetricsHasBeenSet = true; m_p95Metrics = value; }
67 inline void SetP95Metrics(P95Metrics&& value) { m_p95MetricsHasBeenSet = true; m_p95Metrics = std::move(value); }
68 inline ResourceMetrics& WithP95Metrics(const P95Metrics& value) { SetP95Metrics(value); return *this;}
69 inline ResourceMetrics& WithP95Metrics(P95Metrics&& value) { SetP95Metrics(std::move(value)); return *this;}
71
73
76 inline const Capacity& GetCapacity() const{ return m_capacity; }
77 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
78 inline void SetCapacity(const Capacity& value) { m_capacityHasBeenSet = true; m_capacity = value; }
79 inline void SetCapacity(Capacity&& value) { m_capacityHasBeenSet = true; m_capacity = std::move(value); }
80 inline ResourceMetrics& WithCapacity(const Capacity& value) { SetCapacity(value); return *this;}
81 inline ResourceMetrics& WithCapacity(Capacity&& value) { SetCapacity(std::move(value)); return *this;}
83
85
89 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
90 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
91 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
92 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
93 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
94 inline ResourceMetrics& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
95 inline ResourceMetrics& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
96 inline ResourceMetrics& WithResourceId(const char* value) { SetResourceId(value); return *this;}
98
100
103 inline const DiscoveryResourceType& GetResourceType() const{ return m_resourceType; }
104 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
105 inline void SetResourceType(const DiscoveryResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
106 inline void SetResourceType(DiscoveryResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
107 inline ResourceMetrics& WithResourceType(const DiscoveryResourceType& value) { SetResourceType(value); return *this;}
108 inline ResourceMetrics& WithResourceType(DiscoveryResourceType&& value) { SetResourceType(std::move(value)); return *this;}
110 private:
111
112 Aws::Utils::DateTime m_timestamp;
113 bool m_timestampHasBeenSet = false;
114
115 P95Metrics m_p95Metrics;
116 bool m_p95MetricsHasBeenSet = false;
117
118 Capacity m_capacity;
119 bool m_capacityHasBeenSet = false;
120
121 Aws::String m_resourceId;
122 bool m_resourceIdHasBeenSet = false;
123
124 DiscoveryResourceType m_resourceType;
125 bool m_resourceTypeHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace DataSync
130} // namespace Aws
const Aws::Utils::DateTime & GetTimestamp() const
ResourceMetrics & WithP95Metrics(P95Metrics &&value)
const Capacity & GetCapacity() const
ResourceMetrics & WithResourceId(Aws::String &&value)
void SetResourceType(const DiscoveryResourceType &value)
ResourceMetrics & WithTimestamp(const Aws::Utils::DateTime &value)
ResourceMetrics & WithCapacity(Capacity &&value)
void SetResourceId(const char *value)
void SetResourceId(const Aws::String &value)
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetResourceId() const
AWS_DATASYNC_API ResourceMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceType(DiscoveryResourceType &&value)
void SetCapacity(const Capacity &value)
void SetP95Metrics(const P95Metrics &value)
void SetTimestamp(Aws::Utils::DateTime &&value)
ResourceMetrics & WithResourceId(const char *value)
const P95Metrics & GetP95Metrics() const
void SetP95Metrics(P95Metrics &&value)
ResourceMetrics & WithP95Metrics(const P95Metrics &value)
ResourceMetrics & WithTimestamp(Aws::Utils::DateTime &&value)
void SetResourceId(Aws::String &&value)
ResourceMetrics & WithResourceType(const DiscoveryResourceType &value)
void SetTimestamp(const Aws::Utils::DateTime &value)
ResourceMetrics & WithResourceType(DiscoveryResourceType &&value)
const DiscoveryResourceType & GetResourceType() const
ResourceMetrics & WithCapacity(const Capacity &value)
AWS_DATASYNC_API ResourceMetrics(Aws::Utils::Json::JsonView jsonValue)
ResourceMetrics & WithResourceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue