AWS SDK for C++  1.9.158
AWS SDK for C++
Location.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CodeCommit
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetFilePath() const{ return m_filePath; }
47 
52  inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
53 
58  inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
59 
64  inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
65 
70  inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
71 
76  inline Location& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
77 
82  inline Location& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
83 
88  inline Location& WithFilePath(const char* value) { SetFilePath(value); return *this;}
89 
90 
94  inline long long GetFilePosition() const{ return m_filePosition; }
95 
99  inline bool FilePositionHasBeenSet() const { return m_filePositionHasBeenSet; }
100 
104  inline void SetFilePosition(long long value) { m_filePositionHasBeenSet = true; m_filePosition = value; }
105 
109  inline Location& WithFilePosition(long long value) { SetFilePosition(value); return *this;}
110 
111 
116  inline const RelativeFileVersionEnum& GetRelativeFileVersion() const{ return m_relativeFileVersion; }
117 
122  inline bool RelativeFileVersionHasBeenSet() const { return m_relativeFileVersionHasBeenSet; }
123 
128  inline void SetRelativeFileVersion(const RelativeFileVersionEnum& value) { m_relativeFileVersionHasBeenSet = true; m_relativeFileVersion = value; }
129 
134  inline void SetRelativeFileVersion(RelativeFileVersionEnum&& value) { m_relativeFileVersionHasBeenSet = true; m_relativeFileVersion = std::move(value); }
135 
140  inline Location& WithRelativeFileVersion(const RelativeFileVersionEnum& value) { SetRelativeFileVersion(value); return *this;}
141 
146  inline Location& WithRelativeFileVersion(RelativeFileVersionEnum&& value) { SetRelativeFileVersion(std::move(value)); return *this;}
147 
148  private:
149 
150  Aws::String m_filePath;
151  bool m_filePathHasBeenSet;
152 
153  long long m_filePosition;
154  bool m_filePositionHasBeenSet;
155 
156  RelativeFileVersionEnum m_relativeFileVersion;
157  bool m_relativeFileVersionHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace CodeCommit
162 } // namespace Aws
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::Location::WithFilePath
Location & WithFilePath(const char *value)
Definition: Location.h:88
Aws::CodeCommit::Model::Location::Location
Location()
Aws::CodeCommit::Model::Location::SetRelativeFileVersion
void SetRelativeFileVersion(const RelativeFileVersionEnum &value)
Definition: Location.h:128
Aws::CodeCommit::Model::Location::GetFilePath
const Aws::String & GetFilePath() const
Definition: Location.h:46
Aws::CodeCommit::Model::Location::GetFilePosition
long long GetFilePosition() const
Definition: Location.h:94
Aws::CodeCommit::Model::Location::FilePositionHasBeenSet
bool FilePositionHasBeenSet() const
Definition: Location.h:99
Aws::CodeCommit::Model::Location::SetRelativeFileVersion
void SetRelativeFileVersion(RelativeFileVersionEnum &&value)
Definition: Location.h:134
Aws::CodeCommit::Model::Location::Location
Location(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::RelativeFileVersionEnum
RelativeFileVersionEnum
Definition: RelativeFileVersionEnum.h:17
Aws::CodeCommit::Model::Location::WithRelativeFileVersion
Location & WithRelativeFileVersion(RelativeFileVersionEnum &&value)
Definition: Location.h:146
Aws::CodeCommit::Model::Location::SetFilePath
void SetFilePath(const Aws::String &value)
Definition: Location.h:58
Aws::CodeCommit::Model::Location::SetFilePosition
void SetFilePosition(long long value)
Definition: Location.h:104
Aws::CodeCommit::Model::Location::WithRelativeFileVersion
Location & WithRelativeFileVersion(const RelativeFileVersionEnum &value)
Definition: Location.h:140
Aws::CodeCommit::Model::Location::WithFilePath
Location & WithFilePath(const Aws::String &value)
Definition: Location.h:76
Aws::CodeCommit::Model::Location::FilePathHasBeenSet
bool FilePathHasBeenSet() const
Definition: Location.h:52
Aws::CodeCommit::Model::Location::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::Location
Definition: Location.h:34
Aws::CodeCommit::Model::Location::GetRelativeFileVersion
const RelativeFileVersionEnum & GetRelativeFileVersion() const
Definition: Location.h:116
Aws::CodeCommit::Model::Location::WithFilePosition
Location & WithFilePosition(long long value)
Definition: Location.h:109
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
RelativeFileVersionEnum.h
Aws::CodeCommit::Model::Location::SetFilePath
void SetFilePath(const char *value)
Definition: Location.h:70
Aws::CodeCommit::Model::Location::SetFilePath
void SetFilePath(Aws::String &&value)
Definition: Location.h:64
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::Location::RelativeFileVersionHasBeenSet
bool RelativeFileVersionHasBeenSet() const
Definition: Location.h:122
Aws::CodeCommit::Model::Location::operator=
Location & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::Location::WithFilePath
Location & WithFilePath(Aws::String &&value)
Definition: Location.h:82