Class ContentSource
java.lang.Object
com.azure.resourcemanager.automation.models.ContentSource
Definition of the content source.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhash()
Get the hash property: Gets or sets the hash.type()
Get the type property: Gets or sets the content source type.void
validate()
Validates the instance.value()
Get the value property: Gets or sets the value of the content.version()
Get the version property: Gets or sets the version of the content.withHash
(ContentHash hash) Set the hash property: Gets or sets the hash.withType
(ContentSourceType type) Set the type property: Gets or sets the content source type.Set the value property: Gets or sets the value of the content.withVersion
(String version) Set the version property: Gets or sets the version of the content.
-
Constructor Details
-
ContentSource
public ContentSource()
-
-
Method Details
-
hash
Get the hash property: Gets or sets the hash.- Returns:
- the hash value.
-
withHash
Set the hash property: Gets or sets the hash.- Parameters:
hash
- the hash value to set.- Returns:
- the ContentSource object itself.
-
type
Get the type property: Gets or sets the content source type.- Returns:
- the type value.
-
withType
Set the type property: Gets or sets the content source type.- Parameters:
type
- the type value to set.- Returns:
- the ContentSource object itself.
-
value
Get the value property: Gets or sets the value of the content. This is based on the content source type.- Returns:
- the value value.
-
withValue
Set the value property: Gets or sets the value of the content. This is based on the content source type.- Parameters:
value
- the value value to set.- Returns:
- the ContentSource object itself.
-
version
Get the version property: Gets or sets the version of the content.- Returns:
- the version value.
-
withVersion
Set the version property: Gets or sets the version of the content.- Parameters:
version
- the version value to set.- Returns:
- the ContentSource object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-