@@ -107,8 +107,11 @@ private ExistenceCheckNamingResponse(BuilderImpl builder) {
107
107
}
108
108
109
109
/**
110
- * Returns true if the Build property was specified by the sender (it may be empty), or false if the sender did not
111
- * specify the value (it will be empty). For responses returned by the SDK, the sender is the AWS service.
110
+ * For responses, this returns true if the service returned a value for the Build property. This DOES NOT check that
111
+ * the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful
112
+ * because the SDK will never return a null collection or map, but you may need to differentiate between the service
113
+ * returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
114
+ * if a value for the property was specified in the request builder, and false if a value was not specified.
112
115
*/
113
116
public final boolean hasBuild () {
114
117
return build != null && !(build instanceof SdkAutoConstructList );
@@ -120,7 +123,8 @@ public final boolean hasBuild() {
120
123
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
121
124
* </p>
122
125
* <p>
123
- * You can use {@link #hasBuild()} to see if a value was sent in this field.
126
+ * This method will never return null. If you would like to know whether the service returned this field (so that
127
+ * you can differentiate between null and empty), you can use the {@link #hasBuild} method.
124
128
* </p>
125
129
*
126
130
* @return The value of the Build property for this object.
@@ -130,8 +134,11 @@ public final List<String> build() {
130
134
}
131
135
132
136
/**
133
- * Returns true if the Super property was specified by the sender (it may be empty), or false if the sender did not
134
- * specify the value (it will be empty). For responses returned by the SDK, the sender is the AWS service.
137
+ * For responses, this returns true if the service returned a value for the Super property. This DOES NOT check that
138
+ * the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful
139
+ * because the SDK will never return a null collection or map, but you may need to differentiate between the service
140
+ * returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
141
+ * if a value for the property was specified in the request builder, and false if a value was not specified.
135
142
*/
136
143
public final boolean hasSuperValue () {
137
144
return superValue != null && !(superValue instanceof SdkAutoConstructList );
@@ -143,7 +150,8 @@ public final boolean hasSuperValue() {
143
150
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
144
151
* </p>
145
152
* <p>
146
- * You can use {@link #hasSuperValue()} to see if a value was sent in this field.
153
+ * This method will never return null. If you would like to know whether the service returned this field (so that
154
+ * you can differentiate between null and empty), you can use the {@link #hasSuperValue} method.
147
155
* </p>
148
156
*
149
157
* @return The value of the Super property for this object.
@@ -153,8 +161,12 @@ public final List<String> superValue() {
153
161
}
154
162
155
163
/**
156
- * Returns true if the ToString property was specified by the sender (it may be empty), or false if the sender did
157
- * not specify the value (it will be empty). For responses returned by the SDK, the sender is the AWS service.
164
+ * For responses, this returns true if the service returned a value for the ToString property. This DOES NOT check
165
+ * that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is
166
+ * useful because the SDK will never return a null collection or map, but you may need to differentiate between the
167
+ * service returning nothing (or null) and the service returning an empty collection or map. For requests, this
168
+ * returns true if a value for the property was specified in the request builder, and false if a value was not
169
+ * specified.
158
170
*/
159
171
public final boolean hasToStringValue () {
160
172
return toStringValue != null && !(toStringValue instanceof SdkAutoConstructMap );
@@ -166,7 +178,8 @@ public final boolean hasToStringValue() {
166
178
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
167
179
* </p>
168
180
* <p>
169
- * You can use {@link #hasToStringValue()} to see if a value was sent in this field.
181
+ * This method will never return null. If you would like to know whether the service returned this field (so that
182
+ * you can differentiate between null and empty), you can use the {@link #hasToStringValue} method.
170
183
* </p>
171
184
*
172
185
* @return The value of the ToString property for this object.
@@ -176,8 +189,12 @@ public final Map<String, String> toStringValue() {
176
189
}
177
190
178
191
/**
179
- * Returns true if the Equals property was specified by the sender (it may be empty), or false if the sender did not
180
- * specify the value (it will be empty). For responses returned by the SDK, the sender is the AWS service.
192
+ * For responses, this returns true if the service returned a value for the Equals property. This DOES NOT check
193
+ * that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is
194
+ * useful because the SDK will never return a null collection or map, but you may need to differentiate between the
195
+ * service returning nothing (or null) and the service returning an empty collection or map. For requests, this
196
+ * returns true if a value for the property was specified in the request builder, and false if a value was not
197
+ * specified.
181
198
*/
182
199
public final boolean hasEqualsValue () {
183
200
return equalsValue != null && !(equalsValue instanceof SdkAutoConstructMap );
@@ -189,7 +206,8 @@ public final boolean hasEqualsValue() {
189
206
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
190
207
* </p>
191
208
* <p>
192
- * You can use {@link #hasEqualsValue()} to see if a value was sent in this field.
209
+ * This method will never return null. If you would like to know whether the service returned this field (so that
210
+ * you can differentiate between null and empty), you can use the {@link #hasEqualsValue} method.
193
211
* </p>
194
212
*
195
213
* @return The value of the Equals property for this object.
0 commit comments