|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.storage.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * A Relocate Bucket request. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Cloud Storage JSON API. For a detailed explanation |
| 24 | + * see: |
| 25 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 26 | + * </p> |
| 27 | + * |
| 28 | + * @author Google, Inc. |
| 29 | + */ |
| 30 | +@SuppressWarnings("javadoc") |
| 31 | +public final class RelocateBucketRequest extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * The bucket's new custom placement configuration if relocating to a Custom Dual Region. |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private DestinationCustomPlacementConfig destinationCustomPlacementConfig; |
| 39 | + |
| 40 | + /** |
| 41 | + * The new location the bucket will be relocated to. |
| 42 | + * The value may be {@code null}. |
| 43 | + */ |
| 44 | + @com.google.api.client.util.Key |
| 45 | + private java.lang.String destinationLocation; |
| 46 | + |
| 47 | + /** |
| 48 | + * If true, validate the operation, but do not actually relocate the bucket. |
| 49 | + * The value may be {@code null}. |
| 50 | + */ |
| 51 | + @com.google.api.client.util.Key |
| 52 | + private java.lang.Boolean validateOnly; |
| 53 | + |
| 54 | + /** |
| 55 | + * The bucket's new custom placement configuration if relocating to a Custom Dual Region. |
| 56 | + * @return value or {@code null} for none |
| 57 | + */ |
| 58 | + public DestinationCustomPlacementConfig getDestinationCustomPlacementConfig() { |
| 59 | + return destinationCustomPlacementConfig; |
| 60 | + } |
| 61 | + |
| 62 | + /** |
| 63 | + * The bucket's new custom placement configuration if relocating to a Custom Dual Region. |
| 64 | + * @param destinationCustomPlacementConfig destinationCustomPlacementConfig or {@code null} for none |
| 65 | + */ |
| 66 | + public RelocateBucketRequest setDestinationCustomPlacementConfig(DestinationCustomPlacementConfig destinationCustomPlacementConfig) { |
| 67 | + this.destinationCustomPlacementConfig = destinationCustomPlacementConfig; |
| 68 | + return this; |
| 69 | + } |
| 70 | + |
| 71 | + /** |
| 72 | + * The new location the bucket will be relocated to. |
| 73 | + * @return value or {@code null} for none |
| 74 | + */ |
| 75 | + public java.lang.String getDestinationLocation() { |
| 76 | + return destinationLocation; |
| 77 | + } |
| 78 | + |
| 79 | + /** |
| 80 | + * The new location the bucket will be relocated to. |
| 81 | + * @param destinationLocation destinationLocation or {@code null} for none |
| 82 | + */ |
| 83 | + public RelocateBucketRequest setDestinationLocation(java.lang.String destinationLocation) { |
| 84 | + this.destinationLocation = destinationLocation; |
| 85 | + return this; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * If true, validate the operation, but do not actually relocate the bucket. |
| 90 | + * @return value or {@code null} for none |
| 91 | + */ |
| 92 | + public java.lang.Boolean getValidateOnly() { |
| 93 | + return validateOnly; |
| 94 | + } |
| 95 | + |
| 96 | + /** |
| 97 | + * If true, validate the operation, but do not actually relocate the bucket. |
| 98 | + * @param validateOnly validateOnly or {@code null} for none |
| 99 | + */ |
| 100 | + public RelocateBucketRequest setValidateOnly(java.lang.Boolean validateOnly) { |
| 101 | + this.validateOnly = validateOnly; |
| 102 | + return this; |
| 103 | + } |
| 104 | + |
| 105 | + @Override |
| 106 | + public RelocateBucketRequest set(String fieldName, Object value) { |
| 107 | + return (RelocateBucketRequest) super.set(fieldName, value); |
| 108 | + } |
| 109 | + |
| 110 | + @Override |
| 111 | + public RelocateBucketRequest clone() { |
| 112 | + return (RelocateBucketRequest) super.clone(); |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * The bucket's new custom placement configuration if relocating to a Custom Dual Region. |
| 117 | + */ |
| 118 | + public static final class DestinationCustomPlacementConfig extends com.google.api.client.json.GenericJson { |
| 119 | + |
| 120 | + /** |
| 121 | + * The list of regional locations in which data is placed. |
| 122 | + * The value may be {@code null}. |
| 123 | + */ |
| 124 | + @com.google.api.client.util.Key |
| 125 | + private java.util.List<java.lang.String> dataLocations; |
| 126 | + |
| 127 | + /** |
| 128 | + * The list of regional locations in which data is placed. |
| 129 | + * @return value or {@code null} for none |
| 130 | + */ |
| 131 | + public java.util.List<java.lang.String> getDataLocations() { |
| 132 | + return dataLocations; |
| 133 | + } |
| 134 | + |
| 135 | + /** |
| 136 | + * The list of regional locations in which data is placed. |
| 137 | + * @param dataLocations dataLocations or {@code null} for none |
| 138 | + */ |
| 139 | + public DestinationCustomPlacementConfig setDataLocations(java.util.List<java.lang.String> dataLocations) { |
| 140 | + this.dataLocations = dataLocations; |
| 141 | + return this; |
| 142 | + } |
| 143 | + |
| 144 | + @Override |
| 145 | + public DestinationCustomPlacementConfig set(String fieldName, Object value) { |
| 146 | + return (DestinationCustomPlacementConfig) super.set(fieldName, value); |
| 147 | + } |
| 148 | + |
| 149 | + @Override |
| 150 | + public DestinationCustomPlacementConfig clone() { |
| 151 | + return (DestinationCustomPlacementConfig) super.clone(); |
| 152 | + } |
| 153 | + |
| 154 | + } |
| 155 | + |
| 156 | +} |
0 commit comments