An aerosol-generating apparatus comprising: a vaporizer configured to generate an aerosol by heating an aerosol-generating material; a plurality of chambers configured to rotate with respect to the vaporizer and store a flavoring material such that the aerosol generated in the vaporizer passes through the flavoring material; an input portion configured to rotate according to a user manipulation and cause the chambers to rotate along; an input circuit comprising: a rotating device coupled to the input portion to rotate with the input portion; and a plurality of connecting devices (173, 174, 175, 176) configured to generate a signal based on a position of the rotating device such that one of the plurality of connecting devices (173, 174, 175, 176) corresponding to a position of the rotating device generates a changed signal; and a processor configured to perform a function corresponding to a connecting device (173, 174, 175, 176) that has generated the changed signal among the plurality of connecting devices (173, 174, 175, 176), wherein the chambers are arranged along a rotation direction and partitioned to be independent of one another by separators, and wherein the connecting devices (173, 174, 175, 176) respectively correspond to the chambers. a vaporizer configured to generate an aerosol by heating an aerosol-generating material; a plurality of chambers configured to rotate with respect to the vaporizer and store a flavoring material such that the aerosol generated in the vaporizer passes through the flavoring material; an input portion configured to rotate according to a user manipulation and cause the chambers to rotate along; an input circuit comprising: a rotating device coupled to the input portion to rotate with the input portion; and a plurality of connecting devices (173, 174, 175, 176) configured to generate a signal based on a position of the rotating device such that one of the plurality of connecting devices (173, 174, 175, 176) corresponding to a position of the rotating device generates a changed signal; and a processor configured to perform a function corresponding to a connecting device (173, 174, 175, 176) that has generated the changed signal among the plurality of connecting devices (173, 174, 175, 176), wherein the chambers are arranged along a rotation direction and partitioned to be independent of one another by separators, and wherein the connecting devices (173, 174, 175, 176) respectively correspond to the chambers. a rotating device coupled to the input portion to rotate with the input portion; and a plurality of connecting devices (173, 174, 175, 176) configured to generate a signal based on a position of the rotating device such that one of the plurality of connecting devices (173, 174, 175, 176) corresponding to a position of the rotating device generates a changed signal; and a processor configured to perform a function corresponding to a connecting device (173, 174, 175, 176) that has generated the changed signal among the plurality of connecting devices (173, 174, 175, 176), wherein the chambers are arranged along a rotation direction and partitioned to be independent of one another by separators, and wherein the connecting devices (173, 174, 175, 176) respectively correspond to the chambers.