AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricSource.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/MetricSourceProvider.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 ComputeOptimizer
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_COMPUTEOPTIMIZER_API MetricSource();
37 AWS_COMPUTEOPTIMIZER_API MetricSource(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPUTEOPTIMIZER_API MetricSource& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const MetricSourceProvider& GetProvider() const{ return m_provider; }
47 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
48 inline void SetProvider(const MetricSourceProvider& value) { m_providerHasBeenSet = true; m_provider = value; }
49 inline void SetProvider(MetricSourceProvider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); }
50 inline MetricSource& WithProvider(const MetricSourceProvider& value) { SetProvider(value); return *this;}
51 inline MetricSource& WithProvider(MetricSourceProvider&& value) { SetProvider(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetProviderArn() const{ return m_providerArn; }
59 inline bool ProviderArnHasBeenSet() const { return m_providerArnHasBeenSet; }
60 inline void SetProviderArn(const Aws::String& value) { m_providerArnHasBeenSet = true; m_providerArn = value; }
61 inline void SetProviderArn(Aws::String&& value) { m_providerArnHasBeenSet = true; m_providerArn = std::move(value); }
62 inline void SetProviderArn(const char* value) { m_providerArnHasBeenSet = true; m_providerArn.assign(value); }
63 inline MetricSource& WithProviderArn(const Aws::String& value) { SetProviderArn(value); return *this;}
64 inline MetricSource& WithProviderArn(Aws::String&& value) { SetProviderArn(std::move(value)); return *this;}
65 inline MetricSource& WithProviderArn(const char* value) { SetProviderArn(value); return *this;}
67 private:
68
69 MetricSourceProvider m_provider;
70 bool m_providerHasBeenSet = false;
71
72 Aws::String m_providerArn;
73 bool m_providerArnHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ComputeOptimizer
78} // namespace Aws
MetricSource & WithProviderArn(const char *value)
AWS_COMPUTEOPTIMIZER_API MetricSource()
void SetProvider(const MetricSourceProvider &value)
AWS_COMPUTEOPTIMIZER_API MetricSource & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricSource & WithProvider(MetricSourceProvider &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProvider(MetricSourceProvider &&value)
MetricSource & WithProvider(const MetricSourceProvider &value)
void SetProviderArn(Aws::String &&value)
void SetProviderArn(const Aws::String &value)
const Aws::String & GetProviderArn() const
const MetricSourceProvider & GetProvider() const
AWS_COMPUTEOPTIMIZER_API MetricSource(Aws::Utils::Json::JsonView jsonValue)
MetricSource & WithProviderArn(Aws::String &&value)
MetricSource & WithProviderArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue