AWS SDK for C++  1.8.152
AWS SDK for C++
FileModes.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CodeCommit
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const FileModeTypeEnum& GetSource() const{ return m_source; }
45 
49  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
50 
54  inline void SetSource(const FileModeTypeEnum& value) { m_sourceHasBeenSet = true; m_source = value; }
55 
59  inline void SetSource(FileModeTypeEnum&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
60 
64  inline FileModes& WithSource(const FileModeTypeEnum& value) { SetSource(value); return *this;}
65 
69  inline FileModes& WithSource(FileModeTypeEnum&& value) { SetSource(std::move(value)); return *this;}
70 
71 
75  inline const FileModeTypeEnum& GetDestination() const{ return m_destination; }
76 
80  inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
81 
85  inline void SetDestination(const FileModeTypeEnum& value) { m_destinationHasBeenSet = true; m_destination = value; }
86 
90  inline void SetDestination(FileModeTypeEnum&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
91 
95  inline FileModes& WithDestination(const FileModeTypeEnum& value) { SetDestination(value); return *this;}
96 
100  inline FileModes& WithDestination(FileModeTypeEnum&& value) { SetDestination(std::move(value)); return *this;}
101 
102 
106  inline const FileModeTypeEnum& GetBase() const{ return m_base; }
107 
111  inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; }
112 
116  inline void SetBase(const FileModeTypeEnum& value) { m_baseHasBeenSet = true; m_base = value; }
117 
121  inline void SetBase(FileModeTypeEnum&& value) { m_baseHasBeenSet = true; m_base = std::move(value); }
122 
126  inline FileModes& WithBase(const FileModeTypeEnum& value) { SetBase(value); return *this;}
127 
131  inline FileModes& WithBase(FileModeTypeEnum&& value) { SetBase(std::move(value)); return *this;}
132 
133  private:
134 
135  FileModeTypeEnum m_source;
136  bool m_sourceHasBeenSet;
137 
138  FileModeTypeEnum m_destination;
139  bool m_destinationHasBeenSet;
140 
141  FileModeTypeEnum m_base;
142  bool m_baseHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace CodeCommit
147 } // namespace Aws
Aws::CodeCommit::Model::FileModes::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: FileModes.h:49
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::FileModes::operator=
FileModes & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::FileModes::BaseHasBeenSet
bool BaseHasBeenSet() const
Definition: FileModes.h:111
FileModeTypeEnum.h
Aws::CodeCommit::Model::FileModes::SetBase
void SetBase(FileModeTypeEnum &&value)
Definition: FileModes.h:121
Aws::CodeCommit::Model::FileModes::GetDestination
const FileModeTypeEnum & GetDestination() const
Definition: FileModes.h:75
Aws::CodeCommit::Model::FileModes
Definition: FileModes.h:33
Aws::CodeCommit::Model::FileModes::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::FileModes::WithBase
FileModes & WithBase(const FileModeTypeEnum &value)
Definition: FileModes.h:126
Aws::CodeCommit::Model::FileModes::SetSource
void SetSource(FileModeTypeEnum &&value)
Definition: FileModes.h:59
Aws::CodeCommit::Model::FileModes::SetDestination
void SetDestination(const FileModeTypeEnum &value)
Definition: FileModes.h:85
Aws::CodeCommit::Model::FileModes::WithSource
FileModes & WithSource(FileModeTypeEnum &&value)
Definition: FileModes.h:69
Aws::CodeCommit::Model::FileModes::WithSource
FileModes & WithSource(const FileModeTypeEnum &value)
Definition: FileModes.h:64
Aws::CodeCommit::Model::FileModes::SetDestination
void SetDestination(FileModeTypeEnum &&value)
Definition: FileModes.h:90
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CodeCommit::Model::FileModeTypeEnum
FileModeTypeEnum
Definition: FileModeTypeEnum.h:17
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::FileModes::WithBase
FileModes & WithBase(FileModeTypeEnum &&value)
Definition: FileModes.h:131
Aws::CodeCommit::Model::FileModes::GetSource
const FileModeTypeEnum & GetSource() const
Definition: FileModes.h:44
Aws::CodeCommit::Model::FileModes::SetSource
void SetSource(const FileModeTypeEnum &value)
Definition: FileModes.h:54
Aws::CodeCommit::Model::FileModes::WithDestination
FileModes & WithDestination(FileModeTypeEnum &&value)
Definition: FileModes.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::FileModes::WithDestination
FileModes & WithDestination(const FileModeTypeEnum &value)
Definition: FileModes.h:95
Aws::CodeCommit::Model::FileModes::FileModes
FileModes()
Aws::CodeCommit::Model::FileModes::SetBase
void SetBase(const FileModeTypeEnum &value)
Definition: FileModes.h:116
Aws::CodeCommit::Model::FileModes::FileModes
FileModes(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::FileModes::DestinationHasBeenSet
bool DestinationHasBeenSet() const
Definition: FileModes.h:80
Aws::CodeCommit::Model::FileModes::GetBase
const FileModeTypeEnum & GetBase() const
Definition: FileModes.h:106