AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetCostEstimateRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/LightsailRequest.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Lightsail {
16namespace Model {
17
21 public:
22 AWS_LIGHTSAIL_API GetCostEstimateRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetCostEstimate"; }
29
30 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetResourceName() const { return m_resourceName; }
39 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
40 template <typename ResourceNameT = Aws::String>
41 void SetResourceName(ResourceNameT&& value) {
42 m_resourceNameHasBeenSet = true;
43 m_resourceName = std::forward<ResourceNameT>(value);
44 }
45 template <typename ResourceNameT = Aws::String>
46 GetCostEstimateRequest& WithResourceName(ResourceNameT&& value) {
47 SetResourceName(std::forward<ResourceNameT>(value));
48 return *this;
49 }
51
53
62 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
63 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
64 template <typename StartTimeT = Aws::Utils::DateTime>
65 void SetStartTime(StartTimeT&& value) {
66 m_startTimeHasBeenSet = true;
67 m_startTime = std::forward<StartTimeT>(value);
68 }
69 template <typename StartTimeT = Aws::Utils::DateTime>
71 SetStartTime(std::forward<StartTimeT>(value));
72 return *this;
73 }
75
77
85 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
86 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
87 template <typename EndTimeT = Aws::Utils::DateTime>
88 void SetEndTime(EndTimeT&& value) {
89 m_endTimeHasBeenSet = true;
90 m_endTime = std::forward<EndTimeT>(value);
91 }
92 template <typename EndTimeT = Aws::Utils::DateTime>
94 SetEndTime(std::forward<EndTimeT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_resourceName;
100
101 Aws::Utils::DateTime m_startTime{};
102
103 Aws::Utils::DateTime m_endTime{};
104 bool m_resourceNameHasBeenSet = false;
105 bool m_startTimeHasBeenSet = false;
106 bool m_endTimeHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Lightsail
111} // namespace Aws
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetEndTime() const
GetCostEstimateRequest & WithEndTime(EndTimeT &&value)
GetCostEstimateRequest & WithStartTime(StartTimeT &&value)
virtual const char * GetServiceRequestName() const override
GetCostEstimateRequest & WithResourceName(ResourceNameT &&value)
const Aws::Utils::DateTime & GetStartTime() const
AWS_LIGHTSAIL_API GetCostEstimateRequest()=default
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String