@@ -107,8 +107,11 @@ private ExistenceCheckNamingResponse(BuilderImpl builder) {
107107 }
108108
109109 /**
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.
112115 */
113116 public final boolean hasBuild () {
114117 return build != null && !(build instanceof SdkAutoConstructList );
@@ -120,7 +123,8 @@ public final boolean hasBuild() {
120123 * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
121124 * </p>
122125 * <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.
124128 * </p>
125129 *
126130 * @return The value of the Build property for this object.
@@ -130,8 +134,11 @@ public final List<String> build() {
130134 }
131135
132136 /**
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.
135142 */
136143 public final boolean hasSuperValue () {
137144 return superValue != null && !(superValue instanceof SdkAutoConstructList );
@@ -143,7 +150,8 @@ public final boolean hasSuperValue() {
143150 * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
144151 * </p>
145152 * <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.
147155 * </p>
148156 *
149157 * @return The value of the Super property for this object.
@@ -153,8 +161,12 @@ public final List<String> superValue() {
153161 }
154162
155163 /**
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.
158170 */
159171 public final boolean hasToStringValue () {
160172 return toStringValue != null && !(toStringValue instanceof SdkAutoConstructMap );
@@ -166,7 +178,8 @@ public final boolean hasToStringValue() {
166178 * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
167179 * </p>
168180 * <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.
170183 * </p>
171184 *
172185 * @return The value of the ToString property for this object.
@@ -176,8 +189,12 @@ public final Map<String, String> toStringValue() {
176189 }
177190
178191 /**
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.
181198 */
182199 public final boolean hasEqualsValue () {
183200 return equalsValue != null && !(equalsValue instanceof SdkAutoConstructMap );
@@ -189,7 +206,8 @@ public final boolean hasEqualsValue() {
189206 * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
190207 * </p>
191208 * <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.
193211 * </p>
194212 *
195213 * @return The value of the Equals property for this object.
0 commit comments