Class StockRetrieveNewsResponse.Builder
-
- All Implemented Interfaces:
public final class StockRetrieveNewsResponse.BuilderA builder for StockRetrieveNewsResponse.
-
-
Method Summary
-
-
Method Detail
-
articleUrl
final StockRetrieveNewsResponse.Builder articleUrl(String articleUrl)
URL of the news article
-
articleUrl
final StockRetrieveNewsResponse.Builder articleUrl(JsonField<String> articleUrl)
Sets Builder.articleUrl to an arbitrary JSON value.
You should usually call Builder.articleUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final StockRetrieveNewsResponse.Builder description(String description)
Description of the news article
-
description
final StockRetrieveNewsResponse.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
imageUrl
final StockRetrieveNewsResponse.Builder imageUrl(String imageUrl)
URL of the image for the news article
-
imageUrl
final StockRetrieveNewsResponse.Builder imageUrl(JsonField<String> imageUrl)
Sets Builder.imageUrl to an arbitrary JSON value.
You should usually call Builder.imageUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
publishedDt
final StockRetrieveNewsResponse.Builder publishedDt(OffsetDateTime publishedDt)
Datetime when the article was published. ISO 8601 timestamp.
-
publishedDt
final StockRetrieveNewsResponse.Builder publishedDt(JsonField<OffsetDateTime> publishedDt)
Sets Builder.publishedDt to an arbitrary JSON value.
You should usually call Builder.publishedDt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
publisher
final StockRetrieveNewsResponse.Builder publisher(String publisher)
The publisher of the news article
-
publisher
final StockRetrieveNewsResponse.Builder publisher(JsonField<String> publisher)
Sets Builder.publisher to an arbitrary JSON value.
You should usually call Builder.publisher with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
ampUrl
final StockRetrieveNewsResponse.Builder ampUrl(String ampUrl)
Mobile-friendly Accelerated Mobile Page (AMP) URL of the news article, if available
-
ampUrl
final StockRetrieveNewsResponse.Builder ampUrl(Optional<String> ampUrl)
Alias for calling Builder.ampUrl with
ampUrl.orElse(null).
-
ampUrl
final StockRetrieveNewsResponse.Builder ampUrl(JsonField<String> ampUrl)
Sets Builder.ampUrl to an arbitrary JSON value.
You should usually call Builder.ampUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final StockRetrieveNewsResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final StockRetrieveNewsResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final StockRetrieveNewsResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final StockRetrieveNewsResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final StockRetrieveNewsResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final StockRetrieveNewsResponse build()
Returns an immutable instance of StockRetrieveNewsResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.articleUrl() .description() .imageUrl() .publishedDt() .publisher()
-
-
-
-