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/codedeploy/CodeDeploy_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CodeDeploy
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p> Contains the service and cluster names used to identify an Amazon ECS
28    * deployment's target. </p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ECSService">AWS
30    * API Reference</a></p>
31    */
32   class AWS_CODEDEPLOY_API ECSService
33   {
34   public:
35     ECSService();
36     ECSService(Aws::Utils::Json::JsonView jsonValue);
37     ECSService& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p> The name of the target Amazon ECS service. </p>
43      */
GetServiceName()44     inline const Aws::String& GetServiceName() const{ return m_serviceName; }
45 
46     /**
47      * <p> The name of the target Amazon ECS service. </p>
48      */
ServiceNameHasBeenSet()49     inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
50 
51     /**
52      * <p> The name of the target Amazon ECS service. </p>
53      */
SetServiceName(const Aws::String & value)54     inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
55 
56     /**
57      * <p> The name of the target Amazon ECS service. </p>
58      */
SetServiceName(Aws::String && value)59     inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
60 
61     /**
62      * <p> The name of the target Amazon ECS service. </p>
63      */
SetServiceName(const char * value)64     inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
65 
66     /**
67      * <p> The name of the target Amazon ECS service. </p>
68      */
WithServiceName(const Aws::String & value)69     inline ECSService& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
70 
71     /**
72      * <p> The name of the target Amazon ECS service. </p>
73      */
WithServiceName(Aws::String && value)74     inline ECSService& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
75 
76     /**
77      * <p> The name of the target Amazon ECS service. </p>
78      */
WithServiceName(const char * value)79     inline ECSService& WithServiceName(const char* value) { SetServiceName(value); return *this;}
80 
81 
82     /**
83      * <p> The name of the cluster that the Amazon ECS service is associated with. </p>
84      */
GetClusterName()85     inline const Aws::String& GetClusterName() const{ return m_clusterName; }
86 
87     /**
88      * <p> The name of the cluster that the Amazon ECS service is associated with. </p>
89      */
ClusterNameHasBeenSet()90     inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
91 
92     /**
93      * <p> The name of the cluster that the Amazon ECS service is associated with. </p>
94      */
SetClusterName(const Aws::String & value)95     inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
96 
97     /**
98      * <p> The name of the cluster that the Amazon ECS service is associated with. </p>
99      */
SetClusterName(Aws::String && value)100     inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
101 
102     /**
103      * <p> The name of the cluster that the Amazon ECS service is associated with. </p>
104      */
SetClusterName(const char * value)105     inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
106 
107     /**
108      * <p> The name of the cluster that the Amazon ECS service is associated with. </p>
109      */
WithClusterName(const Aws::String & value)110     inline ECSService& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
111 
112     /**
113      * <p> The name of the cluster that the Amazon ECS service is associated with. </p>
114      */
WithClusterName(Aws::String && value)115     inline ECSService& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
116 
117     /**
118      * <p> The name of the cluster that the Amazon ECS service is associated with. </p>
119      */
WithClusterName(const char * value)120     inline ECSService& WithClusterName(const char* value) { SetClusterName(value); return *this;}
121 
122   private:
123 
124     Aws::String m_serviceName;
125     bool m_serviceNameHasBeenSet;
126 
127     Aws::String m_clusterName;
128     bool m_clusterNameHasBeenSet;
129   };
130 
131 } // namespace Model
132 } // namespace CodeDeploy
133 } // namespace Aws
134