AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetWhatIfAnalysisName(const Aws::String& value) { m_whatIfAnalysisNameHasBeenSet = true; m_whatIfAnalysisName = value; }
47 inline void SetWhatIfAnalysisName(Aws::String&& value) { m_whatIfAnalysisNameHasBeenSet = true; m_whatIfAnalysisName = std::move(value); }
48 inline void SetWhatIfAnalysisName(const char* value) { m_whatIfAnalysisNameHasBeenSet = true; m_whatIfAnalysisName.assign(value); }
50 inline CreateWhatIfAnalysisRequest& WithWhatIfAnalysisName(Aws::String&& value) { SetWhatIfAnalysisName(std::move(value)); return *this;}
51 inline CreateWhatIfAnalysisRequest& WithWhatIfAnalysisName(const char* value) { SetWhatIfAnalysisName(value); return *this;}
53
55
58 inline const Aws::String& GetForecastArn() const{ return m_forecastArn; }
59 inline bool ForecastArnHasBeenSet() const { return m_forecastArnHasBeenSet; }
60 inline void SetForecastArn(const Aws::String& value) { m_forecastArnHasBeenSet = true; m_forecastArn = value; }
61 inline void SetForecastArn(Aws::String&& value) { m_forecastArnHasBeenSet = true; m_forecastArn = std::move(value); }
62 inline void SetForecastArn(const char* value) { m_forecastArnHasBeenSet = true; m_forecastArn.assign(value); }
63 inline CreateWhatIfAnalysisRequest& WithForecastArn(const Aws::String& value) { SetForecastArn(value); return *this;}
64 inline CreateWhatIfAnalysisRequest& WithForecastArn(Aws::String&& value) { SetForecastArn(std::move(value)); return *this;}
65 inline CreateWhatIfAnalysisRequest& WithForecastArn(const char* value) { SetForecastArn(value); return *this;}
67
69
77 inline const TimeSeriesSelector& GetTimeSeriesSelector() const{ return m_timeSeriesSelector; }
78 inline bool TimeSeriesSelectorHasBeenSet() const { return m_timeSeriesSelectorHasBeenSet; }
79 inline void SetTimeSeriesSelector(const TimeSeriesSelector& value) { m_timeSeriesSelectorHasBeenSet = true; m_timeSeriesSelector = value; }
80 inline void SetTimeSeriesSelector(TimeSeriesSelector&& value) { m_timeSeriesSelectorHasBeenSet = true; m_timeSeriesSelector = std::move(value); }
84
86
91 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
95 inline CreateWhatIfAnalysisRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
96 inline CreateWhatIfAnalysisRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
97 inline CreateWhatIfAnalysisRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
98 inline CreateWhatIfAnalysisRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_whatIfAnalysisName;
103 bool m_whatIfAnalysisNameHasBeenSet = false;
104
105 Aws::String m_forecastArn;
106 bool m_forecastArnHasBeenSet = false;
107
108 TimeSeriesSelector m_timeSeriesSelector;
109 bool m_timeSeriesSelectorHasBeenSet = false;
110
111 Aws::Vector<Tag> m_tags;
112 bool m_tagsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace ForecastService
117} // namespace Aws
CreateWhatIfAnalysisRequest & WithWhatIfAnalysisName(const char *value)
CreateWhatIfAnalysisRequest & AddTags(const Tag &value)
AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override
AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateWhatIfAnalysisRequest & WithForecastArn(Aws::String &&value)
CreateWhatIfAnalysisRequest & WithTags(Aws::Vector< Tag > &&value)
CreateWhatIfAnalysisRequest & WithWhatIfAnalysisName(const Aws::String &value)
CreateWhatIfAnalysisRequest & WithTags(const Aws::Vector< Tag > &value)
CreateWhatIfAnalysisRequest & WithTimeSeriesSelector(const TimeSeriesSelector &value)
CreateWhatIfAnalysisRequest & WithForecastArn(const char *value)
CreateWhatIfAnalysisRequest & WithTimeSeriesSelector(TimeSeriesSelector &&value)
CreateWhatIfAnalysisRequest & WithWhatIfAnalysisName(Aws::String &&value)
CreateWhatIfAnalysisRequest & WithForecastArn(const Aws::String &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