AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
51 inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
52 inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); }
53 inline TimeSpan& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;}
54 inline TimeSpan& WithStartTime(Aws::String&& value) { SetStartTime(std::move(value)); return *this;}
55 inline TimeSpan& WithStartTime(const char* value) { SetStartTime(value); return *this;}
57
59
67 inline const Aws::String& GetDuration() const{ return m_duration; }
68 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
69 inline void SetDuration(const Aws::String& value) { m_durationHasBeenSet = true; m_duration = value; }
70 inline void SetDuration(Aws::String&& value) { m_durationHasBeenSet = true; m_duration = std::move(value); }
71 inline void SetDuration(const char* value) { m_durationHasBeenSet = true; m_duration.assign(value); }
72 inline TimeSpan& WithDuration(const Aws::String& value) { SetDuration(value); return *this;}
73 inline TimeSpan& WithDuration(Aws::String&& value) { SetDuration(std::move(value)); return *this;}
74 inline TimeSpan& WithDuration(const char* value) { SetDuration(value); return *this;}
76 private:
77
78 Aws::String m_startTime;
79 bool m_startTimeHasBeenSet = false;
80
81 Aws::String m_duration;
82 bool m_durationHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace ElasticTranscoder
87} // namespace Aws
void SetStartTime(Aws::String &&value)
Definition TimeSpan.h:51
AWS_ELASTICTRANSCODER_API TimeSpan & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStartTime(const char *value)
Definition TimeSpan.h:52
void SetDuration(const Aws::String &value)
Definition TimeSpan.h:69
TimeSpan & WithStartTime(const char *value)
Definition TimeSpan.h:55
TimeSpan & WithStartTime(Aws::String &&value)
Definition TimeSpan.h:54
TimeSpan & WithStartTime(const Aws::String &value)
Definition TimeSpan.h:53
TimeSpan & WithDuration(Aws::String &&value)
Definition TimeSpan.h:73
void SetStartTime(const Aws::String &value)
Definition TimeSpan.h:50
void SetDuration(Aws::String &&value)
Definition TimeSpan.h:70
AWS_ELASTICTRANSCODER_API TimeSpan()
AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const
TimeSpan & WithDuration(const Aws::String &value)
Definition TimeSpan.h:72
const Aws::String & GetDuration() const
Definition TimeSpan.h:67
AWS_ELASTICTRANSCODER_API TimeSpan(Aws::Utils::Json::JsonView jsonValue)
TimeSpan & WithDuration(const char *value)
Definition TimeSpan.h:74
void SetDuration(const char *value)
Definition TimeSpan.h:71
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