AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AssociateOpportunityRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-selling/PartnerCentralSellingRequest.h>
9#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
10#include <aws/partnercentral-selling/model/RelatedEntityType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace PartnerCentralSelling {
16namespace Model {
17
21 public:
22 AWS_PARTNERCENTRALSELLING_API AssociateOpportunityRequest() = 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 "AssociateOpportunity"; }
29
30 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
31
32 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
42 inline const Aws::String& GetCatalog() const { return m_catalog; }
43 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
44 template <typename CatalogT = Aws::String>
45 void SetCatalog(CatalogT&& value) {
46 m_catalogHasBeenSet = true;
47 m_catalog = std::forward<CatalogT>(value);
48 }
49 template <typename CatalogT = Aws::String>
51 SetCatalog(std::forward<CatalogT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetOpportunityIdentifier() const { return m_opportunityIdentifier; }
63 inline bool OpportunityIdentifierHasBeenSet() const { return m_opportunityIdentifierHasBeenSet; }
64 template <typename OpportunityIdentifierT = Aws::String>
65 void SetOpportunityIdentifier(OpportunityIdentifierT&& value) {
66 m_opportunityIdentifierHasBeenSet = true;
67 m_opportunityIdentifier = std::forward<OpportunityIdentifierT>(value);
68 }
69 template <typename OpportunityIdentifierT = Aws::String>
70 AssociateOpportunityRequest& WithOpportunityIdentifier(OpportunityIdentifierT&& value) {
71 SetOpportunityIdentifier(std::forward<OpportunityIdentifierT>(value));
72 return *this;
73 }
75
77
82 inline RelatedEntityType GetRelatedEntityType() const { return m_relatedEntityType; }
83 inline bool RelatedEntityTypeHasBeenSet() const { return m_relatedEntityTypeHasBeenSet; }
85 m_relatedEntityTypeHasBeenSet = true;
86 m_relatedEntityType = value;
87 }
90 return *this;
91 }
93
95
102 inline const Aws::String& GetRelatedEntityIdentifier() const { return m_relatedEntityIdentifier; }
103 inline bool RelatedEntityIdentifierHasBeenSet() const { return m_relatedEntityIdentifierHasBeenSet; }
104 template <typename RelatedEntityIdentifierT = Aws::String>
105 void SetRelatedEntityIdentifier(RelatedEntityIdentifierT&& value) {
106 m_relatedEntityIdentifierHasBeenSet = true;
107 m_relatedEntityIdentifier = std::forward<RelatedEntityIdentifierT>(value);
108 }
109 template <typename RelatedEntityIdentifierT = Aws::String>
110 AssociateOpportunityRequest& WithRelatedEntityIdentifier(RelatedEntityIdentifierT&& value) {
111 SetRelatedEntityIdentifier(std::forward<RelatedEntityIdentifierT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_catalog;
117
118 Aws::String m_opportunityIdentifier;
119
121
122 Aws::String m_relatedEntityIdentifier;
123 bool m_catalogHasBeenSet = false;
124 bool m_opportunityIdentifierHasBeenSet = false;
125 bool m_relatedEntityTypeHasBeenSet = false;
126 bool m_relatedEntityIdentifierHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace PartnerCentralSelling
131} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociateOpportunityRequest & WithRelatedEntityIdentifier(RelatedEntityIdentifierT &&value)
AssociateOpportunityRequest & WithOpportunityIdentifier(OpportunityIdentifierT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override
AWS_PARTNERCENTRALSELLING_API AssociateOpportunityRequest()=default
AssociateOpportunityRequest & WithRelatedEntityType(RelatedEntityType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String