AWS SDK for C++  0.14.3
AWS SDK for C++
Target.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace CloudWatchEvents
29 {
30 namespace Model
31 {
32 
47  {
48  public:
49  Target();
50  Target(const Aws::Utils::Json::JsonValue& jsonValue);
51  Target& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
52  Aws::Utils::Json::JsonValue Jsonize() const;
53 
57  inline const Aws::String& GetId() const{ return m_id; }
58 
62  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 
67  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
68 
72  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
73 
77  inline Target& WithId(const Aws::String& value) { SetId(value); return *this;}
78 
82  inline Target& WithId(Aws::String&& value) { SetId(value); return *this;}
83 
87  inline Target& WithId(const char* value) { SetId(value); return *this;}
88 
92  inline const Aws::String& GetArn() const{ return m_arn; }
93 
97  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
98 
102  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
103 
107  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
108 
112  inline Target& WithArn(const Aws::String& value) { SetArn(value); return *this;}
113 
117  inline Target& WithArn(Aws::String&& value) { SetArn(value); return *this;}
118 
122  inline Target& WithArn(const char* value) { SetArn(value); return *this;}
123 
129  inline const Aws::String& GetInput() const{ return m_input; }
130 
136  inline void SetInput(const Aws::String& value) { m_inputHasBeenSet = true; m_input = value; }
137 
143  inline void SetInput(Aws::String&& value) { m_inputHasBeenSet = true; m_input = value; }
144 
150  inline void SetInput(const char* value) { m_inputHasBeenSet = true; m_input.assign(value); }
151 
157  inline Target& WithInput(const Aws::String& value) { SetInput(value); return *this;}
158 
164  inline Target& WithInput(Aws::String&& value) { SetInput(value); return *this;}
165 
171  inline Target& WithInput(const char* value) { SetInput(value); return *this;}
172 
178  inline const Aws::String& GetInputPath() const{ return m_inputPath; }
179 
185  inline void SetInputPath(const Aws::String& value) { m_inputPathHasBeenSet = true; m_inputPath = value; }
186 
192  inline void SetInputPath(Aws::String&& value) { m_inputPathHasBeenSet = true; m_inputPath = value; }
193 
199  inline void SetInputPath(const char* value) { m_inputPathHasBeenSet = true; m_inputPath.assign(value); }
200 
206  inline Target& WithInputPath(const Aws::String& value) { SetInputPath(value); return *this;}
207 
213  inline Target& WithInputPath(Aws::String&& value) { SetInputPath(value); return *this;}
214 
220  inline Target& WithInputPath(const char* value) { SetInputPath(value); return *this;}
221 
222  private:
223  Aws::String m_id;
224  bool m_idHasBeenSet;
225  Aws::String m_arn;
226  bool m_arnHasBeenSet;
227  Aws::String m_input;
228  bool m_inputHasBeenSet;
229  Aws::String m_inputPath;
230  bool m_inputPathHasBeenSet;
231  };
232 
233 } // namespace Model
234 } // namespace CloudWatchEvents
235 } // namespace Aws
const Aws::String & GetInput() const
Definition: Target.h:129
#define AWS_CLOUDWATCHEVENTS_API
Target & WithInput(Aws::String &&value)
Definition: Target.h:164
Target & WithInput(const char *value)
Definition: Target.h:171
void SetArn(Aws::String &&value)
Definition: Target.h:102
void SetArn(const char *value)
Definition: Target.h:107
Target & WithInputPath(Aws::String &&value)
Definition: Target.h:213
void SetInputPath(const char *value)
Definition: Target.h:199
Target & WithId(const Aws::String &value)
Definition: Target.h:77
Target & WithArn(Aws::String &&value)
Definition: Target.h:117
Target & WithInput(const Aws::String &value)
Definition: Target.h:157
const Aws::String & GetInputPath() const
Definition: Target.h:178
void SetInput(const Aws::String &value)
Definition: Target.h:136
Target & WithInputPath(const Aws::String &value)
Definition: Target.h:206
void SetInputPath(Aws::String &&value)
Definition: Target.h:192
Target & WithId(Aws::String &&value)
Definition: Target.h:82
void SetId(Aws::String &&value)
Definition: Target.h:67
const Aws::String & GetId() const
Definition: Target.h:57
void SetId(const char *value)
Definition: Target.h:72
void SetInput(Aws::String &&value)
Definition: Target.h:143
void SetId(const Aws::String &value)
Definition: Target.h:62
Target & WithInputPath(const char *value)
Definition: Target.h:220
Target & WithArn(const char *value)
Definition: Target.h:122
const Aws::String & GetArn() const
Definition: Target.h:92
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetInputPath(const Aws::String &value)
Definition: Target.h:185
void SetInput(const char *value)
Definition: Target.h:150
Target & WithId(const char *value)
Definition: Target.h:87
void SetArn(const Aws::String &value)
Definition: Target.h:97
JSON (JavaScript Object Notation).
Target & WithArn(const Aws::String &value)
Definition: Target.h:112