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/kinesisanalytics/KinesisAnalytics_EXPORTS.h>
8 #include <aws/kinesisanalytics/KinesisAnalyticsRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace KinesisAnalytics
15 {
16 namespace Model
17 {
18 
19   /**
20    * <p/><p><h3>See Also:</h3>   <a
21    * href="http://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/StopApplicationRequest">AWS
22    * API Reference</a></p>
23    */
24   class AWS_KINESISANALYTICS_API StopApplicationRequest : public KinesisAnalyticsRequest
25   {
26   public:
27     StopApplicationRequest();
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.
GetServiceRequestName()33     inline virtual const char* GetServiceRequestName() const override { return "StopApplication"; }
34 
35     Aws::String SerializePayload() const override;
36 
37     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
40     /**
41      * <p>Name of the running application to stop.</p>
42      */
GetApplicationName()43     inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
44 
45     /**
46      * <p>Name of the running application to stop.</p>
47      */
ApplicationNameHasBeenSet()48     inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
49 
50     /**
51      * <p>Name of the running application to stop.</p>
52      */
SetApplicationName(const Aws::String & value)53     inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
54 
55     /**
56      * <p>Name of the running application to stop.</p>
57      */
SetApplicationName(Aws::String && value)58     inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
59 
60     /**
61      * <p>Name of the running application to stop.</p>
62      */
SetApplicationName(const char * value)63     inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
64 
65     /**
66      * <p>Name of the running application to stop.</p>
67      */
WithApplicationName(const Aws::String & value)68     inline StopApplicationRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
69 
70     /**
71      * <p>Name of the running application to stop.</p>
72      */
WithApplicationName(Aws::String && value)73     inline StopApplicationRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
74 
75     /**
76      * <p>Name of the running application to stop.</p>
77      */
WithApplicationName(const char * value)78     inline StopApplicationRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
79 
80   private:
81 
82     Aws::String m_applicationName;
83     bool m_applicationNameHasBeenSet;
84   };
85 
86 } // namespace Model
87 } // namespace KinesisAnalytics
88 } // namespace Aws
89