AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListTemplateSharesRequest.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/wellarchitected/WellArchitectedRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wellarchitected/model/ShareStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace WellArchitected
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_WELLARCHITECTED_API ListTemplateSharesRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListTemplateShares"; }
36
37 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
38
39 AWS_WELLARCHITECTED_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const Aws::String& GetTemplateArn() const{ return m_templateArn; }
47 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
48 inline void SetTemplateArn(const Aws::String& value) { m_templateArnHasBeenSet = true; m_templateArn = value; }
49 inline void SetTemplateArn(Aws::String&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::move(value); }
50 inline void SetTemplateArn(const char* value) { m_templateArnHasBeenSet = true; m_templateArn.assign(value); }
51 inline ListTemplateSharesRequest& WithTemplateArn(const Aws::String& value) { SetTemplateArn(value); return *this;}
52 inline ListTemplateSharesRequest& WithTemplateArn(Aws::String&& value) { SetTemplateArn(std::move(value)); return *this;}
53 inline ListTemplateSharesRequest& WithTemplateArn(const char* value) { SetTemplateArn(value); return *this;}
55
57
61 inline const Aws::String& GetSharedWithPrefix() const{ return m_sharedWithPrefix; }
62 inline bool SharedWithPrefixHasBeenSet() const { return m_sharedWithPrefixHasBeenSet; }
63 inline void SetSharedWithPrefix(const Aws::String& value) { m_sharedWithPrefixHasBeenSet = true; m_sharedWithPrefix = value; }
64 inline void SetSharedWithPrefix(Aws::String&& value) { m_sharedWithPrefixHasBeenSet = true; m_sharedWithPrefix = std::move(value); }
65 inline void SetSharedWithPrefix(const char* value) { m_sharedWithPrefixHasBeenSet = true; m_sharedWithPrefix.assign(value); }
67 inline ListTemplateSharesRequest& WithSharedWithPrefix(Aws::String&& value) { SetSharedWithPrefix(std::move(value)); return *this;}
68 inline ListTemplateSharesRequest& WithSharedWithPrefix(const char* value) { SetSharedWithPrefix(value); return *this;}
70
72
73 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
74 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
75 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
76 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
77 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
78 inline ListTemplateSharesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
79 inline ListTemplateSharesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
80 inline ListTemplateSharesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
82
84
87 inline int GetMaxResults() const{ return m_maxResults; }
88 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
89 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
90 inline ListTemplateSharesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
92
94
95 inline const ShareStatus& GetStatus() const{ return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(const ShareStatus& value) { m_statusHasBeenSet = true; m_status = value; }
98 inline void SetStatus(ShareStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
99 inline ListTemplateSharesRequest& WithStatus(const ShareStatus& value) { SetStatus(value); return *this;}
100 inline ListTemplateSharesRequest& WithStatus(ShareStatus&& value) { SetStatus(std::move(value)); return *this;}
102 private:
103
104 Aws::String m_templateArn;
105 bool m_templateArnHasBeenSet = false;
106
107 Aws::String m_sharedWithPrefix;
108 bool m_sharedWithPrefixHasBeenSet = false;
109
110 Aws::String m_nextToken;
111 bool m_nextTokenHasBeenSet = false;
112
113 int m_maxResults;
114 bool m_maxResultsHasBeenSet = false;
115
116 ShareStatus m_status;
117 bool m_statusHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace WellArchitected
122} // namespace Aws
ListTemplateSharesRequest & WithSharedWithPrefix(const Aws::String &value)
AWS_WELLARCHITECTED_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListTemplateSharesRequest & WithSharedWithPrefix(const char *value)
ListTemplateSharesRequest & WithTemplateArn(Aws::String &&value)
ListTemplateSharesRequest & WithStatus(ShareStatus &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
ListTemplateSharesRequest & WithNextToken(Aws::String &&value)
ListTemplateSharesRequest & WithTemplateArn(const char *value)
ListTemplateSharesRequest & WithNextToken(const Aws::String &value)
ListTemplateSharesRequest & WithNextToken(const char *value)
ListTemplateSharesRequest & WithStatus(const ShareStatus &value)
ListTemplateSharesRequest & WithSharedWithPrefix(Aws::String &&value)
ListTemplateSharesRequest & WithTemplateArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String