AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AssociateOpportunityRequest.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/partnercentral-selling/PartnerCentralSellingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/partnercentral-selling/model/RelatedEntityType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace PartnerCentralSelling
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_PARTNERCENTRALSELLING_API AssociateOpportunityRequest() = default;
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 "AssociateOpportunity"; }
32
33 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
34
35 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
46 inline const Aws::String& GetCatalog() const { return m_catalog; }
47 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
48 template<typename CatalogT = Aws::String>
49 void SetCatalog(CatalogT&& value) { m_catalogHasBeenSet = true; m_catalog = std::forward<CatalogT>(value); }
50 template<typename CatalogT = Aws::String>
51 AssociateOpportunityRequest& WithCatalog(CatalogT&& value) { SetCatalog(std::forward<CatalogT>(value)); return *this;}
53
55
60 inline const Aws::String& GetOpportunityIdentifier() const { return m_opportunityIdentifier; }
61 inline bool OpportunityIdentifierHasBeenSet() const { return m_opportunityIdentifierHasBeenSet; }
62 template<typename OpportunityIdentifierT = Aws::String>
63 void SetOpportunityIdentifier(OpportunityIdentifierT&& value) { m_opportunityIdentifierHasBeenSet = true; m_opportunityIdentifier = std::forward<OpportunityIdentifierT>(value); }
64 template<typename OpportunityIdentifierT = Aws::String>
65 AssociateOpportunityRequest& WithOpportunityIdentifier(OpportunityIdentifierT&& value) { SetOpportunityIdentifier(std::forward<OpportunityIdentifierT>(value)); return *this;}
67
69
76 inline const Aws::String& GetRelatedEntityIdentifier() const { return m_relatedEntityIdentifier; }
77 inline bool RelatedEntityIdentifierHasBeenSet() const { return m_relatedEntityIdentifierHasBeenSet; }
78 template<typename RelatedEntityIdentifierT = Aws::String>
79 void SetRelatedEntityIdentifier(RelatedEntityIdentifierT&& value) { m_relatedEntityIdentifierHasBeenSet = true; m_relatedEntityIdentifier = std::forward<RelatedEntityIdentifierT>(value); }
80 template<typename RelatedEntityIdentifierT = Aws::String>
81 AssociateOpportunityRequest& WithRelatedEntityIdentifier(RelatedEntityIdentifierT&& value) { SetRelatedEntityIdentifier(std::forward<RelatedEntityIdentifierT>(value)); return *this;}
83
85
90 inline RelatedEntityType GetRelatedEntityType() const { return m_relatedEntityType; }
91 inline bool RelatedEntityTypeHasBeenSet() const { return m_relatedEntityTypeHasBeenSet; }
92 inline void SetRelatedEntityType(RelatedEntityType value) { m_relatedEntityTypeHasBeenSet = true; m_relatedEntityType = value; }
95 private:
96
97 Aws::String m_catalog;
98 bool m_catalogHasBeenSet = false;
99
100 Aws::String m_opportunityIdentifier;
101 bool m_opportunityIdentifierHasBeenSet = false;
102
103 Aws::String m_relatedEntityIdentifier;
104 bool m_relatedEntityIdentifierHasBeenSet = false;
105
107 bool m_relatedEntityTypeHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace PartnerCentralSelling
112} // 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