AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetCostEstimateRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Lightsail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LIGHTSAIL_API GetCostEstimateRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetCostEstimate"; }
32
33 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
43 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
44 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
45 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
46 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
47 inline GetCostEstimateRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
48 inline GetCostEstimateRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
49 inline GetCostEstimateRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
51
53
62 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
63 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
64 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
65 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
66 inline GetCostEstimateRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
67 inline GetCostEstimateRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
69
71
79 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
80 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
81 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
82 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
83 inline GetCostEstimateRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
84 inline GetCostEstimateRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
86 private:
87
88 Aws::String m_resourceName;
89 bool m_resourceNameHasBeenSet = false;
90
91 Aws::Utils::DateTime m_startTime;
92 bool m_startTimeHasBeenSet = false;
93
94 Aws::Utils::DateTime m_endTime;
95 bool m_endTimeHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Lightsail
100} // namespace Aws
GetCostEstimateRequest & WithStartTime(Aws::Utils::DateTime &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetEndTime() const
void SetEndTime(const Aws::Utils::DateTime &value)
virtual const char * GetServiceRequestName() const override
GetCostEstimateRequest & WithResourceName(const Aws::String &value)
GetCostEstimateRequest & WithEndTime(const Aws::Utils::DateTime &value)
void SetEndTime(Aws::Utils::DateTime &&value)
void SetStartTime(Aws::Utils::DateTime &&value)
GetCostEstimateRequest & WithResourceName(Aws::String &&value)
GetCostEstimateRequest & WithEndTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStartTime() const
GetCostEstimateRequest & WithStartTime(const Aws::Utils::DateTime &value)
GetCostEstimateRequest & WithResourceName(const char *value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
void SetStartTime(const Aws::Utils::DateTime &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String