AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateActivityResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/states/SFN_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace SFN {
23namespace Model {
25 public:
26 AWS_SFN_API CreateActivityResult() = default;
29
31
34 inline const Aws::String& GetActivityArn() const { return m_activityArn; }
35 template <typename ActivityArnT = Aws::String>
36 void SetActivityArn(ActivityArnT&& value) {
37 m_activityArnHasBeenSet = true;
38 m_activityArn = std::forward<ActivityArnT>(value);
39 }
40 template <typename ActivityArnT = Aws::String>
41 CreateActivityResult& WithActivityArn(ActivityArnT&& value) {
42 SetActivityArn(std::forward<ActivityArnT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
52 template <typename CreationDateT = Aws::Utils::DateTime>
53 void SetCreationDate(CreationDateT&& value) {
54 m_creationDateHasBeenSet = true;
55 m_creationDate = std::forward<CreationDateT>(value);
56 }
57 template <typename CreationDateT = Aws::Utils::DateTime>
58 CreateActivityResult& WithCreationDate(CreationDateT&& value) {
59 SetCreationDate(std::forward<CreationDateT>(value));
60 return *this;
61 }
63
65
66 inline const Aws::String& GetRequestId() const { return m_requestId; }
67 template <typename RequestIdT = Aws::String>
68 void SetRequestId(RequestIdT&& value) {
69 m_requestIdHasBeenSet = true;
70 m_requestId = std::forward<RequestIdT>(value);
71 }
72 template <typename RequestIdT = Aws::String>
73 CreateActivityResult& WithRequestId(RequestIdT&& value) {
74 SetRequestId(std::forward<RequestIdT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_activityArn;
80
81 Aws::Utils::DateTime m_creationDate{};
82
83 Aws::String m_requestId;
84 bool m_activityArnHasBeenSet = false;
85 bool m_creationDateHasBeenSet = false;
86 bool m_requestIdHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace SFN
91} // namespace Aws
const Aws::String & GetActivityArn() const
void SetCreationDate(CreationDateT &&value)
CreateActivityResult & WithActivityArn(ActivityArnT &&value)
AWS_SFN_API CreateActivityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateActivityResult & WithRequestId(RequestIdT &&value)
CreateActivityResult & WithCreationDate(CreationDateT &&value)
AWS_SFN_API CreateActivityResult()=default
AWS_SFN_API CreateActivityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreationDate() const
void SetActivityArn(ActivityArnT &&value)
const Aws::String & GetRequestId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue