AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
SetFileModeEntry.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/FileModeTypeEnum.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeCommit {
21namespace Model {
22
29 public:
30 AWS_CODECOMMIT_API SetFileModeEntry() = default;
31 AWS_CODECOMMIT_API SetFileModeEntry(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetFilePath() const { return m_filePath; }
40 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
41 template <typename FilePathT = Aws::String>
42 void SetFilePath(FilePathT&& value) {
43 m_filePathHasBeenSet = true;
44 m_filePath = std::forward<FilePathT>(value);
45 }
46 template <typename FilePathT = Aws::String>
47 SetFileModeEntry& WithFilePath(FilePathT&& value) {
48 SetFilePath(std::forward<FilePathT>(value));
49 return *this;
50 }
52
54
57 inline FileModeTypeEnum GetFileMode() const { return m_fileMode; }
58 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
59 inline void SetFileMode(FileModeTypeEnum value) {
60 m_fileModeHasBeenSet = true;
61 m_fileMode = value;
62 }
64 SetFileMode(value);
65 return *this;
66 }
68 private:
69 Aws::String m_filePath;
70
72 bool m_filePathHasBeenSet = false;
73 bool m_fileModeHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace CodeCommit
78} // namespace Aws
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECOMMIT_API SetFileModeEntry(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFilePath() const
void SetFileMode(FileModeTypeEnum value)
SetFileModeEntry & WithFilePath(FilePathT &&value)
bool FilePathHasBeenSet() const
FileModeTypeEnum GetFileMode() const
AWS_CODECOMMIT_API SetFileModeEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
SetFileModeEntry & WithFileMode(FileModeTypeEnum value)
AWS_CODECOMMIT_API SetFileModeEntry()=default
void SetFilePath(FilePathT &&value)
bool FileModeHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue