AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateOpportunityResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/partnercentral-selling/PartnerCentralSelling_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 PartnerCentralSelling {
23namespace Model {
25 public:
26 AWS_PARTNERCENTRALSELLING_API CreateOpportunityResult() = default;
29
31
37 inline const Aws::String& GetId() const { return m_id; }
38 template <typename IdT = Aws::String>
39 void SetId(IdT&& value) {
40 m_idHasBeenSet = true;
41 m_id = std::forward<IdT>(value);
42 }
43 template <typename IdT = Aws::String>
45 SetId(std::forward<IdT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::String& GetPartnerOpportunityIdentifier() const { return m_partnerOpportunityIdentifier; }
57 template <typename PartnerOpportunityIdentifierT = Aws::String>
58 void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) {
59 m_partnerOpportunityIdentifierHasBeenSet = true;
60 m_partnerOpportunityIdentifier = std::forward<PartnerOpportunityIdentifierT>(value);
61 }
62 template <typename PartnerOpportunityIdentifierT = Aws::String>
63 CreateOpportunityResult& WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) {
64 SetPartnerOpportunityIdentifier(std::forward<PartnerOpportunityIdentifierT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
75 template <typename LastModifiedDateT = Aws::Utils::DateTime>
76 void SetLastModifiedDate(LastModifiedDateT&& value) {
77 m_lastModifiedDateHasBeenSet = true;
78 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
79 }
80 template <typename LastModifiedDateT = Aws::Utils::DateTime>
81 CreateOpportunityResult& WithLastModifiedDate(LastModifiedDateT&& value) {
82 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
83 return *this;
84 }
86
88
89 inline const Aws::String& GetRequestId() const { return m_requestId; }
90 template <typename RequestIdT = Aws::String>
91 void SetRequestId(RequestIdT&& value) {
92 m_requestIdHasBeenSet = true;
93 m_requestId = std::forward<RequestIdT>(value);
94 }
95 template <typename RequestIdT = Aws::String>
97 SetRequestId(std::forward<RequestIdT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_id;
103
104 Aws::String m_partnerOpportunityIdentifier;
105
106 Aws::Utils::DateTime m_lastModifiedDate{};
107
108 Aws::String m_requestId;
109 bool m_idHasBeenSet = false;
110 bool m_partnerOpportunityIdentifierHasBeenSet = false;
111 bool m_lastModifiedDateHasBeenSet = false;
112 bool m_requestIdHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace PartnerCentralSelling
117} // namespace Aws
AWS_PARTNERCENTRALSELLING_API CreateOpportunityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateOpportunityResult & WithRequestId(RequestIdT &&value)
void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT &&value)
AWS_PARTNERCENTRALSELLING_API CreateOpportunityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_PARTNERCENTRALSELLING_API CreateOpportunityResult()=default
CreateOpportunityResult & WithLastModifiedDate(LastModifiedDateT &&value)
CreateOpportunityResult & WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue