AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
DescribeImagePermissionsRequest.h
1
6#pragma once
7#include <aws/appstream/AppStreamRequest.h>
8#include <aws/appstream/AppStream_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AppStream {
16namespace Model {
17
21 public:
22 AWS_APPSTREAM_API DescribeImagePermissionsRequest() = 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 "DescribeImagePermissions"; }
29
30 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline int GetMaxResults() const { return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) {
60 m_maxResultsHasBeenSet = true;
61 m_maxResults = value;
62 }
64 SetMaxResults(value);
65 return *this;
66 }
68
70
74 inline const Aws::Vector<Aws::String>& GetSharedAwsAccountIds() const { return m_sharedAwsAccountIds; }
75 inline bool SharedAwsAccountIdsHasBeenSet() const { return m_sharedAwsAccountIdsHasBeenSet; }
76 template <typename SharedAwsAccountIdsT = Aws::Vector<Aws::String>>
77 void SetSharedAwsAccountIds(SharedAwsAccountIdsT&& value) {
78 m_sharedAwsAccountIdsHasBeenSet = true;
79 m_sharedAwsAccountIds = std::forward<SharedAwsAccountIdsT>(value);
80 }
81 template <typename SharedAwsAccountIdsT = Aws::Vector<Aws::String>>
83 SetSharedAwsAccountIds(std::forward<SharedAwsAccountIdsT>(value));
84 return *this;
85 }
86 template <typename SharedAwsAccountIdsT = Aws::String>
88 m_sharedAwsAccountIdsHasBeenSet = true;
89 m_sharedAwsAccountIds.emplace_back(std::forward<SharedAwsAccountIdsT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetNextToken() const { return m_nextToken; }
100 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
101 template <typename NextTokenT = Aws::String>
102 void SetNextToken(NextTokenT&& value) {
103 m_nextTokenHasBeenSet = true;
104 m_nextToken = std::forward<NextTokenT>(value);
105 }
106 template <typename NextTokenT = Aws::String>
108 SetNextToken(std::forward<NextTokenT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
116 int m_maxResults{0};
117 bool m_maxResultsHasBeenSet = false;
118
119 Aws::Vector<Aws::String> m_sharedAwsAccountIds;
120 bool m_sharedAwsAccountIdsHasBeenSet = false;
121
122 Aws::String m_nextToken;
123 bool m_nextTokenHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace AppStream
128} // namespace Aws
DescribeImagePermissionsRequest & WithName(NameT &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetSharedAwsAccountIds() const
DescribeImagePermissionsRequest & WithNextToken(NextTokenT &&value)
AWS_APPSTREAM_API DescribeImagePermissionsRequest()=default
DescribeImagePermissionsRequest & AddSharedAwsAccountIds(SharedAwsAccountIdsT &&value)
DescribeImagePermissionsRequest & WithSharedAwsAccountIds(SharedAwsAccountIdsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector