AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeImagePermissionsRequest.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/AppStreamRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AppStream
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_APPSTREAM_API DescribeImagePermissionsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DescribeImagePermissions"; }
32
33 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 DescribeImagePermissionsRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
55 inline int GetMaxResults() const { return m_maxResults; }
56 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
57 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
58 inline DescribeImagePermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
60
62
66 inline const Aws::Vector<Aws::String>& GetSharedAwsAccountIds() const { return m_sharedAwsAccountIds; }
67 inline bool SharedAwsAccountIdsHasBeenSet() const { return m_sharedAwsAccountIdsHasBeenSet; }
68 template<typename SharedAwsAccountIdsT = Aws::Vector<Aws::String>>
69 void SetSharedAwsAccountIds(SharedAwsAccountIdsT&& value) { m_sharedAwsAccountIdsHasBeenSet = true; m_sharedAwsAccountIds = std::forward<SharedAwsAccountIdsT>(value); }
70 template<typename SharedAwsAccountIdsT = Aws::Vector<Aws::String>>
71 DescribeImagePermissionsRequest& WithSharedAwsAccountIds(SharedAwsAccountIdsT&& value) { SetSharedAwsAccountIds(std::forward<SharedAwsAccountIdsT>(value)); return *this;}
72 template<typename SharedAwsAccountIdsT = Aws::String>
73 DescribeImagePermissionsRequest& AddSharedAwsAccountIds(SharedAwsAccountIdsT&& value) { m_sharedAwsAccountIdsHasBeenSet = true; m_sharedAwsAccountIds.emplace_back(std::forward<SharedAwsAccountIdsT>(value)); return *this; }
75
77
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 template<typename NextTokenT = Aws::String>
84 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
85 template<typename NextTokenT = Aws::String>
86 DescribeImagePermissionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
88 private:
89
90 Aws::String m_name;
91 bool m_nameHasBeenSet = false;
92
93 int m_maxResults{0};
94 bool m_maxResultsHasBeenSet = false;
95
96 Aws::Vector<Aws::String> m_sharedAwsAccountIds;
97 bool m_sharedAwsAccountIdsHasBeenSet = false;
98
99 Aws::String m_nextToken;
100 bool m_nextTokenHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace AppStream
105} // 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