1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/codecommit/CodeCommit_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 template<typename RESULT_TYPE> 14 class AmazonWebServiceResult; 15 16 namespace Utils 17 { 18 namespace Json 19 { 20 class JsonValue; 21 } // namespace Json 22 } // namespace Utils 23 namespace CodeCommit 24 { 25 namespace Model 26 { 27 class AWS_CODECOMMIT_API MergeBranchesByFastForwardResult 28 { 29 public: 30 MergeBranchesByFastForwardResult(); 31 MergeBranchesByFastForwardResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 32 MergeBranchesByFastForwardResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 34 35 /** 36 * <p>The commit ID of the merge in the destination or target branch.</p> 37 */ GetCommitId()38 inline const Aws::String& GetCommitId() const{ return m_commitId; } 39 40 /** 41 * <p>The commit ID of the merge in the destination or target branch.</p> 42 */ SetCommitId(const Aws::String & value)43 inline void SetCommitId(const Aws::String& value) { m_commitId = value; } 44 45 /** 46 * <p>The commit ID of the merge in the destination or target branch.</p> 47 */ SetCommitId(Aws::String && value)48 inline void SetCommitId(Aws::String&& value) { m_commitId = std::move(value); } 49 50 /** 51 * <p>The commit ID of the merge in the destination or target branch.</p> 52 */ SetCommitId(const char * value)53 inline void SetCommitId(const char* value) { m_commitId.assign(value); } 54 55 /** 56 * <p>The commit ID of the merge in the destination or target branch.</p> 57 */ WithCommitId(const Aws::String & value)58 inline MergeBranchesByFastForwardResult& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;} 59 60 /** 61 * <p>The commit ID of the merge in the destination or target branch.</p> 62 */ WithCommitId(Aws::String && value)63 inline MergeBranchesByFastForwardResult& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;} 64 65 /** 66 * <p>The commit ID of the merge in the destination or target branch.</p> 67 */ WithCommitId(const char * value)68 inline MergeBranchesByFastForwardResult& WithCommitId(const char* value) { SetCommitId(value); return *this;} 69 70 71 /** 72 * <p>The tree ID of the merge in the destination or target branch.</p> 73 */ GetTreeId()74 inline const Aws::String& GetTreeId() const{ return m_treeId; } 75 76 /** 77 * <p>The tree ID of the merge in the destination or target branch.</p> 78 */ SetTreeId(const Aws::String & value)79 inline void SetTreeId(const Aws::String& value) { m_treeId = value; } 80 81 /** 82 * <p>The tree ID of the merge in the destination or target branch.</p> 83 */ SetTreeId(Aws::String && value)84 inline void SetTreeId(Aws::String&& value) { m_treeId = std::move(value); } 85 86 /** 87 * <p>The tree ID of the merge in the destination or target branch.</p> 88 */ SetTreeId(const char * value)89 inline void SetTreeId(const char* value) { m_treeId.assign(value); } 90 91 /** 92 * <p>The tree ID of the merge in the destination or target branch.</p> 93 */ WithTreeId(const Aws::String & value)94 inline MergeBranchesByFastForwardResult& WithTreeId(const Aws::String& value) { SetTreeId(value); return *this;} 95 96 /** 97 * <p>The tree ID of the merge in the destination or target branch.</p> 98 */ WithTreeId(Aws::String && value)99 inline MergeBranchesByFastForwardResult& WithTreeId(Aws::String&& value) { SetTreeId(std::move(value)); return *this;} 100 101 /** 102 * <p>The tree ID of the merge in the destination or target branch.</p> 103 */ WithTreeId(const char * value)104 inline MergeBranchesByFastForwardResult& WithTreeId(const char* value) { SetTreeId(value); return *this;} 105 106 private: 107 108 Aws::String m_commitId; 109 110 Aws::String m_treeId; 111 }; 112 113 } // namespace Model 114 } // namespace CodeCommit 115 } // namespace Aws 116