AWS SDK for C++  1.8.95
AWS SDK for C++
DateInterval.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CostExplorer
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  DateInterval();
37  DateInterval& operator=(Aws::Utils::Json::JsonView jsonValue);
38  Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
47  inline const Aws::String& GetStart() const{ return m_start; }
48 
55  inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
56 
63  inline void SetStart(const Aws::String& value) { m_startHasBeenSet = true; m_start = value; }
64 
71  inline void SetStart(Aws::String&& value) { m_startHasBeenSet = true; m_start = std::move(value); }
72 
79  inline void SetStart(const char* value) { m_startHasBeenSet = true; m_start.assign(value); }
80 
87  inline DateInterval& WithStart(const Aws::String& value) { SetStart(value); return *this;}
88 
95  inline DateInterval& WithStart(Aws::String&& value) { SetStart(std::move(value)); return *this;}
96 
103  inline DateInterval& WithStart(const char* value) { SetStart(value); return *this;}
104 
105 
112  inline const Aws::String& GetEnd() const{ return m_end; }
113 
120  inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
121 
128  inline void SetEnd(const Aws::String& value) { m_endHasBeenSet = true; m_end = value; }
129 
136  inline void SetEnd(Aws::String&& value) { m_endHasBeenSet = true; m_end = std::move(value); }
137 
144  inline void SetEnd(const char* value) { m_endHasBeenSet = true; m_end.assign(value); }
145 
152  inline DateInterval& WithEnd(const Aws::String& value) { SetEnd(value); return *this;}
153 
160  inline DateInterval& WithEnd(Aws::String&& value) { SetEnd(std::move(value)); return *this;}
161 
168  inline DateInterval& WithEnd(const char* value) { SetEnd(value); return *this;}
169 
170  private:
171 
172  Aws::String m_start;
173  bool m_startHasBeenSet;
174 
175  Aws::String m_end;
176  bool m_endHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace CostExplorer
181 } // namespace Aws
void SetStart(const Aws::String &value)
Definition: DateInterval.h:63
void SetStart(Aws::String &&value)
Definition: DateInterval.h:71
DateInterval & WithEnd(const Aws::String &value)
Definition: DateInterval.h:152
const Aws::String & GetStart() const
Definition: DateInterval.h:47
DateInterval & WithEnd(Aws::String &&value)
Definition: DateInterval.h:160
DateInterval & WithStart(const char *value)
Definition: DateInterval.h:103
DateInterval & WithEnd(const char *value)
Definition: DateInterval.h:168
void SetEnd(Aws::String &&value)
Definition: DateInterval.h:136
const Aws::String & GetEnd() const
Definition: DateInterval.h:112
void SetEnd(const Aws::String &value)
Definition: DateInterval.h:128
#define AWS_COSTEXPLORER_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DateInterval & WithStart(Aws::String &&value)
Definition: DateInterval.h:95
DateInterval & WithStart(const Aws::String &value)
Definition: DateInterval.h:87
void SetStart(const char *value)
Definition: DateInterval.h:79