AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetResourceMetadataRequest.h
1
6#pragma once
7#include <aws/pi/PI_EXPORTS.h>
8#include <aws/pi/PIRequest.h>
9#include <aws/pi/model/ServiceType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace PI
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 "GetResourceMetadata"; }
32
33 AWS_PI_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const ServiceType& GetServiceType() const{ return m_serviceType; }
44 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
45 inline void SetServiceType(const ServiceType& value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; }
46 inline void SetServiceType(ServiceType&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::move(value); }
47 inline GetResourceMetadataRequest& WithServiceType(const ServiceType& value) { SetServiceType(value); return *this;}
48 inline GetResourceMetadataRequest& WithServiceType(ServiceType&& value) { SetServiceType(std::move(value)); return *this;}
50
52
58 inline const Aws::String& GetIdentifier() const{ return m_identifier; }
59 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
60 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
61 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
62 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
63 inline GetResourceMetadataRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
64 inline GetResourceMetadataRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
65 inline GetResourceMetadataRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
67 private:
68
69 ServiceType m_serviceType;
70 bool m_serviceTypeHasBeenSet = false;
71
72 Aws::String m_identifier;
73 bool m_identifierHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace PI
78} // namespace Aws
AWS_PI_API Aws::String SerializePayload() const override
GetResourceMetadataRequest & WithIdentifier(const char *value)
GetResourceMetadataRequest & WithServiceType(const ServiceType &value)
AWS_PI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetResourceMetadataRequest & WithServiceType(ServiceType &&value)
virtual const char * GetServiceRequestName() const override
GetResourceMetadataRequest & WithIdentifier(const Aws::String &value)
GetResourceMetadataRequest & WithIdentifier(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String