AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetAttachedFileRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace Connect
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_CONNECT_API GetAttachedFileRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "GetAttachedFile"; }
38
39 AWS_CONNECT_API Aws::String SerializePayload() const override;
40
41 AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
48 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
49 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
50 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
51 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
52 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
53 inline GetAttachedFileRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
54 inline GetAttachedFileRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
55 inline GetAttachedFileRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
57
59
62 inline const Aws::String& GetFileId() const{ return m_fileId; }
63 inline bool FileIdHasBeenSet() const { return m_fileIdHasBeenSet; }
64 inline void SetFileId(const Aws::String& value) { m_fileIdHasBeenSet = true; m_fileId = value; }
65 inline void SetFileId(Aws::String&& value) { m_fileIdHasBeenSet = true; m_fileId = std::move(value); }
66 inline void SetFileId(const char* value) { m_fileIdHasBeenSet = true; m_fileId.assign(value); }
67 inline GetAttachedFileRequest& WithFileId(const Aws::String& value) { SetFileId(value); return *this;}
68 inline GetAttachedFileRequest& WithFileId(Aws::String&& value) { SetFileId(std::move(value)); return *this;}
69 inline GetAttachedFileRequest& WithFileId(const char* value) { SetFileId(value); return *this;}
71
73
77 inline int GetUrlExpiryInSeconds() const{ return m_urlExpiryInSeconds; }
78 inline bool UrlExpiryInSecondsHasBeenSet() const { return m_urlExpiryInSecondsHasBeenSet; }
79 inline void SetUrlExpiryInSeconds(int value) { m_urlExpiryInSecondsHasBeenSet = true; m_urlExpiryInSeconds = value; }
80 inline GetAttachedFileRequest& WithUrlExpiryInSeconds(int value) { SetUrlExpiryInSeconds(value); return *this;}
82
84
90 inline const Aws::String& GetAssociatedResourceArn() const{ return m_associatedResourceArn; }
91 inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; }
92 inline void SetAssociatedResourceArn(const Aws::String& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = value; }
93 inline void SetAssociatedResourceArn(Aws::String&& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = std::move(value); }
94 inline void SetAssociatedResourceArn(const char* value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn.assign(value); }
96 inline GetAttachedFileRequest& WithAssociatedResourceArn(Aws::String&& value) { SetAssociatedResourceArn(std::move(value)); return *this;}
97 inline GetAttachedFileRequest& WithAssociatedResourceArn(const char* value) { SetAssociatedResourceArn(value); return *this;}
99 private:
100
101 Aws::String m_instanceId;
102 bool m_instanceIdHasBeenSet = false;
103
104 Aws::String m_fileId;
105 bool m_fileIdHasBeenSet = false;
106
107 int m_urlExpiryInSeconds;
108 bool m_urlExpiryInSecondsHasBeenSet = false;
109
110 Aws::String m_associatedResourceArn;
111 bool m_associatedResourceArnHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Connect
116} // namespace Aws
void SetAssociatedResourceArn(const Aws::String &value)
GetAttachedFileRequest & WithAssociatedResourceArn(Aws::String &&value)
GetAttachedFileRequest & WithFileId(Aws::String &&value)
GetAttachedFileRequest & WithInstanceId(Aws::String &&value)
GetAttachedFileRequest & WithFileId(const char *value)
virtual const char * GetServiceRequestName() const override
GetAttachedFileRequest & WithInstanceId(const Aws::String &value)
GetAttachedFileRequest & WithInstanceId(const char *value)
AWS_CONNECT_API Aws::String SerializePayload() const override
GetAttachedFileRequest & WithAssociatedResourceArn(const char *value)
GetAttachedFileRequest & WithAssociatedResourceArn(const Aws::String &value)
AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetAttachedFileRequest & WithFileId(const Aws::String &value)
GetAttachedFileRequest & WithUrlExpiryInSeconds(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String