public class ArtifactContentPropertiesDefinition extends ArtifactProperties
Constructor and Description |
---|
ArtifactContentPropertiesDefinition() |
Modifier and Type | Method and Description |
---|---|
Object |
content()
Get the content property: Any object.
|
ContentLink |
contentLink()
Get the contentLink property: The content link.
|
String |
contentType()
Get the contentType property: The content type.
|
void |
validate()
Validates the instance.
|
ArtifactContentPropertiesDefinition |
withChangedTime(OffsetDateTime changedTime)
Set the changedTime property: The artifact changed time.
|
ArtifactContentPropertiesDefinition |
withContent(Object content)
Set the content property: Any object.
|
ArtifactContentPropertiesDefinition |
withContentLink(ContentLink contentLink)
Set the contentLink property: The content link.
|
ArtifactContentPropertiesDefinition |
withContentType(String contentType)
Set the contentType property: The content type.
|
ArtifactContentPropertiesDefinition |
withCreatedTime(OffsetDateTime createdTime)
Set the createdTime property: The artifact creation time.
|
ArtifactContentPropertiesDefinition |
withMetadata(Object metadata)
Set the metadata property: Any object.
|
changedTime, createdTime, metadata
public Object content()
public ArtifactContentPropertiesDefinition withContent(Object content)
content
- the content value to set.public String contentType()
public ArtifactContentPropertiesDefinition withContentType(String contentType)
contentType
- the contentType value to set.public ContentLink contentLink()
public ArtifactContentPropertiesDefinition withContentLink(ContentLink contentLink)
contentLink
- the contentLink value to set.public ArtifactContentPropertiesDefinition withCreatedTime(OffsetDateTime createdTime)
withCreatedTime
in class ArtifactProperties
createdTime
- the createdTime value to set.public ArtifactContentPropertiesDefinition withChangedTime(OffsetDateTime changedTime)
withChangedTime
in class ArtifactProperties
changedTime
- the changedTime value to set.public ArtifactContentPropertiesDefinition withMetadata(Object metadata)
withMetadata
in class ArtifactProperties
metadata
- the metadata value to set.public void validate()
validate
in class ArtifactProperties
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.