AWS SDK for C++  1.9.129
AWS SDK for C++
CreateForecastRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/forecast/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ForecastService
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateForecast"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetForecastName() const{ return m_forecastName; }
43 
47  inline bool ForecastNameHasBeenSet() const { return m_forecastNameHasBeenSet; }
48 
52  inline void SetForecastName(const Aws::String& value) { m_forecastNameHasBeenSet = true; m_forecastName = value; }
53 
57  inline void SetForecastName(Aws::String&& value) { m_forecastNameHasBeenSet = true; m_forecastName = std::move(value); }
58 
62  inline void SetForecastName(const char* value) { m_forecastNameHasBeenSet = true; m_forecastName.assign(value); }
63 
67  inline CreateForecastRequest& WithForecastName(const Aws::String& value) { SetForecastName(value); return *this;}
68 
72  inline CreateForecastRequest& WithForecastName(Aws::String&& value) { SetForecastName(std::move(value)); return *this;}
73 
77  inline CreateForecastRequest& WithForecastName(const char* value) { SetForecastName(value); return *this;}
78 
79 
84  inline const Aws::String& GetPredictorArn() const{ return m_predictorArn; }
85 
90  inline bool PredictorArnHasBeenSet() const { return m_predictorArnHasBeenSet; }
91 
96  inline void SetPredictorArn(const Aws::String& value) { m_predictorArnHasBeenSet = true; m_predictorArn = value; }
97 
102  inline void SetPredictorArn(Aws::String&& value) { m_predictorArnHasBeenSet = true; m_predictorArn = std::move(value); }
103 
108  inline void SetPredictorArn(const char* value) { m_predictorArnHasBeenSet = true; m_predictorArn.assign(value); }
109 
114  inline CreateForecastRequest& WithPredictorArn(const Aws::String& value) { SetPredictorArn(value); return *this;}
115 
120  inline CreateForecastRequest& WithPredictorArn(Aws::String&& value) { SetPredictorArn(std::move(value)); return *this;}
121 
126  inline CreateForecastRequest& WithPredictorArn(const char* value) { SetPredictorArn(value); return *this;}
127 
128 
137  inline const Aws::Vector<Aws::String>& GetForecastTypes() const{ return m_forecastTypes; }
138 
147  inline bool ForecastTypesHasBeenSet() const { return m_forecastTypesHasBeenSet; }
148 
157  inline void SetForecastTypes(const Aws::Vector<Aws::String>& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes = value; }
158 
167  inline void SetForecastTypes(Aws::Vector<Aws::String>&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes = std::move(value); }
168 
177  inline CreateForecastRequest& WithForecastTypes(const Aws::Vector<Aws::String>& value) { SetForecastTypes(value); return *this;}
178 
187  inline CreateForecastRequest& WithForecastTypes(Aws::Vector<Aws::String>&& value) { SetForecastTypes(std::move(value)); return *this;}
188 
197  inline CreateForecastRequest& AddForecastTypes(const Aws::String& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(value); return *this; }
198 
207  inline CreateForecastRequest& AddForecastTypes(Aws::String&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(std::move(value)); return *this; }
208 
217  inline CreateForecastRequest& AddForecastTypes(const char* value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(value); return *this; }
218 
219 
241  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
242 
264  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
265 
287  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
288 
310  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
311 
333  inline CreateForecastRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
334 
356  inline CreateForecastRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
357 
379  inline CreateForecastRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
380 
402  inline CreateForecastRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
403 
404  private:
405 
406  Aws::String m_forecastName;
407  bool m_forecastNameHasBeenSet;
408 
409  Aws::String m_predictorArn;
410  bool m_predictorArnHasBeenSet;
411 
412  Aws::Vector<Aws::String> m_forecastTypes;
413  bool m_forecastTypesHasBeenSet;
414 
415  Aws::Vector<Tag> m_tags;
416  bool m_tagsHasBeenSet;
417  };
418 
419 } // namespace Model
420 } // namespace ForecastService
421 } // namespace Aws
Aws::ForecastService::Model::CreateForecastRequest::SetPredictorArn
void SetPredictorArn(const char *value)
Definition: CreateForecastRequest.h:108
Aws::ForecastService::Model::CreateForecastRequest::AddTags
CreateForecastRequest & AddTags(const Tag &value)
Definition: CreateForecastRequest.h:379
Aws::ForecastService::Model::CreateForecastRequest::SetForecastName
void SetForecastName(const Aws::String &value)
Definition: CreateForecastRequest.h:52
Aws::ForecastService::Model::CreateForecastRequest::WithPredictorArn
CreateForecastRequest & WithPredictorArn(const Aws::String &value)
Definition: CreateForecastRequest.h:114
Aws::ForecastService::Model::CreateForecastRequest
Definition: CreateForecastRequest.h:24
Aws::ForecastService::Model::CreateForecastRequest::GetForecastTypes
const Aws::Vector< Aws::String > & GetForecastTypes() const
Definition: CreateForecastRequest.h:137
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ForecastService::Model::CreateForecastRequest::SetPredictorArn
void SetPredictorArn(const Aws::String &value)
Definition: CreateForecastRequest.h:96
ForecastService_EXPORTS.h
Aws::ForecastService::Model::CreateForecastRequest::WithTags
CreateForecastRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateForecastRequest.h:356
Aws::ForecastService::Model::CreateForecastRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateForecastRequest.h:241
Aws::ForecastService::Model::CreateForecastRequest::AddTags
CreateForecastRequest & AddTags(Tag &&value)
Definition: CreateForecastRequest.h:402
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ForecastService::Model::CreateForecastRequest::CreateForecastRequest
CreateForecastRequest()
Aws::ForecastService::Model::CreateForecastRequest::WithPredictorArn
CreateForecastRequest & WithPredictorArn(const char *value)
Definition: CreateForecastRequest.h:126
AWSVector.h
Aws::ForecastService::Model::CreateForecastRequest::WithTags
CreateForecastRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateForecastRequest.h:333
Aws::ForecastService::Model::CreateForecastRequest::SetForecastTypes
void SetForecastTypes(Aws::Vector< Aws::String > &&value)
Definition: CreateForecastRequest.h:167
Aws::ForecastService::Model::CreateForecastRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateForecastRequest.h:32
Aws::ForecastService::Model::CreateForecastRequest::SetForecastName
void SetForecastName(Aws::String &&value)
Definition: CreateForecastRequest.h:57
Aws::ForecastService::Model::CreateForecastRequest::GetPredictorArn
const Aws::String & GetPredictorArn() const
Definition: CreateForecastRequest.h:84
Aws::ForecastService::Model::CreateForecastRequest::WithForecastTypes
CreateForecastRequest & WithForecastTypes(const Aws::Vector< Aws::String > &value)
Definition: CreateForecastRequest.h:177
Aws::ForecastService::Model::CreateForecastRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ForecastService::Model::CreateForecastRequest::AddForecastTypes
CreateForecastRequest & AddForecastTypes(const char *value)
Definition: CreateForecastRequest.h:217
Aws::ForecastService::Model::CreateForecastRequest::SetForecastName
void SetForecastName(const char *value)
Definition: CreateForecastRequest.h:62
Aws::ForecastService::Model::CreateForecastRequest::AddForecastTypes
CreateForecastRequest & AddForecastTypes(const Aws::String &value)
Definition: CreateForecastRequest.h:197
Aws::ForecastService::Model::CreateForecastRequest::WithForecastName
CreateForecastRequest & WithForecastName(const Aws::String &value)
Definition: CreateForecastRequest.h:67
Aws::ForecastService::Model::CreateForecastRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateForecastRequest.h:287
ForecastServiceRequest.h
Aws::ForecastService::Model::CreateForecastRequest::AddForecastTypes
CreateForecastRequest & AddForecastTypes(Aws::String &&value)
Definition: CreateForecastRequest.h:207
Aws::ForecastService::Model::CreateForecastRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::ForecastService::Model::CreateForecastRequest::SetPredictorArn
void SetPredictorArn(Aws::String &&value)
Definition: CreateForecastRequest.h:102
Aws::ForecastService::Model::CreateForecastRequest::WithForecastTypes
CreateForecastRequest & WithForecastTypes(Aws::Vector< Aws::String > &&value)
Definition: CreateForecastRequest.h:187
Aws::ForecastService::Model::CreateForecastRequest::SetForecastTypes
void SetForecastTypes(const Aws::Vector< Aws::String > &value)
Definition: CreateForecastRequest.h:157
Tag.h
Aws::ForecastService::ForecastServiceRequest
Definition: ForecastServiceRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::ForecastService::Model::CreateForecastRequest::WithForecastName
CreateForecastRequest & WithForecastName(Aws::String &&value)
Definition: CreateForecastRequest.h:72
Aws::ForecastService::Model::CreateForecastRequest::WithForecastName
CreateForecastRequest & WithForecastName(const char *value)
Definition: CreateForecastRequest.h:77
Aws::ForecastService::Model::CreateForecastRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateForecastRequest.h:264
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ForecastService::Model::CreateForecastRequest::ForecastTypesHasBeenSet
bool ForecastTypesHasBeenSet() const
Definition: CreateForecastRequest.h:147
Aws::ForecastService::Model::Tag
Definition: Tag.h:50
AWS_FORECASTSERVICE_API
#define AWS_FORECASTSERVICE_API
Definition: ForecastService_EXPORTS.h:28
Aws::ForecastService::Model::CreateForecastRequest::GetForecastName
const Aws::String & GetForecastName() const
Definition: CreateForecastRequest.h:42
Aws::ForecastService::Model::CreateForecastRequest::WithPredictorArn
CreateForecastRequest & WithPredictorArn(Aws::String &&value)
Definition: CreateForecastRequest.h:120
Aws::ForecastService::Model::CreateForecastRequest::PredictorArnHasBeenSet
bool PredictorArnHasBeenSet() const
Definition: CreateForecastRequest.h:90
Aws::ForecastService::Model::CreateForecastRequest::ForecastNameHasBeenSet
bool ForecastNameHasBeenSet() const
Definition: CreateForecastRequest.h:47
Aws::ForecastService::Model::CreateForecastRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateForecastRequest.h:310