AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
DescribeAttachmentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/support/SupportRequest.h>
9#include <aws/support/Support_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Support {
15namespace Model {
16
20 public:
21 AWS_SUPPORT_API DescribeAttachmentRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DescribeAttachment"; }
28
29 AWS_SUPPORT_API Aws::String SerializePayload() const override;
30
32
34
41 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
42 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
43 template <typename AttachmentIdT = Aws::String>
44 void SetAttachmentId(AttachmentIdT&& value) {
45 m_attachmentIdHasBeenSet = true;
46 m_attachmentId = std::forward<AttachmentIdT>(value);
47 }
48 template <typename AttachmentIdT = Aws::String>
50 SetAttachmentId(std::forward<AttachmentIdT>(value));
51 return *this;
52 }
54
56
63 inline bool GetDryRun() const { return m_dryRun; }
64 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
65 inline void SetDryRun(bool value) {
66 m_dryRunHasBeenSet = true;
67 m_dryRun = value;
68 }
70 SetDryRun(value);
71 return *this;
72 }
74 private:
75 Aws::String m_attachmentId;
76
77 bool m_dryRun{false};
78 bool m_attachmentIdHasBeenSet = false;
79 bool m_dryRunHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Support
84} // namespace Aws
DescribeAttachmentRequest & WithAttachmentId(AttachmentIdT &&value)
AWS_SUPPORT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SUPPORT_API DescribeAttachmentRequest()=default
DescribeAttachmentRequest & WithDryRun(bool value)
virtual const char * GetServiceRequestName() const override
AWS_SUPPORT_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String