AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
ApplySchemaRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectoryRequest.h>
8#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudDirectory {
15namespace Model {
16
20 public:
21 AWS_CLOUDDIRECTORY_API ApplySchemaRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ApplySchema"; }
28
29 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
30
31 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
38 inline const Aws::String& GetPublishedSchemaArn() const { return m_publishedSchemaArn; }
39 inline bool PublishedSchemaArnHasBeenSet() const { return m_publishedSchemaArnHasBeenSet; }
40 template <typename PublishedSchemaArnT = Aws::String>
41 void SetPublishedSchemaArn(PublishedSchemaArnT&& value) {
42 m_publishedSchemaArnHasBeenSet = true;
43 m_publishedSchemaArn = std::forward<PublishedSchemaArnT>(value);
44 }
45 template <typename PublishedSchemaArnT = Aws::String>
46 ApplySchemaRequest& WithPublishedSchemaArn(PublishedSchemaArnT&& value) {
47 SetPublishedSchemaArn(std::forward<PublishedSchemaArnT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetDirectoryArn() const { return m_directoryArn; }
58 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
59 template <typename DirectoryArnT = Aws::String>
60 void SetDirectoryArn(DirectoryArnT&& value) {
61 m_directoryArnHasBeenSet = true;
62 m_directoryArn = std::forward<DirectoryArnT>(value);
63 }
64 template <typename DirectoryArnT = Aws::String>
65 ApplySchemaRequest& WithDirectoryArn(DirectoryArnT&& value) {
66 SetDirectoryArn(std::forward<DirectoryArnT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_publishedSchemaArn;
72
73 Aws::String m_directoryArn;
74 bool m_publishedSchemaArnHasBeenSet = false;
75 bool m_directoryArnHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace CloudDirectory
80} // namespace Aws
void SetPublishedSchemaArn(PublishedSchemaArnT &&value)
ApplySchemaRequest & WithPublishedSchemaArn(PublishedSchemaArnT &&value)
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDDIRECTORY_API ApplySchemaRequest()=default
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
ApplySchemaRequest & WithDirectoryArn(DirectoryArnT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String