AWS SDK for C++  1.9.40
AWS SDK for C++
UpdateExpirationForHITRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MTurk
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "UpdateExpirationForHIT"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetHITId() const{ return m_hITId; }
42 
46  inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
47 
51  inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; }
52 
56  inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); }
57 
61  inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); }
62 
66  inline UpdateExpirationForHITRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
67 
71  inline UpdateExpirationForHITRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
72 
76  inline UpdateExpirationForHITRequest& WithHITId(const char* value) { SetHITId(value); return *this;}
77 
78 
82  inline const Aws::Utils::DateTime& GetExpireAt() const{ return m_expireAt; }
83 
87  inline bool ExpireAtHasBeenSet() const { return m_expireAtHasBeenSet; }
88 
92  inline void SetExpireAt(const Aws::Utils::DateTime& value) { m_expireAtHasBeenSet = true; m_expireAt = value; }
93 
97  inline void SetExpireAt(Aws::Utils::DateTime&& value) { m_expireAtHasBeenSet = true; m_expireAt = std::move(value); }
98 
102  inline UpdateExpirationForHITRequest& WithExpireAt(const Aws::Utils::DateTime& value) { SetExpireAt(value); return *this;}
103 
107  inline UpdateExpirationForHITRequest& WithExpireAt(Aws::Utils::DateTime&& value) { SetExpireAt(std::move(value)); return *this;}
108 
109  private:
110 
111  Aws::String m_hITId;
112  bool m_hITIdHasBeenSet;
113 
114  Aws::Utils::DateTime m_expireAt;
115  bool m_expireAtHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace MTurk
120 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::MTurk::Model::UpdateExpirationForHITRequest::SetHITId
void SetHITId(const char *value)
Definition: UpdateExpirationForHITRequest.h:61
Aws::MTurk::Model::UpdateExpirationForHITRequest::GetExpireAt
const Aws::Utils::DateTime & GetExpireAt() const
Definition: UpdateExpirationForHITRequest.h:82
Aws::MTurk::Model::UpdateExpirationForHITRequest::UpdateExpirationForHITRequest
UpdateExpirationForHITRequest()
Aws::MTurk::Model::UpdateExpirationForHITRequest::SetExpireAt
void SetExpireAt(Aws::Utils::DateTime &&value)
Definition: UpdateExpirationForHITRequest.h:97
Aws::MTurk::Model::UpdateExpirationForHITRequest::WithExpireAt
UpdateExpirationForHITRequest & WithExpireAt(Aws::Utils::DateTime &&value)
Definition: UpdateExpirationForHITRequest.h:107
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::UpdateExpirationForHITRequest::SetHITId
void SetHITId(const Aws::String &value)
Definition: UpdateExpirationForHITRequest.h:51
DateTime.h
Aws::MTurk::Model::UpdateExpirationForHITRequest::SetExpireAt
void SetExpireAt(const Aws::Utils::DateTime &value)
Definition: UpdateExpirationForHITRequest.h:92
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
MTurkRequest.h
Aws::MTurk::Model::UpdateExpirationForHITRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::UpdateExpirationForHITRequest::SetHITId
void SetHITId(Aws::String &&value)
Definition: UpdateExpirationForHITRequest.h:56
Aws::MTurk::Model::UpdateExpirationForHITRequest::WithExpireAt
UpdateExpirationForHITRequest & WithExpireAt(const Aws::Utils::DateTime &value)
Definition: UpdateExpirationForHITRequest.h:102
AWSString.h
Aws::MTurk::Model::UpdateExpirationForHITRequest::WithHITId
UpdateExpirationForHITRequest & WithHITId(const Aws::String &value)
Definition: UpdateExpirationForHITRequest.h:66
MTurk_EXPORTS.h
Aws::MTurk::Model::UpdateExpirationForHITRequest::HITIdHasBeenSet
bool HITIdHasBeenSet() const
Definition: UpdateExpirationForHITRequest.h:46
Aws
Definition: AccessManagementClient.h:15
Aws::MTurk::Model::UpdateExpirationForHITRequest
Definition: UpdateExpirationForHITRequest.h:23
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::UpdateExpirationForHITRequest::WithHITId
UpdateExpirationForHITRequest & WithHITId(const char *value)
Definition: UpdateExpirationForHITRequest.h:76
Aws::MTurk::Model::UpdateExpirationForHITRequest::GetHITId
const Aws::String & GetHITId() const
Definition: UpdateExpirationForHITRequest.h:41
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::UpdateExpirationForHITRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::UpdateExpirationForHITRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateExpirationForHITRequest.h:31
Aws::MTurk::Model::UpdateExpirationForHITRequest::ExpireAtHasBeenSet
bool ExpireAtHasBeenSet() const
Definition: UpdateExpirationForHITRequest.h:87
Aws::MTurk::Model::UpdateExpirationForHITRequest::WithHITId
UpdateExpirationForHITRequest & WithHITId(Aws::String &&value)
Definition: UpdateExpirationForHITRequest.h:71