View Javadoc
1   // Copyright (c) Microsoft Corporation. All rights reserved.
2   // Licensed under the MIT License.
3   // Code generated by Microsoft (R) AutoRest Code Generator.
4   
5   package com.azure.storage.blob.implementation;
6   
7   import com.azure.storage.blob.models.SignedIdentifier;
8   import com.fasterxml.jackson.annotation.JsonCreator;
9   import com.fasterxml.jackson.annotation.JsonProperty;
10  import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
11  import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
12  import java.util.List;
13  
14  /**
15   * A wrapper around List<SignedIdentifier> which provides top-level metadata for serialization.
16   */
17  @JacksonXmlRootElement(localName = "SignedIdentifiers")
18  public final class SignedIdentifiersWrapper {
19      @JacksonXmlProperty(localName = "SignedIdentifier")
20      private final List<SignedIdentifier> signedIdentifiers;
21  
22      /**
23       * Creates an instance of SignedIdentifiersWrapper.
24       *
25       * @param signedIdentifiers the list.
26       */
27      @JsonCreator
28      public SignedIdentifiersWrapper(@JsonProperty("SignedIdentifiers") List<SignedIdentifier> signedIdentifiers) {
29          this.signedIdentifiers = signedIdentifiers;
30      }
31  
32      /**
33       * Get the List&lt;SignedIdentifier&gt; contained in this wrapper.
34       *
35       * @return the List&lt;SignedIdentifier&gt;.
36       */
37      public List<SignedIdentifier> items() {
38          return signedIdentifiers;
39      }
40  }