AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DeleteContentAssociationRequest.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace QConnect
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_QCONNECT_API DeleteContentAssociationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DeleteContentAssociation"; }
31
32 AWS_QCONNECT_API Aws::String SerializePayload() const override;
33
34
36
39 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
40 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
41 template<typename KnowledgeBaseIdT = Aws::String>
42 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
43 template<typename KnowledgeBaseIdT = Aws::String>
44 DeleteContentAssociationRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
46
48
51 inline const Aws::String& GetContentId() const { return m_contentId; }
52 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
53 template<typename ContentIdT = Aws::String>
54 void SetContentId(ContentIdT&& value) { m_contentIdHasBeenSet = true; m_contentId = std::forward<ContentIdT>(value); }
55 template<typename ContentIdT = Aws::String>
56 DeleteContentAssociationRequest& WithContentId(ContentIdT&& value) { SetContentId(std::forward<ContentIdT>(value)); return *this;}
58
60
64 inline const Aws::String& GetContentAssociationId() const { return m_contentAssociationId; }
65 inline bool ContentAssociationIdHasBeenSet() const { return m_contentAssociationIdHasBeenSet; }
66 template<typename ContentAssociationIdT = Aws::String>
67 void SetContentAssociationId(ContentAssociationIdT&& value) { m_contentAssociationIdHasBeenSet = true; m_contentAssociationId = std::forward<ContentAssociationIdT>(value); }
68 template<typename ContentAssociationIdT = Aws::String>
69 DeleteContentAssociationRequest& WithContentAssociationId(ContentAssociationIdT&& value) { SetContentAssociationId(std::forward<ContentAssociationIdT>(value)); return *this;}
71 private:
72
73 Aws::String m_knowledgeBaseId;
74 bool m_knowledgeBaseIdHasBeenSet = false;
75
76 Aws::String m_contentId;
77 bool m_contentIdHasBeenSet = false;
78
79 Aws::String m_contentAssociationId;
80 bool m_contentAssociationIdHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace QConnect
85} // namespace Aws
AWS_QCONNECT_API DeleteContentAssociationRequest()=default
DeleteContentAssociationRequest & WithContentAssociationId(ContentAssociationIdT &&value)
DeleteContentAssociationRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
DeleteContentAssociationRequest & WithContentId(ContentIdT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String