@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReplaceContentEntry extends Object implements Serializable, Cloneable, StructuredPojo
Information about a replacement content entry in the conflict of a merge or pull request operation.
Constructor and Description |
---|
ReplaceContentEntry() |
Modifier and Type | Method and Description |
---|---|
ReplaceContentEntry |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getContent()
The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
|
String |
getFileMode()
The file mode to apply during conflict resoltion.
|
String |
getFilePath()
The path of the conflicting file.
|
String |
getReplacementType()
The replacement type to use when determining how to resolve the conflict.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContent(ByteBuffer content)
The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
|
void |
setFileMode(String fileMode)
The file mode to apply during conflict resoltion.
|
void |
setFilePath(String filePath)
The path of the conflicting file.
|
void |
setReplacementType(String replacementType)
The replacement type to use when determining how to resolve the conflict.
|
String |
toString()
Returns a string representation of this object.
|
ReplaceContentEntry |
withContent(ByteBuffer content)
The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
|
ReplaceContentEntry |
withFileMode(FileModeTypeEnum fileMode)
The file mode to apply during conflict resoltion.
|
ReplaceContentEntry |
withFileMode(String fileMode)
The file mode to apply during conflict resoltion.
|
ReplaceContentEntry |
withFilePath(String filePath)
The path of the conflicting file.
|
ReplaceContentEntry |
withReplacementType(ReplacementTypeEnum replacementType)
The replacement type to use when determining how to resolve the conflict.
|
ReplaceContentEntry |
withReplacementType(String replacementType)
The replacement type to use when determining how to resolve the conflict.
|
public void setFilePath(String filePath)
The path of the conflicting file.
filePath
- The path of the conflicting file.public String getFilePath()
The path of the conflicting file.
public ReplaceContentEntry withFilePath(String filePath)
The path of the conflicting file.
filePath
- The path of the conflicting file.public void setReplacementType(String replacementType)
The replacement type to use when determining how to resolve the conflict.
replacementType
- The replacement type to use when determining how to resolve the conflict.ReplacementTypeEnum
public String getReplacementType()
The replacement type to use when determining how to resolve the conflict.
ReplacementTypeEnum
public ReplaceContentEntry withReplacementType(String replacementType)
The replacement type to use when determining how to resolve the conflict.
replacementType
- The replacement type to use when determining how to resolve the conflict.ReplacementTypeEnum
public ReplaceContentEntry withReplacementType(ReplacementTypeEnum replacementType)
The replacement type to use when determining how to resolve the conflict.
replacementType
- The replacement type to use when determining how to resolve the conflict.ReplacementTypeEnum
public void setContent(ByteBuffer content)
The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
content
- The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.public ByteBuffer getContent()
The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
public ReplaceContentEntry withContent(ByteBuffer content)
The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
content
- The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.public void setFileMode(String fileMode)
The file mode to apply during conflict resoltion.
fileMode
- The file mode to apply during conflict resoltion.FileModeTypeEnum
public String getFileMode()
The file mode to apply during conflict resoltion.
FileModeTypeEnum
public ReplaceContentEntry withFileMode(String fileMode)
The file mode to apply during conflict resoltion.
fileMode
- The file mode to apply during conflict resoltion.FileModeTypeEnum
public ReplaceContentEntry withFileMode(FileModeTypeEnum fileMode)
The file mode to apply during conflict resoltion.
fileMode
- The file mode to apply during conflict resoltion.FileModeTypeEnum
public String toString()
toString
in class Object
Object.toString()
public ReplaceContentEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.