AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListServiceVersionsRequest.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8#include <aws/snowball/SnowballRequest.h>
9#include <aws/snowball/model/ServiceName.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/snowball/model/DependentService.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Snowball
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SNOWBALL_API ListServiceVersionsRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListServiceVersions"; }
34
35 AWS_SNOWBALL_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const ServiceName& GetServiceName() const{ return m_serviceName; }
45 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
46 inline void SetServiceName(const ServiceName& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
47 inline void SetServiceName(ServiceName&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
48 inline ListServiceVersionsRequest& WithServiceName(const ServiceName& value) { SetServiceName(value); return *this;}
49 inline ListServiceVersionsRequest& WithServiceName(ServiceName&& value) { SetServiceName(std::move(value)); return *this;}
51
53
57 inline const Aws::Vector<DependentService>& GetDependentServices() const{ return m_dependentServices; }
58 inline bool DependentServicesHasBeenSet() const { return m_dependentServicesHasBeenSet; }
59 inline void SetDependentServices(const Aws::Vector<DependentService>& value) { m_dependentServicesHasBeenSet = true; m_dependentServices = value; }
60 inline void SetDependentServices(Aws::Vector<DependentService>&& value) { m_dependentServicesHasBeenSet = true; m_dependentServices = std::move(value); }
63 inline ListServiceVersionsRequest& AddDependentServices(const DependentService& value) { m_dependentServicesHasBeenSet = true; m_dependentServices.push_back(value); return *this; }
64 inline ListServiceVersionsRequest& AddDependentServices(DependentService&& value) { m_dependentServicesHasBeenSet = true; m_dependentServices.push_back(std::move(value)); return *this; }
66
68
71 inline int GetMaxResults() const{ return m_maxResults; }
72 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
73 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
74 inline ListServiceVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
76
78
82 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
83 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
84 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
85 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
86 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
87 inline ListServiceVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
88 inline ListServiceVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
89 inline ListServiceVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
91 private:
92
93 ServiceName m_serviceName;
94 bool m_serviceNameHasBeenSet = false;
95
96 Aws::Vector<DependentService> m_dependentServices;
97 bool m_dependentServicesHasBeenSet = false;
98
99 int m_maxResults;
100 bool m_maxResultsHasBeenSet = false;
101
102 Aws::String m_nextToken;
103 bool m_nextTokenHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Snowball
108} // namespace Aws
ListServiceVersionsRequest & WithServiceName(ServiceName &&value)
virtual const char * GetServiceRequestName() const override
ListServiceVersionsRequest & WithNextToken(const Aws::String &value)
ListServiceVersionsRequest & WithNextToken(const char *value)
void SetDependentServices(const Aws::Vector< DependentService > &value)
ListServiceVersionsRequest & WithDependentServices(Aws::Vector< DependentService > &&value)
ListServiceVersionsRequest & WithNextToken(Aws::String &&value)
void SetDependentServices(Aws::Vector< DependentService > &&value)
ListServiceVersionsRequest & WithServiceName(const ServiceName &value)
AWS_SNOWBALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListServiceVersionsRequest & WithDependentServices(const Aws::Vector< DependentService > &value)
AWS_SNOWBALL_API Aws::String SerializePayload() const override
ListServiceVersionsRequest & AddDependentServices(const DependentService &value)
ListServiceVersionsRequest & AddDependentServices(DependentService &&value)
const Aws::Vector< DependentService > & GetDependentServices() const
ListServiceVersionsRequest & WithMaxResults(int 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