AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
CreateOpportunityResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace PartnerCentralSelling {
24namespace Model {
26 public:
27 AWS_PARTNERCENTRALSELLING_API CreateOpportunityResult() = default;
30
32
38 inline const Aws::String& GetId() const { return m_id; }
39 template <typename IdT = Aws::String>
40 void SetId(IdT&& value) {
41 m_idHasBeenSet = true;
42 m_id = std::forward<IdT>(value);
43 }
44 template <typename IdT = Aws::String>
46 SetId(std::forward<IdT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::String& GetPartnerOpportunityIdentifier() const { return m_partnerOpportunityIdentifier; }
58 template <typename PartnerOpportunityIdentifierT = Aws::String>
59 void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) {
60 m_partnerOpportunityIdentifierHasBeenSet = true;
61 m_partnerOpportunityIdentifier = std::forward<PartnerOpportunityIdentifierT>(value);
62 }
63 template <typename PartnerOpportunityIdentifierT = Aws::String>
64 CreateOpportunityResult& WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) {
65 SetPartnerOpportunityIdentifier(std::forward<PartnerOpportunityIdentifierT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
76 template <typename LastModifiedDateT = Aws::Utils::DateTime>
77 void SetLastModifiedDate(LastModifiedDateT&& value) {
78 m_lastModifiedDateHasBeenSet = true;
79 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
80 }
81 template <typename LastModifiedDateT = Aws::Utils::DateTime>
82 CreateOpportunityResult& WithLastModifiedDate(LastModifiedDateT&& value) {
83 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::String& GetRequestId() const { return m_requestId; }
91 template <typename RequestIdT = Aws::String>
92 void SetRequestId(RequestIdT&& value) {
93 m_requestIdHasBeenSet = true;
94 m_requestId = std::forward<RequestIdT>(value);
95 }
96 template <typename RequestIdT = Aws::String>
98 SetRequestId(std::forward<RequestIdT>(value));
99 return *this;
100 }
102 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
103
104 private:
105 Aws::String m_id;
106
107 Aws::String m_partnerOpportunityIdentifier;
108
109 Aws::Utils::DateTime m_lastModifiedDate{};
110
111 Aws::String m_requestId;
112 Aws::Http::HttpResponseCode m_HttpResponseCode;
113 bool m_idHasBeenSet = false;
114 bool m_partnerOpportunityIdentifierHasBeenSet = false;
115 bool m_lastModifiedDateHasBeenSet = false;
116 bool m_requestIdHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace PartnerCentralSelling
121} // 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