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.models;
6   
7   import com.fasterxml.jackson.annotation.JsonProperty;
8   import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
9   import java.time.OffsetDateTime;
10  
11  /**
12   * A user delegation key.
13   */
14  @JacksonXmlRootElement(localName = "UserDelegationKey")
15  public final class UserDelegationKey {
16      /*
17       * The Azure Active Directory object ID in GUID format.
18       */
19      @JsonProperty(value = "SignedOid", required = true)
20      private String signedOid;
21  
22      /*
23       * The Azure Active Directory tenant ID in GUID format
24       */
25      @JsonProperty(value = "SignedTid", required = true)
26      private String signedTid;
27  
28      /*
29       * The date-time the key is active
30       */
31      @JsonProperty(value = "SignedStart", required = true)
32      private OffsetDateTime signedStart;
33  
34      /*
35       * The date-time the key expires
36       */
37      @JsonProperty(value = "SignedExpiry", required = true)
38      private OffsetDateTime signedExpiry;
39  
40      /*
41       * Abbreviation of the Azure Storage service that accepts the key
42       */
43      @JsonProperty(value = "SignedService", required = true)
44      private String signedService;
45  
46      /*
47       * The service version that created the key
48       */
49      @JsonProperty(value = "SignedVersion", required = true)
50      private String signedVersion;
51  
52      /*
53       * The key as a base64 string
54       */
55      @JsonProperty(value = "Value", required = true)
56      private String value;
57  
58      /**
59       * Get the signedOid property: The Azure Active Directory object ID in GUID
60       * format.
61       *
62       * @return the signedOid value.
63       */
64      public String signedOid() {
65          return this.signedOid;
66      }
67  
68      /**
69       * Set the signedOid property: The Azure Active Directory object ID in GUID
70       * format.
71       *
72       * @param signedOid the signedOid value to set.
73       * @return the UserDelegationKey object itself.
74       */
75      public UserDelegationKey signedOid(String signedOid) {
76          this.signedOid = signedOid;
77          return this;
78      }
79  
80      /**
81       * Get the signedTid property: The Azure Active Directory tenant ID in GUID
82       * format.
83       *
84       * @return the signedTid value.
85       */
86      public String signedTid() {
87          return this.signedTid;
88      }
89  
90      /**
91       * Set the signedTid property: The Azure Active Directory tenant ID in GUID
92       * format.
93       *
94       * @param signedTid the signedTid value to set.
95       * @return the UserDelegationKey object itself.
96       */
97      public UserDelegationKey signedTid(String signedTid) {
98          this.signedTid = signedTid;
99          return this;
100     }
101 
102     /**
103      * Get the signedStart property: The date-time the key is active.
104      *
105      * @return the signedStart value.
106      */
107     public OffsetDateTime signedStart() {
108         return this.signedStart;
109     }
110 
111     /**
112      * Set the signedStart property: The date-time the key is active.
113      *
114      * @param signedStart the signedStart value to set.
115      * @return the UserDelegationKey object itself.
116      */
117     public UserDelegationKey signedStart(OffsetDateTime signedStart) {
118         this.signedStart = signedStart;
119         return this;
120     }
121 
122     /**
123      * Get the signedExpiry property: The date-time the key expires.
124      *
125      * @return the signedExpiry value.
126      */
127     public OffsetDateTime signedExpiry() {
128         return this.signedExpiry;
129     }
130 
131     /**
132      * Set the signedExpiry property: The date-time the key expires.
133      *
134      * @param signedExpiry the signedExpiry value to set.
135      * @return the UserDelegationKey object itself.
136      */
137     public UserDelegationKey signedExpiry(OffsetDateTime signedExpiry) {
138         this.signedExpiry = signedExpiry;
139         return this;
140     }
141 
142     /**
143      * Get the signedService property: Abbreviation of the Azure Storage
144      * service that accepts the key.
145      *
146      * @return the signedService value.
147      */
148     public String signedService() {
149         return this.signedService;
150     }
151 
152     /**
153      * Set the signedService property: Abbreviation of the Azure Storage
154      * service that accepts the key.
155      *
156      * @param signedService the signedService value to set.
157      * @return the UserDelegationKey object itself.
158      */
159     public UserDelegationKey signedService(String signedService) {
160         this.signedService = signedService;
161         return this;
162     }
163 
164     /**
165      * Get the signedVersion property: The service version that created the
166      * key.
167      *
168      * @return the signedVersion value.
169      */
170     public String signedVersion() {
171         return this.signedVersion;
172     }
173 
174     /**
175      * Set the signedVersion property: The service version that created the
176      * key.
177      *
178      * @param signedVersion the signedVersion value to set.
179      * @return the UserDelegationKey object itself.
180      */
181     public UserDelegationKey signedVersion(String signedVersion) {
182         this.signedVersion = signedVersion;
183         return this;
184     }
185 
186     /**
187      * Get the value property: The key as a base64 string.
188      *
189      * @return the value value.
190      */
191     public String value() {
192         return this.value;
193     }
194 
195     /**
196      * Set the value property: The key as a base64 string.
197      *
198      * @param value the value value to set.
199      * @return the UserDelegationKey object itself.
200      */
201     public UserDelegationKey value(String value) {
202         this.value = value;
203         return this;
204     }
205 }