AWS SDK for C++  0.12.9
AWS SDK for C++
TimeSpan.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 ElasticTranscoder
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  TimeSpan();
40  TimeSpan(const Aws::Utils::Json::JsonValue& jsonValue);
41  TimeSpan& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
50  inline const Aws::String& GetStartTime() const{ return m_startTime; }
51 
58  inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
59 
66  inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
67 
74  inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); }
75 
82  inline TimeSpan& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;}
83 
90  inline TimeSpan& WithStartTime(Aws::String&& value) { SetStartTime(value); return *this;}
91 
98  inline TimeSpan& WithStartTime(const char* value) { SetStartTime(value); return *this;}
99 
108  inline const Aws::String& GetDuration() const{ return m_duration; }
109 
118  inline void SetDuration(const Aws::String& value) { m_durationHasBeenSet = true; m_duration = value; }
119 
128  inline void SetDuration(Aws::String&& value) { m_durationHasBeenSet = true; m_duration = value; }
129 
138  inline void SetDuration(const char* value) { m_durationHasBeenSet = true; m_duration.assign(value); }
139 
148  inline TimeSpan& WithDuration(const Aws::String& value) { SetDuration(value); return *this;}
149 
158  inline TimeSpan& WithDuration(Aws::String&& value) { SetDuration(value); return *this;}
159 
168  inline TimeSpan& WithDuration(const char* value) { SetDuration(value); return *this;}
169 
170  private:
171  Aws::String m_startTime;
172  bool m_startTimeHasBeenSet;
173  Aws::String m_duration;
174  bool m_durationHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace ElasticTranscoder
179 } // namespace Aws
void SetStartTime(const Aws::String &value)
Definition: TimeSpan.h:58
void SetDuration(Aws::String &&value)
Definition: TimeSpan.h:128
TimeSpan & WithDuration(Aws::String &&value)
Definition: TimeSpan.h:158
void SetDuration(const Aws::String &value)
Definition: TimeSpan.h:118
void SetDuration(const char *value)
Definition: TimeSpan.h:138
TimeSpan & WithDuration(const char *value)
Definition: TimeSpan.h:168
void SetStartTime(Aws::String &&value)
Definition: TimeSpan.h:66
TimeSpan & WithDuration(const Aws::String &value)
Definition: TimeSpan.h:148
TimeSpan & WithStartTime(const char *value)
Definition: TimeSpan.h:98
#define AWS_ELASTICTRANSCODER_API
TimeSpan & WithStartTime(Aws::String &&value)
Definition: TimeSpan.h:90
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TimeSpan & WithStartTime(const Aws::String &value)
Definition: TimeSpan.h:82
const Aws::String & GetStartTime() const
Definition: TimeSpan.h:50
void SetStartTime(const char *value)
Definition: TimeSpan.h:74
const Aws::String & GetDuration() const
Definition: TimeSpan.h:108
JSON (JavaScript Object Notation).