| 1 | /** |
| 2 | * Licensed to jclouds, Inc. (jclouds) under one or more |
| 3 | * contributor license agreements. See the NOTICE file |
| 4 | * distributed with this work for additional information |
| 5 | * regarding copyright ownership. jclouds licenses this file |
| 6 | * to you under the Apache License, Version 2.0 (the |
| 7 | * "License"); you may not use this file except in compliance |
| 8 | * with the License. You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, |
| 13 | * software distributed under the License is distributed on an |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | * KIND, either express or implied. See the License for the |
| 16 | * specific language governing permissions and limitations |
| 17 | * under the License. |
| 18 | */ |
| 19 | package org.jclouds.elasticstack.domain; |
| 20 | |
| 21 | import java.util.Map; |
| 22 | |
| 23 | import org.jclouds.javax.annotation.Nullable; |
| 24 | |
| 25 | |
| 26 | /** |
| 27 | * |
| 28 | * @author Adrian Cole |
| 29 | */ |
| 30 | public class DriveData extends Drive { |
| 31 | public static class Builder extends Drive.Builder { |
| 32 | |
| 33 | /** |
| 34 | * {@inheritDoc} |
| 35 | */ |
| 36 | @Override |
| 37 | public Builder claimType(ClaimType claimType) { |
| 38 | return Builder.class.cast(super.claimType(claimType)); |
| 39 | } |
| 40 | |
| 41 | |
| 42 | /** |
| 43 | * {@inheritDoc} |
| 44 | */ |
| 45 | @Override |
| 46 | public Builder name(String name) { |
| 47 | return Builder.class.cast(super.name(name)); |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * {@inheritDoc} |
| 52 | */ |
| 53 | @Override |
| 54 | public Builder readers(Iterable<String> readers) { |
| 55 | return Builder.class.cast(super.readers(readers)); |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * {@inheritDoc} |
| 60 | */ |
| 61 | @Override |
| 62 | public Builder size(long size) { |
| 63 | return Builder.class.cast(super.size(size)); |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * {@inheritDoc} |
| 68 | */ |
| 69 | @Override |
| 70 | public Builder tags(Iterable<String> tags) { |
| 71 | return Builder.class.cast(super.tags(tags)); |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * {@inheritDoc} |
| 76 | */ |
| 77 | @Override |
| 78 | public Builder userMetadata(Map<String, String> userMetadata) { |
| 79 | return Builder.class.cast(super.userMetadata(userMetadata)); |
| 80 | } |
| 81 | |
| 82 | public DriveData build() { |
| 83 | return new DriveData(uuid, name, size, claimType, readers, tags, userMetadata); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | public DriveData(@Nullable String uuid, String name, long size, @Nullable ClaimType claimType, Iterable<String> readers, |
| 88 | Iterable<String> tags, Map<String, String> userMetadata) { |
| 89 | super(uuid, name, size, claimType, readers, tags, userMetadata); |
| 90 | } |
| 91 | } |