AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FileModes.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/FileModeTypeEnum.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeCommit
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CODECOMMIT_API FileModes();
36 AWS_CODECOMMIT_API FileModes(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODECOMMIT_API FileModes& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const FileModeTypeEnum& GetSource() const{ return m_source; }
46 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
47 inline void SetSource(const FileModeTypeEnum& value) { m_sourceHasBeenSet = true; m_source = value; }
48 inline void SetSource(FileModeTypeEnum&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
49 inline FileModes& WithSource(const FileModeTypeEnum& value) { SetSource(value); return *this;}
50 inline FileModes& WithSource(FileModeTypeEnum&& value) { SetSource(std::move(value)); return *this;}
52
54
57 inline const FileModeTypeEnum& GetDestination() const{ return m_destination; }
58 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
59 inline void SetDestination(const FileModeTypeEnum& value) { m_destinationHasBeenSet = true; m_destination = value; }
60 inline void SetDestination(FileModeTypeEnum&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
61 inline FileModes& WithDestination(const FileModeTypeEnum& value) { SetDestination(value); return *this;}
62 inline FileModes& WithDestination(FileModeTypeEnum&& value) { SetDestination(std::move(value)); return *this;}
64
66
69 inline const FileModeTypeEnum& GetBase() const{ return m_base; }
70 inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; }
71 inline void SetBase(const FileModeTypeEnum& value) { m_baseHasBeenSet = true; m_base = value; }
72 inline void SetBase(FileModeTypeEnum&& value) { m_baseHasBeenSet = true; m_base = std::move(value); }
73 inline FileModes& WithBase(const FileModeTypeEnum& value) { SetBase(value); return *this;}
74 inline FileModes& WithBase(FileModeTypeEnum&& value) { SetBase(std::move(value)); return *this;}
76 private:
77
78 FileModeTypeEnum m_source;
79 bool m_sourceHasBeenSet = false;
80
81 FileModeTypeEnum m_destination;
82 bool m_destinationHasBeenSet = false;
83
84 FileModeTypeEnum m_base;
85 bool m_baseHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace CodeCommit
90} // namespace Aws
const FileModeTypeEnum & GetSource() const
Definition FileModes.h:45
const FileModeTypeEnum & GetDestination() const
Definition FileModes.h:57
const FileModeTypeEnum & GetBase() const
Definition FileModes.h:69
FileModes & WithDestination(const FileModeTypeEnum &value)
Definition FileModes.h:61
FileModes & WithBase(FileModeTypeEnum &&value)
Definition FileModes.h:74
void SetBase(FileModeTypeEnum &&value)
Definition FileModes.h:72
FileModes & WithBase(const FileModeTypeEnum &value)
Definition FileModes.h:73
void SetDestination(FileModeTypeEnum &&value)
Definition FileModes.h:60
AWS_CODECOMMIT_API FileModes(Aws::Utils::Json::JsonView jsonValue)
void SetDestination(const FileModeTypeEnum &value)
Definition FileModes.h:59
FileModes & WithSource(FileModeTypeEnum &&value)
Definition FileModes.h:50
FileModes & WithSource(const FileModeTypeEnum &value)
Definition FileModes.h:49
AWS_CODECOMMIT_API FileModes & operator=(Aws::Utils::Json::JsonView jsonValue)
FileModes & WithDestination(FileModeTypeEnum &&value)
Definition FileModes.h:62
void SetBase(const FileModeTypeEnum &value)
Definition FileModes.h:71
AWS_CODECOMMIT_API FileModes()
void SetSource(const FileModeTypeEnum &value)
Definition FileModes.h:47
void SetSource(FileModeTypeEnum &&value)
Definition FileModes.h:48
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue