AWS SDK for C++

AWS SDK for C++ Version 1.11.830

Loading...
Searching...
No Matches
OpportunityQuality.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace PartnerCentralSelling {
20namespace Model {
21
28 public:
29 AWS_PARTNERCENTRALSELLING_API OpportunityQuality() = default;
30 AWS_PARTNERCENTRALSELLING_API OpportunityQuality(Aws::Utils::Json::JsonView jsonValue);
31 AWS_PARTNERCENTRALSELLING_API OpportunityQuality& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline int GetScore() const { return m_score; }
40 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
41 inline void SetScore(int value) {
42 m_scoreHasBeenSet = true;
43 m_score = value;
44 }
45 inline OpportunityQuality& WithScore(int value) {
46 SetScore(value);
47 return *this;
48 }
50
52
56 inline const Aws::String& GetTrend() const { return m_trend; }
57 inline bool TrendHasBeenSet() const { return m_trendHasBeenSet; }
58 template <typename TrendT = Aws::String>
59 void SetTrend(TrendT&& value) {
60 m_trendHasBeenSet = true;
61 m_trend = std::forward<TrendT>(value);
62 }
63 template <typename TrendT = Aws::String>
64 OpportunityQuality& WithTrend(TrendT&& value) {
65 SetTrend(std::forward<TrendT>(value));
66 return *this;
67 }
69 private:
70 int m_score{0};
71
72 Aws::String m_trend;
73 bool m_scoreHasBeenSet = false;
74 bool m_trendHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace PartnerCentralSelling
79} // namespace Aws
AWS_PARTNERCENTRALSELLING_API OpportunityQuality()=default
AWS_PARTNERCENTRALSELLING_API OpportunityQuality(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALSELLING_API OpportunityQuality & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue