1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * Selling Partner API for Feeds
 *
 * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner.
 *
 * The version of the OpenAPI document: 2020-09-04
 * 
 * Generated by: https://openapi-generator.tech
 */

/// CreateFeedDocumentResult : Information required to encrypt and upload a feed document's contents.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct CreateFeedDocumentResult {
    /// The identifier of the feed document.
    #[serde(default, rename = "feedDocumentId")]
    pub feed_document_id: String,
    /// The presigned URL for uploading the feed contents. This URL expires after 5 minutes.
    #[serde(default, rename = "url")]
    pub url: String,
    #[serde(default, rename = "encryptionDetails")]
    pub encryption_details: Box<crate::models::FeedDocumentEncryptionDetails>,
}

impl CreateFeedDocumentResult {
    /// Information required to encrypt and upload a feed document's contents.
    pub fn new(feed_document_id: String, url: String, encryption_details: crate::models::FeedDocumentEncryptionDetails) -> CreateFeedDocumentResult {
        CreateFeedDocumentResult {
            feed_document_id,
            url,
            encryption_details: Box::new(encryption_details),
        }
    }
}