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/elasticmapreduce/EMR_EXPORTS.h>
8 #include <aws/elasticmapreduce/EMRRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EMR
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_EMR_API GetAutoTerminationPolicyRequest : public EMRRequest
22   {
23   public:
24     GetAutoTerminationPolicyRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "GetAutoTerminationPolicy"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>Specifies the ID of the Amazon EMR cluster for which the auto-termination
39      * policy will be fetched.</p>
40      */
GetClusterId()41     inline const Aws::String& GetClusterId() const{ return m_clusterId; }
42 
43     /**
44      * <p>Specifies the ID of the Amazon EMR cluster for which the auto-termination
45      * policy will be fetched.</p>
46      */
ClusterIdHasBeenSet()47     inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
48 
49     /**
50      * <p>Specifies the ID of the Amazon EMR cluster for which the auto-termination
51      * policy will be fetched.</p>
52      */
SetClusterId(const Aws::String & value)53     inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
54 
55     /**
56      * <p>Specifies the ID of the Amazon EMR cluster for which the auto-termination
57      * policy will be fetched.</p>
58      */
SetClusterId(Aws::String && value)59     inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
60 
61     /**
62      * <p>Specifies the ID of the Amazon EMR cluster for which the auto-termination
63      * policy will be fetched.</p>
64      */
SetClusterId(const char * value)65     inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
66 
67     /**
68      * <p>Specifies the ID of the Amazon EMR cluster for which the auto-termination
69      * policy will be fetched.</p>
70      */
WithClusterId(const Aws::String & value)71     inline GetAutoTerminationPolicyRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
72 
73     /**
74      * <p>Specifies the ID of the Amazon EMR cluster for which the auto-termination
75      * policy will be fetched.</p>
76      */
WithClusterId(Aws::String && value)77     inline GetAutoTerminationPolicyRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
78 
79     /**
80      * <p>Specifies the ID of the Amazon EMR cluster for which the auto-termination
81      * policy will be fetched.</p>
82      */
WithClusterId(const char * value)83     inline GetAutoTerminationPolicyRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
84 
85   private:
86 
87     Aws::String m_clusterId;
88     bool m_clusterIdHasBeenSet;
89   };
90 
91 } // namespace Model
92 } // namespace EMR
93 } // namespace Aws
94