AWS SDK for C++

AWS SDK for C++ Version 1.11.830

Loading...
Searching...
No Matches
AwsOpportunityInsights.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
10#include <aws/partnercentral-selling/model/AwsProductsSpendInsightsBySource.h>
11#include <aws/partnercentral-selling/model/EngagementScore.h>
12#include <aws/partnercentral-selling/model/OpportunityQuality.h>
13#include <aws/partnercentral-selling/model/Recommendation.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace PartnerCentralSelling {
25namespace Model {
26
35 public:
36 AWS_PARTNERCENTRALSELLING_API AwsOpportunityInsights() = default;
37 AWS_PARTNERCENTRALSELLING_API AwsOpportunityInsights(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PARTNERCENTRALSELLING_API AwsOpportunityInsights& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetNextBestActions() const { return m_nextBestActions; }
47 inline bool NextBestActionsHasBeenSet() const { return m_nextBestActionsHasBeenSet; }
48 template <typename NextBestActionsT = Aws::String>
49 void SetNextBestActions(NextBestActionsT&& value) {
50 m_nextBestActionsHasBeenSet = true;
51 m_nextBestActions = std::forward<NextBestActionsT>(value);
52 }
53 template <typename NextBestActionsT = Aws::String>
54 AwsOpportunityInsights& WithNextBestActions(NextBestActionsT&& value) {
55 SetNextBestActions(std::forward<NextBestActionsT>(value));
56 return *this;
57 }
59
61
66 inline EngagementScore GetEngagementScore() const { return m_engagementScore; }
67 inline bool EngagementScoreHasBeenSet() const { return m_engagementScoreHasBeenSet; }
69 m_engagementScoreHasBeenSet = true;
70 m_engagementScore = value;
71 }
73 SetEngagementScore(value);
74 return *this;
75 }
77
79
83 inline const AwsProductsSpendInsightsBySource& GetAwsProductsSpendInsightsBySource() const { return m_awsProductsSpendInsightsBySource; }
84 inline bool AwsProductsSpendInsightsBySourceHasBeenSet() const { return m_awsProductsSpendInsightsBySourceHasBeenSet; }
85 template <typename AwsProductsSpendInsightsBySourceT = AwsProductsSpendInsightsBySource>
86 void SetAwsProductsSpendInsightsBySource(AwsProductsSpendInsightsBySourceT&& value) {
87 m_awsProductsSpendInsightsBySourceHasBeenSet = true;
88 m_awsProductsSpendInsightsBySource = std::forward<AwsProductsSpendInsightsBySourceT>(value);
89 }
90 template <typename AwsProductsSpendInsightsBySourceT = AwsProductsSpendInsightsBySource>
91 AwsOpportunityInsights& WithAwsProductsSpendInsightsBySource(AwsProductsSpendInsightsBySourceT&& value) {
92 SetAwsProductsSpendInsightsBySource(std::forward<AwsProductsSpendInsightsBySourceT>(value));
93 return *this;
94 }
96
98
101 inline const OpportunityQuality& GetOpportunityQuality() const { return m_opportunityQuality; }
102 inline bool OpportunityQualityHasBeenSet() const { return m_opportunityQualityHasBeenSet; }
103 template <typename OpportunityQualityT = OpportunityQuality>
104 void SetOpportunityQuality(OpportunityQualityT&& value) {
105 m_opportunityQualityHasBeenSet = true;
106 m_opportunityQuality = std::forward<OpportunityQualityT>(value);
107 }
108 template <typename OpportunityQualityT = OpportunityQuality>
109 AwsOpportunityInsights& WithOpportunityQuality(OpportunityQualityT&& value) {
110 SetOpportunityQuality(std::forward<OpportunityQualityT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<Recommendation>& GetRecommendations() const { return m_recommendations; }
120 inline bool RecommendationsHasBeenSet() const { return m_recommendationsHasBeenSet; }
121 template <typename RecommendationsT = Aws::Vector<Recommendation>>
122 void SetRecommendations(RecommendationsT&& value) {
123 m_recommendationsHasBeenSet = true;
124 m_recommendations = std::forward<RecommendationsT>(value);
125 }
126 template <typename RecommendationsT = Aws::Vector<Recommendation>>
127 AwsOpportunityInsights& WithRecommendations(RecommendationsT&& value) {
128 SetRecommendations(std::forward<RecommendationsT>(value));
129 return *this;
130 }
131 template <typename RecommendationsT = Recommendation>
132 AwsOpportunityInsights& AddRecommendations(RecommendationsT&& value) {
133 m_recommendationsHasBeenSet = true;
134 m_recommendations.emplace_back(std::forward<RecommendationsT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_nextBestActions;
140
141 EngagementScore m_engagementScore{EngagementScore::NOT_SET};
142
143 AwsProductsSpendInsightsBySource m_awsProductsSpendInsightsBySource;
144
145 OpportunityQuality m_opportunityQuality;
146
147 Aws::Vector<Recommendation> m_recommendations;
148 bool m_nextBestActionsHasBeenSet = false;
149 bool m_engagementScoreHasBeenSet = false;
150 bool m_awsProductsSpendInsightsBySourceHasBeenSet = false;
151 bool m_opportunityQualityHasBeenSet = false;
152 bool m_recommendationsHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace PartnerCentralSelling
157} // namespace Aws
AwsOpportunityInsights & WithOpportunityQuality(OpportunityQualityT &&value)
AwsOpportunityInsights & WithEngagementScore(EngagementScore value)
AwsOpportunityInsights & WithAwsProductsSpendInsightsBySource(AwsProductsSpendInsightsBySourceT &&value)
AWS_PARTNERCENTRALSELLING_API AwsOpportunityInsights()=default
const Aws::Vector< Recommendation > & GetRecommendations() const
const AwsProductsSpendInsightsBySource & GetAwsProductsSpendInsightsBySource() const
AwsOpportunityInsights & WithNextBestActions(NextBestActionsT &&value)
AWS_PARTNERCENTRALSELLING_API AwsOpportunityInsights & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAwsProductsSpendInsightsBySource(AwsProductsSpendInsightsBySourceT &&value)
AwsOpportunityInsights & AddRecommendations(RecommendationsT &&value)
AwsOpportunityInsights & WithRecommendations(RecommendationsT &&value)
AWS_PARTNERCENTRALSELLING_API AwsOpportunityInsights(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue