AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
RelativeTimeRange.h
1
6#pragma once
7#include <aws/transcribe/TranscribeService_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace TranscribeService {
17namespace Model {
18
36 public:
37 AWS_TRANSCRIBESERVICE_API RelativeTimeRange() = default;
38 AWS_TRANSCRIBESERVICE_API RelativeTimeRange(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TRANSCRIBESERVICE_API RelativeTimeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
49 inline int GetStartPercentage() const { return m_startPercentage; }
50 inline bool StartPercentageHasBeenSet() const { return m_startPercentageHasBeenSet; }
51 inline void SetStartPercentage(int value) {
52 m_startPercentageHasBeenSet = true;
53 m_startPercentage = value;
54 }
56 SetStartPercentage(value);
57 return *this;
58 }
60
62
67 inline int GetEndPercentage() const { return m_endPercentage; }
68 inline bool EndPercentageHasBeenSet() const { return m_endPercentageHasBeenSet; }
69 inline void SetEndPercentage(int value) {
70 m_endPercentageHasBeenSet = true;
71 m_endPercentage = value;
72 }
74 SetEndPercentage(value);
75 return *this;
76 }
78
80
85 inline int GetFirst() const { return m_first; }
86 inline bool FirstHasBeenSet() const { return m_firstHasBeenSet; }
87 inline void SetFirst(int value) {
88 m_firstHasBeenSet = true;
89 m_first = value;
90 }
91 inline RelativeTimeRange& WithFirst(int value) {
92 SetFirst(value);
93 return *this;
94 }
96
98
103 inline int GetLast() const { return m_last; }
104 inline bool LastHasBeenSet() const { return m_lastHasBeenSet; }
105 inline void SetLast(int value) {
106 m_lastHasBeenSet = true;
107 m_last = value;
108 }
109 inline RelativeTimeRange& WithLast(int value) {
110 SetLast(value);
111 return *this;
112 }
114 private:
115 int m_startPercentage{0};
116
117 int m_endPercentage{0};
118
119 int m_first{0};
120
121 int m_last{0};
122 bool m_startPercentageHasBeenSet = false;
123 bool m_endPercentageHasBeenSet = false;
124 bool m_firstHasBeenSet = false;
125 bool m_lastHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace TranscribeService
130} // namespace Aws
AWS_TRANSCRIBESERVICE_API RelativeTimeRange(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TRANSCRIBESERVICE_API RelativeTimeRange()=default
AWS_TRANSCRIBESERVICE_API RelativeTimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
RelativeTimeRange & WithStartPercentage(int value)
Aws::Utils::Json::JsonValue JsonValue