AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline DescribeImagePermissionsRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline DescribeImagePermissionsRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline DescribeImagePermissionsRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
57 inline int GetMaxResults() const{ return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
60 inline DescribeImagePermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
62
64
68 inline const Aws::Vector<Aws::String>& GetSharedAwsAccountIds() const{ return m_sharedAwsAccountIds; }
69 inline bool SharedAwsAccountIdsHasBeenSet() const { return m_sharedAwsAccountIdsHasBeenSet; }
70 inline void SetSharedAwsAccountIds(const Aws::Vector<Aws::String>& value) { m_sharedAwsAccountIdsHasBeenSet = true; m_sharedAwsAccountIds = value; }
71 inline void SetSharedAwsAccountIds(Aws::Vector<Aws::String>&& value) { m_sharedAwsAccountIdsHasBeenSet = true; m_sharedAwsAccountIds = std::move(value); }
74 inline DescribeImagePermissionsRequest& AddSharedAwsAccountIds(const Aws::String& value) { m_sharedAwsAccountIdsHasBeenSet = true; m_sharedAwsAccountIds.push_back(value); return *this; }
75 inline DescribeImagePermissionsRequest& AddSharedAwsAccountIds(Aws::String&& value) { m_sharedAwsAccountIdsHasBeenSet = true; m_sharedAwsAccountIds.push_back(std::move(value)); return *this; }
76 inline DescribeImagePermissionsRequest& AddSharedAwsAccountIds(const char* value) { m_sharedAwsAccountIdsHasBeenSet = true; m_sharedAwsAccountIds.push_back(value); return *this; }
78
80
84 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
86 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
87 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
88 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
89 inline DescribeImagePermissionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
90 inline DescribeImagePermissionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
91 inline DescribeImagePermissionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
93 private:
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 int m_maxResults;
99 bool m_maxResultsHasBeenSet = false;
100
101 Aws::Vector<Aws::String> m_sharedAwsAccountIds;
102 bool m_sharedAwsAccountIdsHasBeenSet = false;
103
104 Aws::String m_nextToken;
105 bool m_nextTokenHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace AppStream
110} // namespace Aws
DescribeImagePermissionsRequest & AddSharedAwsAccountIds(Aws::String &&value)
DescribeImagePermissionsRequest & WithNextToken(Aws::String &&value)
DescribeImagePermissionsRequest & WithName(const char *value)
void SetSharedAwsAccountIds(const Aws::Vector< Aws::String > &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(const char *value)
DescribeImagePermissionsRequest & WithName(const Aws::String &value)
DescribeImagePermissionsRequest & WithSharedAwsAccountIds(Aws::Vector< Aws::String > &&value)
DescribeImagePermissionsRequest & AddSharedAwsAccountIds(const Aws::String &value)
DescribeImagePermissionsRequest & WithSharedAwsAccountIds(const Aws::Vector< Aws::String > &value)
DescribeImagePermissionsRequest & WithNextToken(const Aws::String &value)
DescribeImagePermissionsRequest & WithName(Aws::String &&value)
DescribeImagePermissionsRequest & AddSharedAwsAccountIds(const char *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