AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RecommendationSource.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/RecommendationSourceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ComputeOptimizer {
21namespace Model {
22
30 public:
31 AWS_COMPUTEOPTIMIZER_API RecommendationSource() = default;
32 AWS_COMPUTEOPTIMIZER_API RecommendationSource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPUTEOPTIMIZER_API RecommendationSource& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRecommendationSourceArn() const { return m_recommendationSourceArn; }
41 inline bool RecommendationSourceArnHasBeenSet() const { return m_recommendationSourceArnHasBeenSet; }
42 template <typename RecommendationSourceArnT = Aws::String>
43 void SetRecommendationSourceArn(RecommendationSourceArnT&& value) {
44 m_recommendationSourceArnHasBeenSet = true;
45 m_recommendationSourceArn = std::forward<RecommendationSourceArnT>(value);
46 }
47 template <typename RecommendationSourceArnT = Aws::String>
48 RecommendationSource& WithRecommendationSourceArn(RecommendationSourceArnT&& value) {
49 SetRecommendationSourceArn(std::forward<RecommendationSourceArnT>(value));
50 return *this;
51 }
53
55
58 inline RecommendationSourceType GetRecommendationSourceType() const { return m_recommendationSourceType; }
59 inline bool RecommendationSourceTypeHasBeenSet() const { return m_recommendationSourceTypeHasBeenSet; }
61 m_recommendationSourceTypeHasBeenSet = true;
62 m_recommendationSourceType = value;
63 }
66 return *this;
67 }
69 private:
70 Aws::String m_recommendationSourceArn;
71
73 bool m_recommendationSourceArnHasBeenSet = false;
74 bool m_recommendationSourceTypeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace ComputeOptimizer
79} // namespace Aws
AWS_COMPUTEOPTIMIZER_API RecommendationSource()=default
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZER_API RecommendationSource(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API RecommendationSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRecommendationSourceType(RecommendationSourceType value)
RecommendationSource & WithRecommendationSourceArn(RecommendationSourceArnT &&value)
RecommendationSource & WithRecommendationSourceType(RecommendationSourceType value)
void SetRecommendationSourceArn(RecommendationSourceArnT &&value)
RecommendationSourceType GetRecommendationSourceType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue