AWS SDK for C++  0.12.9
AWS SDK for C++
TimeRange.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 CodeDeploy
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  TimeRange();
40  TimeRange(const Aws::Utils::Json::JsonValue& jsonValue);
41  TimeRange& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
48  inline const Aws::Utils::DateTime& GetStart() const{ return m_start; }
49 
54  inline void SetStart(const Aws::Utils::DateTime& value) { m_startHasBeenSet = true; m_start = value; }
55 
60  inline void SetStart(Aws::Utils::DateTime&& value) { m_startHasBeenSet = true; m_start = value; }
61 
66  inline TimeRange& WithStart(const Aws::Utils::DateTime& value) { SetStart(value); return *this;}
67 
72  inline TimeRange& WithStart(Aws::Utils::DateTime&& value) { SetStart(value); return *this;}
73 
78  inline const Aws::Utils::DateTime& GetEnd() const{ return m_end; }
79 
84  inline void SetEnd(const Aws::Utils::DateTime& value) { m_endHasBeenSet = true; m_end = value; }
85 
90  inline void SetEnd(Aws::Utils::DateTime&& value) { m_endHasBeenSet = true; m_end = value; }
91 
96  inline TimeRange& WithEnd(const Aws::Utils::DateTime& value) { SetEnd(value); return *this;}
97 
102  inline TimeRange& WithEnd(Aws::Utils::DateTime&& value) { SetEnd(value); return *this;}
103 
104  private:
105  Aws::Utils::DateTime m_start;
106  bool m_startHasBeenSet;
107  Aws::Utils::DateTime m_end;
108  bool m_endHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace CodeDeploy
113 } // namespace Aws
void SetStart(const Aws::Utils::DateTime &value)
Definition: TimeRange.h:54
const Aws::Utils::DateTime & GetEnd() const
Definition: TimeRange.h:78
#define AWS_CODEDEPLOY_API
void SetStart(Aws::Utils::DateTime &&value)
Definition: TimeRange.h:60
TimeRange & WithStart(const Aws::Utils::DateTime &value)
Definition: TimeRange.h:66
const Aws::Utils::DateTime & GetStart() const
Definition: TimeRange.h:48
void SetEnd(const Aws::Utils::DateTime &value)
Definition: TimeRange.h:84
void SetEnd(Aws::Utils::DateTime &&value)
Definition: TimeRange.h:90
TimeRange & WithEnd(Aws::Utils::DateTime &&value)
Definition: TimeRange.h:102
TimeRange & WithStart(Aws::Utils::DateTime &&value)
Definition: TimeRange.h:72
TimeRange & WithEnd(const Aws::Utils::DateTime &value)
Definition: TimeRange.h:96
JSON (JavaScript Object Notation).