1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/pinpoint/Pinpoint_EXPORTS.h>
8 #include <aws/pinpoint/PinpointRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/pinpoint/model/UpdateRecommenderConfiguration.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Pinpoint
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_PINPOINT_API UpdateRecommenderConfigurationRequest : public PinpointRequest
23   {
24   public:
25     UpdateRecommenderConfigurationRequest();
26 
27     // Service request name is the Operation name which will send this request out,
28     // each operation should has unique request name, so that we can get operation's name from this request.
29     // Note: this is not true for response, multiple operations may have the same response name,
30     // so we can not get operation's name from response.
GetServiceRequestName()31     inline virtual const char* GetServiceRequestName() const override { return "UpdateRecommenderConfiguration"; }
32 
33     Aws::String SerializePayload() const override;
34 
35 
36     /**
37      * <p>The unique identifier for the recommender model configuration. This
38      * identifier is displayed as the <b>Recommender ID</b> on the Amazon Pinpoint
39      * console.</p>
40      */
GetRecommenderId()41     inline const Aws::String& GetRecommenderId() const{ return m_recommenderId; }
42 
43     /**
44      * <p>The unique identifier for the recommender model configuration. This
45      * identifier is displayed as the <b>Recommender ID</b> on the Amazon Pinpoint
46      * console.</p>
47      */
RecommenderIdHasBeenSet()48     inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; }
49 
50     /**
51      * <p>The unique identifier for the recommender model configuration. This
52      * identifier is displayed as the <b>Recommender ID</b> on the Amazon Pinpoint
53      * console.</p>
54      */
SetRecommenderId(const Aws::String & value)55     inline void SetRecommenderId(const Aws::String& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = value; }
56 
57     /**
58      * <p>The unique identifier for the recommender model configuration. This
59      * identifier is displayed as the <b>Recommender ID</b> on the Amazon Pinpoint
60      * console.</p>
61      */
SetRecommenderId(Aws::String && value)62     inline void SetRecommenderId(Aws::String&& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = std::move(value); }
63 
64     /**
65      * <p>The unique identifier for the recommender model configuration. This
66      * identifier is displayed as the <b>Recommender ID</b> on the Amazon Pinpoint
67      * console.</p>
68      */
SetRecommenderId(const char * value)69     inline void SetRecommenderId(const char* value) { m_recommenderIdHasBeenSet = true; m_recommenderId.assign(value); }
70 
71     /**
72      * <p>The unique identifier for the recommender model configuration. This
73      * identifier is displayed as the <b>Recommender ID</b> on the Amazon Pinpoint
74      * console.</p>
75      */
WithRecommenderId(const Aws::String & value)76     inline UpdateRecommenderConfigurationRequest& WithRecommenderId(const Aws::String& value) { SetRecommenderId(value); return *this;}
77 
78     /**
79      * <p>The unique identifier for the recommender model configuration. This
80      * identifier is displayed as the <b>Recommender ID</b> on the Amazon Pinpoint
81      * console.</p>
82      */
WithRecommenderId(Aws::String && value)83     inline UpdateRecommenderConfigurationRequest& WithRecommenderId(Aws::String&& value) { SetRecommenderId(std::move(value)); return *this;}
84 
85     /**
86      * <p>The unique identifier for the recommender model configuration. This
87      * identifier is displayed as the <b>Recommender ID</b> on the Amazon Pinpoint
88      * console.</p>
89      */
WithRecommenderId(const char * value)90     inline UpdateRecommenderConfigurationRequest& WithRecommenderId(const char* value) { SetRecommenderId(value); return *this;}
91 
92 
93 
GetUpdateRecommenderConfiguration()94     inline const UpdateRecommenderConfiguration& GetUpdateRecommenderConfiguration() const{ return m_updateRecommenderConfiguration; }
95 
96 
UpdateRecommenderConfigurationHasBeenSet()97     inline bool UpdateRecommenderConfigurationHasBeenSet() const { return m_updateRecommenderConfigurationHasBeenSet; }
98 
99 
SetUpdateRecommenderConfiguration(const UpdateRecommenderConfiguration & value)100     inline void SetUpdateRecommenderConfiguration(const UpdateRecommenderConfiguration& value) { m_updateRecommenderConfigurationHasBeenSet = true; m_updateRecommenderConfiguration = value; }
101 
102 
SetUpdateRecommenderConfiguration(UpdateRecommenderConfiguration && value)103     inline void SetUpdateRecommenderConfiguration(UpdateRecommenderConfiguration&& value) { m_updateRecommenderConfigurationHasBeenSet = true; m_updateRecommenderConfiguration = std::move(value); }
104 
105 
WithUpdateRecommenderConfiguration(const UpdateRecommenderConfiguration & value)106     inline UpdateRecommenderConfigurationRequest& WithUpdateRecommenderConfiguration(const UpdateRecommenderConfiguration& value) { SetUpdateRecommenderConfiguration(value); return *this;}
107 
108 
WithUpdateRecommenderConfiguration(UpdateRecommenderConfiguration && value)109     inline UpdateRecommenderConfigurationRequest& WithUpdateRecommenderConfiguration(UpdateRecommenderConfiguration&& value) { SetUpdateRecommenderConfiguration(std::move(value)); return *this;}
110 
111   private:
112 
113     Aws::String m_recommenderId;
114     bool m_recommenderIdHasBeenSet;
115 
116     UpdateRecommenderConfiguration m_updateRecommenderConfiguration;
117     bool m_updateRecommenderConfigurationHasBeenSet;
118   };
119 
120 } // namespace Model
121 } // namespace Pinpoint
122 } // namespace Aws
123