AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateWhatIfAnalysisRequest.h
1
6#pragma once
7#include <aws/forecast/ForecastService_EXPORTS.h>
8#include <aws/forecast/ForecastServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/forecast/model/TimeSeriesSelector.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/forecast/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ForecastService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_FORECASTSERVICE_API CreateWhatIfAnalysisRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateWhatIfAnalysis"; }
34
35 AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override;
36
37 AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetWhatIfAnalysisName() const { return m_whatIfAnalysisName; }
45 inline bool WhatIfAnalysisNameHasBeenSet() const { return m_whatIfAnalysisNameHasBeenSet; }
46 template<typename WhatIfAnalysisNameT = Aws::String>
47 void SetWhatIfAnalysisName(WhatIfAnalysisNameT&& value) { m_whatIfAnalysisNameHasBeenSet = true; m_whatIfAnalysisName = std::forward<WhatIfAnalysisNameT>(value); }
48 template<typename WhatIfAnalysisNameT = Aws::String>
49 CreateWhatIfAnalysisRequest& WithWhatIfAnalysisName(WhatIfAnalysisNameT&& value) { SetWhatIfAnalysisName(std::forward<WhatIfAnalysisNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetForecastArn() const { return m_forecastArn; }
57 inline bool ForecastArnHasBeenSet() const { return m_forecastArnHasBeenSet; }
58 template<typename ForecastArnT = Aws::String>
59 void SetForecastArn(ForecastArnT&& value) { m_forecastArnHasBeenSet = true; m_forecastArn = std::forward<ForecastArnT>(value); }
60 template<typename ForecastArnT = Aws::String>
61 CreateWhatIfAnalysisRequest& WithForecastArn(ForecastArnT&& value) { SetForecastArn(std::forward<ForecastArnT>(value)); return *this;}
63
65
73 inline const TimeSeriesSelector& GetTimeSeriesSelector() const { return m_timeSeriesSelector; }
74 inline bool TimeSeriesSelectorHasBeenSet() const { return m_timeSeriesSelectorHasBeenSet; }
75 template<typename TimeSeriesSelectorT = TimeSeriesSelector>
76 void SetTimeSeriesSelector(TimeSeriesSelectorT&& value) { m_timeSeriesSelectorHasBeenSet = true; m_timeSeriesSelector = std::forward<TimeSeriesSelectorT>(value); }
77 template<typename TimeSeriesSelectorT = TimeSeriesSelector>
78 CreateWhatIfAnalysisRequest& WithTimeSeriesSelector(TimeSeriesSelectorT&& value) { SetTimeSeriesSelector(std::forward<TimeSeriesSelectorT>(value)); return *this;}
80
82
87 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 template<typename TagsT = Aws::Vector<Tag>>
90 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
91 template<typename TagsT = Aws::Vector<Tag>>
92 CreateWhatIfAnalysisRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
93 template<typename TagsT = Tag>
94 CreateWhatIfAnalysisRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
96 private:
97
98 Aws::String m_whatIfAnalysisName;
99 bool m_whatIfAnalysisNameHasBeenSet = false;
100
101 Aws::String m_forecastArn;
102 bool m_forecastArnHasBeenSet = false;
103
104 TimeSeriesSelector m_timeSeriesSelector;
105 bool m_timeSeriesSelectorHasBeenSet = false;
106
107 Aws::Vector<Tag> m_tags;
108 bool m_tagsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace ForecastService
113} // namespace Aws
CreateWhatIfAnalysisRequest & WithForecastArn(ForecastArnT &&value)
AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override
AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateWhatIfAnalysisRequest & WithTimeSeriesSelector(TimeSeriesSelectorT &&value)
AWS_FORECASTSERVICE_API CreateWhatIfAnalysisRequest()=default
CreateWhatIfAnalysisRequest & WithWhatIfAnalysisName(WhatIfAnalysisNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector