AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
UpdateImagePermissionsRequest.h
1
6#pragma once
7#include <aws/appstream/AppStreamRequest.h>
8#include <aws/appstream/AppStream_EXPORTS.h>
9#include <aws/appstream/model/ImagePermissions.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AppStream {
16namespace Model {
17
21 public:
22 AWS_APPSTREAM_API UpdateImagePermissionsRequest() = 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 "UpdateImagePermissions"; }
29
30 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetSharedAccountId() const { return m_sharedAccountId; }
58 inline bool SharedAccountIdHasBeenSet() const { return m_sharedAccountIdHasBeenSet; }
59 template <typename SharedAccountIdT = Aws::String>
60 void SetSharedAccountId(SharedAccountIdT&& value) {
61 m_sharedAccountIdHasBeenSet = true;
62 m_sharedAccountId = std::forward<SharedAccountIdT>(value);
63 }
64 template <typename SharedAccountIdT = Aws::String>
66 SetSharedAccountId(std::forward<SharedAccountIdT>(value));
67 return *this;
68 }
70
72
75 inline const ImagePermissions& GetImagePermissions() const { return m_imagePermissions; }
76 inline bool ImagePermissionsHasBeenSet() const { return m_imagePermissionsHasBeenSet; }
77 template <typename ImagePermissionsT = ImagePermissions>
78 void SetImagePermissions(ImagePermissionsT&& value) {
79 m_imagePermissionsHasBeenSet = true;
80 m_imagePermissions = std::forward<ImagePermissionsT>(value);
81 }
82 template <typename ImagePermissionsT = ImagePermissions>
84 SetImagePermissions(std::forward<ImagePermissionsT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_name;
90 bool m_nameHasBeenSet = false;
91
92 Aws::String m_sharedAccountId;
93 bool m_sharedAccountIdHasBeenSet = false;
94
95 ImagePermissions m_imagePermissions;
96 bool m_imagePermissionsHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace AppStream
101} // namespace Aws
UpdateImagePermissionsRequest & WithImagePermissions(ImagePermissionsT &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
UpdateImagePermissionsRequest & WithName(NameT &&value)
UpdateImagePermissionsRequest & WithSharedAccountId(SharedAccountIdT &&value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_APPSTREAM_API UpdateImagePermissionsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String