AWS SDK for C++  0.12.9
AWS SDK for C++
Timing.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
17 
18 namespace Aws
19 {
20 namespace Utils
21 {
22 namespace Json
23 {
24  class JsonValue;
25 } // namespace Json
26 } // namespace Utils
27 namespace ElasticTranscoder
28 {
29 namespace Model
30 {
31 
36  {
37  public:
38  Timing();
39  Timing(const Aws::Utils::Json::JsonValue& jsonValue);
40  Timing& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
41  Aws::Utils::Json::JsonValue Jsonize() const;
42 
47  inline long long GetSubmitTimeMillis() const{ return m_submitTimeMillis; }
48 
53  inline void SetSubmitTimeMillis(long long value) { m_submitTimeMillisHasBeenSet = true; m_submitTimeMillis = value; }
54 
59  inline Timing& WithSubmitTimeMillis(long long value) { SetSubmitTimeMillis(value); return *this;}
60 
64  inline long long GetStartTimeMillis() const{ return m_startTimeMillis; }
65 
69  inline void SetStartTimeMillis(long long value) { m_startTimeMillisHasBeenSet = true; m_startTimeMillis = value; }
70 
74  inline Timing& WithStartTimeMillis(long long value) { SetStartTimeMillis(value); return *this;}
75 
79  inline long long GetFinishTimeMillis() const{ return m_finishTimeMillis; }
80 
84  inline void SetFinishTimeMillis(long long value) { m_finishTimeMillisHasBeenSet = true; m_finishTimeMillis = value; }
85 
89  inline Timing& WithFinishTimeMillis(long long value) { SetFinishTimeMillis(value); return *this;}
90 
91  private:
92  long long m_submitTimeMillis;
93  bool m_submitTimeMillisHasBeenSet;
94  long long m_startTimeMillis;
95  bool m_startTimeMillisHasBeenSet;
96  long long m_finishTimeMillis;
97  bool m_finishTimeMillisHasBeenSet;
98  };
99 
100 } // namespace Model
101 } // namespace ElasticTranscoder
102 } // namespace Aws
void SetStartTimeMillis(long long value)
Definition: Timing.h:69
Timing & WithSubmitTimeMillis(long long value)
Definition: Timing.h:59
void SetSubmitTimeMillis(long long value)
Definition: Timing.h:53
Timing & WithFinishTimeMillis(long long value)
Definition: Timing.h:89
long long GetSubmitTimeMillis() const
Definition: Timing.h:47
long long GetStartTimeMillis() const
Definition: Timing.h:64
Timing & WithStartTimeMillis(long long value)
Definition: Timing.h:74
#define AWS_ELASTICTRANSCODER_API
void SetFinishTimeMillis(long long value)
Definition: Timing.h:84
long long GetFinishTimeMillis() const
Definition: Timing.h:79
JSON (JavaScript Object Notation).