AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TimeSpan.h
1
6#pragma once
7#include <aws/elastictranscoder/ElasticTranscoder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ElasticTranscoder
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ELASTICTRANSCODER_API TimeSpan() = default;
36 AWS_ELASTICTRANSCODER_API TimeSpan(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ELASTICTRANSCODER_API TimeSpan& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline const Aws::String& GetStartTime() const { return m_startTime; }
49 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
50 template<typename StartTimeT = Aws::String>
51 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
52 template<typename StartTimeT = Aws::String>
53 TimeSpan& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
55
57
65 inline const Aws::String& GetDuration() const { return m_duration; }
66 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
67 template<typename DurationT = Aws::String>
68 void SetDuration(DurationT&& value) { m_durationHasBeenSet = true; m_duration = std::forward<DurationT>(value); }
69 template<typename DurationT = Aws::String>
70 TimeSpan& WithDuration(DurationT&& value) { SetDuration(std::forward<DurationT>(value)); return *this;}
72 private:
73
74 Aws::String m_startTime;
75 bool m_startTimeHasBeenSet = false;
76
77 Aws::String m_duration;
78 bool m_durationHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ElasticTranscoder
83} // namespace Aws
AWS_ELASTICTRANSCODER_API TimeSpan()=default
void SetStartTime(StartTimeT &&value)
Definition TimeSpan.h:51
AWS_ELASTICTRANSCODER_API TimeSpan & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDuration(DurationT &&value)
Definition TimeSpan.h:68
AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDuration() const
Definition TimeSpan.h:65
AWS_ELASTICTRANSCODER_API TimeSpan(Aws::Utils::Json::JsonView jsonValue)
TimeSpan & WithStartTime(StartTimeT &&value)
Definition TimeSpan.h:53
TimeSpan & WithDuration(DurationT &&value)
Definition TimeSpan.h:70
const Aws::String & GetStartTime() const
Definition TimeSpan.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue