AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Location.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codecommit/model/RelativeFileVersionEnum.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeCommit
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODECOMMIT_API Location();
37 AWS_CODECOMMIT_API Location(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Location& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetFilePath() const{ return m_filePath; }
48 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
49 inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
50 inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
51 inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
52 inline Location& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
53 inline Location& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
54 inline Location& WithFilePath(const char* value) { SetFilePath(value); return *this;}
56
58
61 inline long long GetFilePosition() const{ return m_filePosition; }
62 inline bool FilePositionHasBeenSet() const { return m_filePositionHasBeenSet; }
63 inline void SetFilePosition(long long value) { m_filePositionHasBeenSet = true; m_filePosition = value; }
64 inline Location& WithFilePosition(long long value) { SetFilePosition(value); return *this;}
66
68
72 inline const RelativeFileVersionEnum& GetRelativeFileVersion() const{ return m_relativeFileVersion; }
73 inline bool RelativeFileVersionHasBeenSet() const { return m_relativeFileVersionHasBeenSet; }
74 inline void SetRelativeFileVersion(const RelativeFileVersionEnum& value) { m_relativeFileVersionHasBeenSet = true; m_relativeFileVersion = value; }
75 inline void SetRelativeFileVersion(RelativeFileVersionEnum&& value) { m_relativeFileVersionHasBeenSet = true; m_relativeFileVersion = std::move(value); }
77 inline Location& WithRelativeFileVersion(RelativeFileVersionEnum&& value) { SetRelativeFileVersion(std::move(value)); return *this;}
79 private:
80
81 Aws::String m_filePath;
82 bool m_filePathHasBeenSet = false;
83
84 long long m_filePosition;
85 bool m_filePositionHasBeenSet = false;
86
87 RelativeFileVersionEnum m_relativeFileVersion;
88 bool m_relativeFileVersionHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace CodeCommit
93} // namespace Aws
void SetFilePath(const Aws::String &value)
Definition Location.h:49
const Aws::String & GetFilePath() const
Definition Location.h:47
Location & WithFilePath(Aws::String &&value)
Definition Location.h:53
AWS_CODECOMMIT_API Location()
void SetRelativeFileVersion(RelativeFileVersionEnum &&value)
Definition Location.h:75
void SetFilePosition(long long value)
Definition Location.h:63
bool RelativeFileVersionHasBeenSet() const
Definition Location.h:73
Location & WithFilePath(const Aws::String &value)
Definition Location.h:52
AWS_CODECOMMIT_API Location & operator=(Aws::Utils::Json::JsonView jsonValue)
const RelativeFileVersionEnum & GetRelativeFileVersion() const
Definition Location.h:72
long long GetFilePosition() const
Definition Location.h:61
void SetFilePath(const char *value)
Definition Location.h:51
void SetFilePath(Aws::String &&value)
Definition Location.h:50
Location & WithFilePath(const char *value)
Definition Location.h:54
bool FilePositionHasBeenSet() const
Definition Location.h:62
void SetRelativeFileVersion(const RelativeFileVersionEnum &value)
Definition Location.h:74
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECOMMIT_API Location(Aws::Utils::Json::JsonView jsonValue)
Location & WithRelativeFileVersion(RelativeFileVersionEnum &&value)
Definition Location.h:77
Location & WithRelativeFileVersion(const RelativeFileVersionEnum &value)
Definition Location.h:76
Location & WithFilePosition(long long value)
Definition Location.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue