ProjectFileProperties Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. models. ProjectFileProperties
- com.
Implements
public final class ProjectFileProperties
implements JsonSerializable<ProjectFileProperties>
Base class for file properties.
Constructor Summary
| Constructor | Description |
|---|---|
| ProjectFileProperties() |
Creates an instance of Project |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
extension()
Get the extension property: Optional File extension. |
| String |
filePath()
Get the file |
|
static
Project |
fromJson(JsonReader jsonReader)
Reads an instance of Project |
|
Offset |
lastModified()
Get the last |
| String |
mediaType()
Get the media |
| Long |
size()
Get the size property: File size. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Project |
withExtension(String extension)
Set the extension property: Optional File extension. |
|
Project |
withFilePath(String filePath)
Set the file |
|
Project |
withMediaType(String mediaType)
Set the media |
Methods inherited from java.lang.Object
Constructor Details
ProjectFileProperties
public ProjectFileProperties()
Creates an instance of ProjectFileProperties class.
Method Details
extension
public String extension()
Get the extension property: Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
Returns:
filePath
public String filePath()
Get the filePath property: Relative path of this file resource. This property can be set when creating or updating the file resource.
Returns:
fromJson
public static ProjectFileProperties fromJson(JsonReader jsonReader)
Reads an instance of ProjectFileProperties from the JsonReader.
Parameters:
Returns:
Throws:
lastModified
public OffsetDateTime lastModified()
Get the lastModified property: Modification DateTime.
Returns:
mediaType
public String mediaType()
Get the mediaType property: File content type. This property can be modified to reflect the file content type.
Returns:
size
public Long size()
Get the size property: File size.
Returns:
toJson
validate
public void validate()
Validates the instance.
withExtension
public ProjectFileProperties withExtension(String extension)
Set the extension property: Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
Parameters:
Returns:
withFilePath
public ProjectFileProperties withFilePath(String filePath)
Set the filePath property: Relative path of this file resource. This property can be set when creating or updating the file resource.
Parameters:
Returns:
withMediaType
public ProjectFileProperties withMediaType(String mediaType)
Set the mediaType property: File content type. This property can be modified to reflect the file content type.
Parameters:
Returns: