AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PathMappingRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/deadline/Deadline_EXPORTS.h>
9#include <aws/deadline/model/PathFormat.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace deadline {
21namespace Model {
22
29 public:
30 AWS_DEADLINE_API PathMappingRule() = default;
31 AWS_DEADLINE_API PathMappingRule(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline PathFormat GetSourcePathFormat() const { return m_sourcePathFormat; }
40 inline bool SourcePathFormatHasBeenSet() const { return m_sourcePathFormatHasBeenSet; }
41 inline void SetSourcePathFormat(PathFormat value) {
42 m_sourcePathFormatHasBeenSet = true;
43 m_sourcePathFormat = value;
44 }
47 return *this;
48 }
50
52
55 inline const Aws::String& GetSourcePath() const { return m_sourcePath; }
56 inline bool SourcePathHasBeenSet() const { return m_sourcePathHasBeenSet; }
57 template <typename SourcePathT = Aws::String>
58 void SetSourcePath(SourcePathT&& value) {
59 m_sourcePathHasBeenSet = true;
60 m_sourcePath = std::forward<SourcePathT>(value);
61 }
62 template <typename SourcePathT = Aws::String>
63 PathMappingRule& WithSourcePath(SourcePathT&& value) {
64 SetSourcePath(std::forward<SourcePathT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDestinationPath() const { return m_destinationPath; }
74 inline bool DestinationPathHasBeenSet() const { return m_destinationPathHasBeenSet; }
75 template <typename DestinationPathT = Aws::String>
76 void SetDestinationPath(DestinationPathT&& value) {
77 m_destinationPathHasBeenSet = true;
78 m_destinationPath = std::forward<DestinationPathT>(value);
79 }
80 template <typename DestinationPathT = Aws::String>
81 PathMappingRule& WithDestinationPath(DestinationPathT&& value) {
82 SetDestinationPath(std::forward<DestinationPathT>(value));
83 return *this;
84 }
86 private:
87 PathFormat m_sourcePathFormat{PathFormat::NOT_SET};
88
89 Aws::String m_sourcePath;
90
91 Aws::String m_destinationPath;
92 bool m_sourcePathFormatHasBeenSet = false;
93 bool m_sourcePathHasBeenSet = false;
94 bool m_destinationPathHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace deadline
99} // namespace Aws
const Aws::String & GetSourcePath() const
void SetDestinationPath(DestinationPathT &&value)
PathMappingRule & WithSourcePathFormat(PathFormat value)
AWS_DEADLINE_API PathMappingRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSourcePathFormat(PathFormat value)
PathMappingRule & WithSourcePath(SourcePathT &&value)
AWS_DEADLINE_API PathMappingRule(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourcePath(SourcePathT &&value)
AWS_DEADLINE_API PathMappingRule()=default
PathMappingRule & WithDestinationPath(DestinationPathT &&value)
const Aws::String & GetDestinationPath() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue