@@ -87,6 +87,13 @@ public class UpdateApiResult extends com.amazonaws.AmazonWebServiceResult<com.am
8787 * </p>
8888 */
8989 private java .util .List <String > warnings ;
90+ /**
91+ * <p>
92+ * The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
93+ * and must not start with aws:. The tag value can be up to 256 characters..
94+ * </p>
95+ */
96+ private java .util .Map <String , String > tags ;
9097
9198 /**
9299 * <p>
@@ -607,6 +614,73 @@ public UpdateApiResult withWarnings(java.util.Collection<String> warnings) {
607614 return this ;
608615 }
609616
617+ /**
618+ * <p>
619+ * The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
620+ * and must not start with aws:. The tag value can be up to 256 characters..
621+ * </p>
622+ *
623+ * @return The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
624+ * characters and must not start with aws:. The tag value can be up to 256 characters..
625+ */
626+
627+ public java .util .Map <String , String > getTags () {
628+ return tags ;
629+ }
630+
631+ /**
632+ * <p>
633+ * The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
634+ * and must not start with aws:. The tag value can be up to 256 characters..
635+ * </p>
636+ *
637+ * @param tags
638+ * The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
639+ * characters and must not start with aws:. The tag value can be up to 256 characters..
640+ */
641+
642+ public void setTags (java .util .Map <String , String > tags ) {
643+ this .tags = tags ;
644+ }
645+
646+ /**
647+ * <p>
648+ * The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
649+ * and must not start with aws:. The tag value can be up to 256 characters..
650+ * </p>
651+ *
652+ * @param tags
653+ * The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
654+ * characters and must not start with aws:. The tag value can be up to 256 characters..
655+ * @return Returns a reference to this object so that method calls can be chained together.
656+ */
657+
658+ public UpdateApiResult withTags (java .util .Map <String , String > tags ) {
659+ setTags (tags );
660+ return this ;
661+ }
662+
663+ public UpdateApiResult addTagsEntry (String key , String value ) {
664+ if (null == this .tags ) {
665+ this .tags = new java .util .HashMap <String , String >();
666+ }
667+ if (this .tags .containsKey (key ))
668+ throw new IllegalArgumentException ("Duplicated keys (" + key .toString () + ") are provided." );
669+ this .tags .put (key , value );
670+ return this ;
671+ }
672+
673+ /**
674+ * Removes all the entries added into Tags.
675+ *
676+ * @return Returns a reference to this object so that method calls can be chained together.
677+ */
678+
679+ public UpdateApiResult clearTagsEntries () {
680+ this .tags = null ;
681+ return this ;
682+ }
683+
610684 /**
611685 * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
612686 * redacted from this string using a placeholder value.
@@ -640,7 +714,9 @@ public String toString() {
640714 if (getVersion () != null )
641715 sb .append ("Version: " ).append (getVersion ()).append ("," );
642716 if (getWarnings () != null )
643- sb .append ("Warnings: " ).append (getWarnings ());
717+ sb .append ("Warnings: " ).append (getWarnings ()).append ("," );
718+ if (getTags () != null )
719+ sb .append ("Tags: " ).append (getTags ());
644720 sb .append ("}" );
645721 return sb .toString ();
646722 }
@@ -699,6 +775,10 @@ public boolean equals(Object obj) {
699775 return false ;
700776 if (other .getWarnings () != null && other .getWarnings ().equals (this .getWarnings ()) == false )
701777 return false ;
778+ if (other .getTags () == null ^ this .getTags () == null )
779+ return false ;
780+ if (other .getTags () != null && other .getTags ().equals (this .getTags ()) == false )
781+ return false ;
702782 return true ;
703783 }
704784
@@ -718,6 +798,7 @@ public int hashCode() {
718798 hashCode = prime * hashCode + ((getRouteSelectionExpression () == null ) ? 0 : getRouteSelectionExpression ().hashCode ());
719799 hashCode = prime * hashCode + ((getVersion () == null ) ? 0 : getVersion ().hashCode ());
720800 hashCode = prime * hashCode + ((getWarnings () == null ) ? 0 : getWarnings ().hashCode ());
801+ hashCode = prime * hashCode + ((getTags () == null ) ? 0 : getTags ().hashCode ());
721802 return hashCode ;
722803 }
723804
0 commit comments